Skip to content

Add option write buffer size - #39

Merged
kasperisager merged 3 commits into
holepunchto:mainfrom
telamon:add-option-write-buffer-size
Sep 12, 2026
Merged

kasperisager merged 3 commits into
holepunchto:mainfrom
telamon:add-option-write-buffer-size

Conversation

@telamon

@telamon telamon commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

In order to reduce initial disk allocation cost when creating hundreds of instances of rocksdb;
I've added column family option write_buffer_size.

The default is 64mb which causes each rocksdb instance folder to occupy about 75mb on first write.
Lowering write_buffer_size reduces the initial allocation cost I'm using about 4mb per instance.

I do not recommend using this optimization in production, am using it for diagnostics.

@telamon
telamon requested a review from a team September 11, 2026 12:45
Comment thread src/rocksdb.cc Resolved
Co-authored-by: Kasper Isager Dalsgarð <kasperisager@hey.com>
@kasperisager
kasperisager merged commit f3db3b1 into holepunchto:main Sep 12, 2026
13 checks passed
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