-
Notifications
You must be signed in to change notification settings - Fork 458
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
utils: remove unnecessary fsync in
durable_rename()
(#9686)
## Problem WAL segment fsyncs significantly affect WAL ingestion throughput. `durable_rename()` is used when initializing every 16 MB segment, and issues 3 fsyncs of which 1 was unnecessary. ## Summary of changes Remove an fsync in `durable_rename` which is unnecessary with Linux and ext4 (which we currently use). This improves WAL ingestion throughput by up to 23% with large appends on my MacBook.
- Loading branch information
1 parent
cef1658
commit 05381a4
Showing
1 changed file
with
20 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
05381a4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5473 tests run: 5240 passed, 3 failed, 230 skipped (full report)
Failures on Postgres 16
test_sharded_ingest[github-actions-selfhosted-1]
: release-x86-64test_storage_controller_many_tenants[github-actions-selfhosted]
: release-x86-64test_compaction_l0_memory[github-actions-selfhosted]
: release-x86-64Code coverage* (full report)
functions
:31.8% (7890 of 24834 functions)
lines
:49.5% (62445 of 126257 lines)
* collected from Rust tests only
05381a4 at 2024-11-12T20:01:45.505Z :recycle: