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

[commitlog] Add the ability to configure pools before allocation #4072

Merged
merged 2 commits into from
Feb 23, 2022

Conversation

marcushill
Copy link
Collaborator

There are several places where we allocate large pools of memory
in constructors and provide setters to override those pools.
In general, this is fine as it allows us to provide larger or smaller
pools. However, in super memory constrained settings, we prefer to
avoid the initial alloc and GC all together and provide
the properly sized pools to the constructor.

This PR provides the ability to do this for certain properties
of fs.Options and commitlog.Options.

What this PR does / why we need it:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing and/or backwards incompatible change?:


Does this PR require updating code package or user-facing documentation?:


There are several places where we allocate large pools of memory
in constructors and provide setters to override those pools.
In general, this is fine as it allows us to provide larger or smaller
pools. However, in super memory constrained settings, we prefer to
avoid the initial alloc and GC all together and provide
the properly sized pools to the constructor.

This PR provides the ability to do this for certain properties
of fs.Options and commitlog.Options.
@marcushill marcushill marked this pull request as ready for review February 18, 2022 20:19
@marcushill marcushill changed the title Add the ability to configure pools before allocation [commitlog] Add the ability to configure pools before allocation Feb 18, 2022
@marcushill marcushill merged commit 4ee2346 into m3db:master Feb 23, 2022
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

Successfully merging this pull request may close these issues.

2 participants