Bug #22616
closedbluestore_cache_data uses too much memory
0%
Description
I was running a read throughput test and then found some of my osds were killed by oom killer and restarted.
I found the oom killed osd used much more memory for bluestore_cache_data than the normal ones.
The oom killed osd used 795MB ram in mempool and 722MB in bluestore_cache_data
The normal osd used about 120MB ram in mempool and 17MB in bluestore_cache_data
graph of memory useage of the oom killed osd: https://pasteboard.co/H1GzihS.png
graph of memory useage of the nomral osd: https://pasteboard.co/H1GzaeF.png
my bluestore cache setting
[osd]
osd max backfills = 4
bluestore_cache_size = 134217728
bluestore_cache_kv_max = 134217728
osd client message size cap = 67108864
As far as I know If I use the default cache ratio setting there should be no portion of cache goes into bluestore_cache_data,but the mempool dump data shows otherwise..