memory used is larger than excepted
- Dominant language
- C++
- Stars
- 32.1k
- Forks
- 6.9k
- Avg merge
- 32m
- Merged PRs (30d)
- 1
Description
> Note: Please use Issues only for bug reports. For questions, discussions, feature requests, etc. post to dev group: https://www.facebook.com/groups/rocksdb.dev
the two block cache are 16G
block_cache = NewClockCache(16LL << 30, 10, true);
block_cache_compressed = NewClockCache(16LL << 30, 10, true);
but memory used in command "top" is exceed 50G
I print some property, but didn't catch the problem
std::string _index;
db->GetProperty("rocksdb.estimate-table-readers-mem", &_index);
std::string _memtable;
db->GetProperty("rocksdb.cur-size-all-mem-tables", &_memtable);
INFO_LOG("cache1 size %llu pinned %llu cache2 size %llu pinned %llu index size %s memtable size %s",
table_options.block_cache->GetUsage() >> 20,
table_options.block_cache->GetPinnedUsage() >> 20,
table_options.block_cache_compressed->GetUsage() >> 20,
table_options.block_cache_compressed->GetPinnedUsage() >> 20,
_index.c_str(),
_memtable.c_str());
the result is "cache1 size 16377 pinned 0 cache2 size 16367 pinned 0 index size 0 memtable size 800"
How can i find who used the memory?
### Expected behavior
### Actual behavior
### Steps to reproduce the behavior
Contributor guide
Assessment
This issue has not been assessed yet.