Repository navigation
How to adjust set rate in kvcache_l2_wc #292
|
@dreiss @willbailey @javache But after even changing this rate, there is no difference in the set rate. We need more details. |
Replies: 4 comments 3 replies
|
Hello @junwoo0127 |
|
Hi @junwoo0127 , I'm not from Meta, but since you mentioned I am guessing this should be passed to here: CacheLib/cachelib/cachebench/workload/WorkloadDistribution.h Lines 38 to 41 in 1f60086 I believe maxWriteRate is a parameter for the You may also wish to look at this if you have not: https://cachelib.org/docs/Cache_Library_User_Guides/Developing_for_Cachebench/#simple-config-with-key-value-sizes-and-popularity-distribution kvcache_l2_reg may also be useful, it already has sets. Hope it helps! |
|
Thank you, Wong! I first lowered the setratio value to 0.1 and tested it, but there wasn't any noticeable change. Oddly enough, when I significantly reduced the getratio, there was a significant difference. However, I didn't see any effect when I adjusted the setratio. I'll try running a full test for five days with just the set ratio changed. Additionally, I would like your advice and feedback of the two other parameters I am assuming that might have affect to the setrate. Thank you for sharing your precious idea!! |
|
Closing this discussion as it has been inactive. If this is still relevant, then please create a new discussion post and we will get back to you as soon as we can. Thank you! |







Hi @junwoo0127 , I'm not from Meta, but since you mentioned
kvcache_l2_wc, have you tried changing the set ratio?https://github.com/facebook/CacheLib/blob/1f60086c66a8cc05c8d9560ae61bb9021db6269d/cachelib/cachebench/test_configs/ssd_perf/kvcache_l2_wc/config.json#L41-L46
I am guessing this should be passed to here:
https://github.com/facebook/CacheLib/blob/1f60086c66a8cc05c8d9560ae61bb9021db6269d/cachelib/cachebench/workload/WorkloadDistribution.h#L38-L41
I believe maxWriteRate is a parameter for the
DynamicRandomAdmissionPolicyflash admission policy and would just cap the number of sets by dropping them randomly to achieve the maximum flash write rate.You may also wish to look at this…