pebblesdb icon indicating copy to clipboard operation
pebblesdb copied to clipboard

Set max memory used by PebblesDB

Open vijay03 opened this issue 7 years ago • 2 comments
trafficstars

Right now, PebblesDB uses a lot of memory for the TableCache (caching metadata) and for the bloom filters used for each sstable.

We want to add a command line option for PebblesDB which would limit the total amount of memory used by PebblesDB for the TableCache and bloom filters.

When using the specified amount of memory, preference should be given first to the table cache, and then bloom filters for upper levels (level 0, level 1).

vijay03 avatar Nov 22 '18 23:11 vijay03

Hi @vijay03 ,

As far as I understand, Pebbles is used as a embedded library in other programs. Configurations are passed by using Options object. Therefor I'm not sure what's the command line option for? Do you mean a configuration passed to the Options object, or a CLI option when compiling Pebbles, or something else?

nguyendv avatar Jan 10 '19 23:01 nguyendv

Ah, thanks for the catch! I meant as a configuration passed to Options. An option to set a default when compiling PebblesDB would be awesome too!

vijay03 avatar Jan 10 '19 23:01 vijay03