Skip to content

Use direct I/O for commitlog compression#4318

Draft
kim wants to merge 2 commits intomasterfrom
kim/direct-io
Draft

Use direct I/O for commitlog compression#4318
kim wants to merge 2 commits intomasterfrom
kim/direct-io

Conversation

@kim
Copy link
Contributor

@kim kim commented Feb 17, 2026

The page cache is of little value when compressing commitlog segments, as a segment will
usually be read at most once (for archival). Churning GBs through the page cache starves
other critical I/O, namely commitlog fsyncs.

Thus, use O_DIRECT for compression.

Expected complexity level and risk

2

Testing

Existing tests.

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.

1 participant

Comments