Is there any way to calculate or predict the total memory usage of cachebench? #248
-
Hello, I am currently using https://github.com/facebook/CacheLib/blob/v2023.07.17.00/cachelib/cachebench/test_configs/hit_ratio/cdn/config.json
When I modify
Modifying So my question is:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
In general the memory consumption of cachebench has three parts: 1) the space that's used for caching (the slab space); 2) the memory consumption of cachelib operation (index, NVM buffer, etc); 3) cachebench operational usage.
in general numOps should'nt affect the memory consumption by too much. In your case, can you walk me through what each row of the output is? |
Beta Was this translation helpful? Give feedback.
I see. I am able to reproduce a similar memory consumption.
The key to your question is that:
Outside of the slab space, the most expensive thing is here: https://github.com/facebook/CacheLib/blob/main/cachelib/cachebench/workload/WorkloadGenerator.cpp#L174C19-L174C19
In the case where there are 2400m operations, that's 2400m * sizeof(uint32_t) ~ 9GB.
The other memory consuming things are: