Closed guptask closed 2 years ago
cachelib/allocator/CacheAllocator.h
line 1119 at r2 (raw file):
I'm not sure if Meta will be OK with adding such functions. Can't we use some existing ones? Some of the tests are also marked as friends of this class, so maybe we could use that?
We can raise the PR as it is here and see what Meta has to say about it. I think having an API approach is cleaner.
cachelib/allocator/tests/AllocatorHitStatsTest.h
line 398 at r1 (raw file):
please calculate this value based on slab size
I didn't understand your point. This check was pre-existing.
This per pool size statistics reports the current size of each memory pool. Existing implementation does not report this statistic accurately. `allocAttempts - allocFailed - regularItemsEvictions - chainedItemsEvictions won't report this value accurately because pool size grows in multiples of block sizes. This statistics will be reported in the final report generated by cachebench.
This change is