Skip to content

Set innodb_flush_method=O_DIRECT to eliminate double caching - #115

Merged
szachovy merged 2 commits into
masterfrom
fix/74-innodb-flush-method
Apr 9, 2026
Merged

Set innodb_flush_method=O_DIRECT to eliminate double caching#115
szachovy merged 2 commits into
masterfrom
fix/74-innodb-flush-method

Conversation

@szachovy

@szachovy szachovy commented Apr 8, 2026

Copy link
Copy Markdown
Owner

Use O_DIRECT to write directly to disk, skipping the OS page cache. In memory-limited containers, the default fsync() causes data to be cached twice (InnoDB buffer pool + OS cache), wasting 30–50% of available memory.

Closes #74

szachovy and others added 2 commits April 8, 2026 13:04
Use O_DIRECT to write directly to disk, skipping the OS page cache.
In memory-limited containers, the default fsync() causes data to be
cached twice (InnoDB buffer pool + OS cache), wasting 30-50% of
available memory.

Closes #74

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@szachovy
szachovy merged commit d1f6a48 into master Apr 9, 2026
12 checks passed
@szachovy
szachovy deleted the fix/74-innodb-flush-method branch April 9, 2026 10:57
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.

MY-3: Set innodb_flush_method=O_DIRECT to eliminate double caching in containers

1 participant