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).