Repository navigation
perf(ext2,virtio-blk): bounded POSIX writeback, metadata read cache, and pipelined JBD2 I/O - #144
Merged
Merged
Conversation
…elined JBD2 commits
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.
Summary
kernel/vfs/ext2.rs,kernel/vfs/traits.rs,kernel/vfs/types.rs,kernel/vfs/operations.rs,kernel/vfs/ext2/namespace.rs,kernel/vfs/ext2/tree.rs):O_SYNC/O_DSYNCwrites on 4 KiB coalescing devices in physical-frame-backedExt2PageFramepages (capped at 128 pages / 32 dirty inodes per mount, zero pressure on the 1 MiB boot unledgered heap).O_APPENDatomicity underwrite_lock, unlink-while-open retention until finalDrop, short-lived create+write+unlink RAM discard, and recoverableENOSPC/NoMemerror handling without poisoning the mount.fsync()/sync_file_range()/sync()/umount()(serialized before mount detachment) /Drop for Ext2Fs, preservingmtime == ctimerecovery grammar invariants.MetadataBlockCache, 16x2-way):kernel/block/src/lib.rs,kernel/block/src/virtio/blk.rs,kernel/vfs/ext2.rs):BlockDevice::supports_coalesced_write()(defaultfalseso synthetic/fault-injection test doubles retain exact per-block boundaries) andBlockDevice::write_batch_sync()with 2-request pipelining inVirtioBlkDevice::do_write_pair()(Legacy DMA pool gated onmm::dma::is_iommu_legacy()).Ext2Journalstaging buffers (superblock_image,tx_images,checkpoint_buf) with physical frames (Ext2BlockBuf) on bare-metal and fallibleVec<u8>underany(test, feature = "host_harness").[J[0]|J[1]|images]pipelined with full-block ordered data, coalesces sorted contiguous checkpoint home runs, and defers post-clear flush fix: resolve 24/25 issues from December 2025 security audit #4 on coalescing devices while preserving exact JBD2 crash recovery.KVM Benchmark vs Linux 7.2.15 (4c / 8c / 16c)
main@3fd447e)combined(4c / 8c / 16c, hb/s)block(4c / 8c / 16c, commits/s)Verification
make fmt-check,make lint-fetch-add,make lint-smap,make lint-repr-c-copy,make lint-fallible— all PASS.scripts/tools/hosted_subcrate_tests.sh— all PASS (vfs94/94,block27/27,ext2_mut_image --features host_harnessbuilt cleanly).STRESS_PROFILES=block STRESS_DURATION=5 STRESS_ACCEL=kvm): captured active Zero-Intent JBD2 transaction on attempt 1/6, recovered cleanly on exact disk,e2fsck -fnclean,validate-block-durabilitypassed,Failed: 0.make clippy,make test-ring3-mm,make test-smp-4core(passed=67 deferred=0 failed=0, 4 CPUs online, 0 exceptions) — all PASS.gpt-6-astra): VERDICT: CLEAN.