Repository navigation
Conversation
…rite buffer sizing
stebbins
force-pushed
the
do-qzs-memtable-size
branch
from
April 4, 2026 16:40
d9a6573 to
7647d0b
Compare
2 of 3 tasks
Contributor
Author
|
closing in favor of #10820 |
Contributor
Author
|
to make it easier since there are already a few PRs, i created an issue to track the concept |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The NBS memtable write buffer defaults to 256 MiB in dbfactory and is the second-largest fixed memory allocation in Dolt. This makes it configurable via the
DOLT_MEMTABLE_SIZEenvironment variable.For memory-constrained deployments, tuning this down reduces RSS. For write-heavy workloads on machines with ample RAM, tuning it up can reduce flush frequency.
No default behavior change — without the env var, memtable remains 256 MiB.
go/libraries/doltcore/dbfactory/factory.go—const defaultMemTableSizechanged tovar,init()reads env vargo/libraries/doltcore/dconfig/envvars.go—EnvMemTableSizeconstant