Repository navigation
Conversation
… + thp_fault_fallback since arming, limit 64): on a fragmented host a huge fault that succeeds still stalls in direct compaction, costing more system time than the 4 KiB faults it replaces; a healthy host sees no change (2.4 GB compile: 20,220 faults, 0.36 s sys, 0 stalls both ways)
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.
Follow-up of #95. On a fragmented host (order-9 free pages near 0) a huge-page fault stalls in direct compaction even when it succeeds, so
thp_fault_fallbackalone does not close the gate while the program pays ~2 ms per 2 MiB. snx measured this on a NixOS evaluation after #95: faults -5% only, system time +2..+6 s,compact_stall+16k over 9 runs. I measured the same shape on a 60 MB test program: 0.24-0.30 s sys, compact_stall +138..162, thp_fault_fallback +46..54.Change:
Srs.Pages.scanreads bothcompact_stallandthp_fault_fallbackfrom /proc/vmstat and sums them intoseen; the existing limit (64 since arming) now shuts the gate on stalls too. A kernel withoutcompact_stallshuts the gate (no advice), as an unreadable count did before.Control (no regression where huge pages are free): s2c compiling the frozen 2.4 GB snx gate program, interleaved twice, main vs this: 20,215-20,221 faults, 0.35-0.38 s sys, compact_stall +0, identical. Fixpoint OK, seed updated. Gate: the pages_gate / pages_off / alloc_chunks advice checks are unchanged (first reservation after arming is always advised). CI is the full gate.