Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set max memory used by PebblesDB #16

Open
vijay03 opened this issue Nov 22, 2018 · 2 comments
Open

Set max memory used by PebblesDB #16

vijay03 opened this issue Nov 22, 2018 · 2 comments

Comments

@vijay03
Copy link
Member

vijay03 commented Nov 22, 2018

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

@nguyendv
Copy link

nguyendv commented Jan 10, 2019

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?

@vijay03
Copy link
Member Author

vijay03 commented Jan 10, 2019

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants