Limit rocksdb cache usage

How can we limit the usage of cache for rocksdb?
Our application runs on embedded device where we have some constrains on amount of resident memory which our app can use but currently we see that rocksdb uses around 300mb of resident memory. Hence we want to cap it to some lower number.

see Memory usage in RocksDB · facebook/rocksdb Wiki · GitHub

1 Like