Closed waterxjw closed 8 months ago
Hi @waterxjw
The required metadata size can vary depending on the state of the NVM cache (e.g., the number of BlockCache items). There is no good estimate for that; e.g., the space needed for BlockCache index table is proportional to the number of keys and the sum of key sizes for all items.
I suggest to start from setting it big enough (i.e., using setDeviceMetadataSize(...)
), so you can have a good estimate for your use case to find the best size.
I want to enable a persistent cache by following the wiki. Meanwhile, I enable the NVM cache. when I shutdown the cache, it seems that nvm cache shut down failed.
it seems the reason is that "device metadata size" is not enough. but i am confused about how to set "device metadata size" properly. i don't find useful information about it in document. i note the default size is set by following code
why the default size is not enough? and i want to know the appropriate value