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

configurable BlocksPool #77

Open
liran-funaro opened this issue Feb 10, 2020 · 0 comments
Open

configurable BlocksPool #77

liran-funaro opened this issue Feb 10, 2020 · 0 comments

Comments

@liran-funaro
Copy link
Contributor

liran-funaro commented Feb 10, 2020

It would be nice to allow some of the properties of BlocksPool to be configurable.
Either via a configuration file and/or programmatically.

  1. The block size
  2. The number of blocks to be pre-allocated (even allow zero pre-allocation)
  3. The number of blocks to allocate each time a new block is needed
  4. Minimal and maximal number of unused blocks to preserve until releasing them back to the OS (excess blocks)

Specifically, it would be nice that the preallocated blocks would be a different setting than the number of new blocks to allocate, and that the number of excess blocks could be set via a ratio and/or via a specific number.
Also, the excess number of blocks should have a high and low threshold to prevent releasing blocks one at a time.
It might also help to set the number of excess blocks with proportion to the total number of blocks.

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

No branches or pull requests

1 participant