]> git.hungrycats.org Git - linux/commitdiff
TESTING.md stripe-alloc: rows for patches 113 (reclaim debug lines) and 114 (stripe_r...
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Wed, 21 Oct 2026 10:33:25 +0000 (06:33 -0400)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Wed, 21 Oct 2026 10:33:25 +0000 (06:33 -0400)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B6wxsJn1aY7PwnhgXdz6Ec

topics/stripe-alloc/TESTING.md

index 9a3f063707cc7bc6c160de1fac2917bc23024a2d..123bbda61ef305a2d933a2657ae4f2d8b23b4dda 100644 (file)
@@ -302,6 +302,8 @@ covered / open"); P2, P3 and the CORRUPT role were not.
 | `unwritten-readback-test.sh` (Zygo, 2026-10-19: "force the read-back branch") | sectors an ordered extent left unwritten, marked written at its end (btrfs_open_stripe_write_done_run), then read back by a LATER partial write's RMW; parity and degraded reads afterwards | 17, 33, 76, 87, 108 | ~6 min per profile | PASS raid5 and raid6.  Each profile: 3 read-back events (arm R) + 3 close events (arm C), each a 608K extent truncated to 4K.  All 3 read-back stripes per profile showed the branch: pad_decline reason 2 (UNCOVERED), RMW reads of every data column, data_rmw_uncovered +3.  Their tail sectors still hold their own poison (24/24); parity matches (raid6 P and Q).  Own stripes zero-padded (141 sectors), parity matches.  15 never-written whole-tail/close stripes per profile: stale data and parity, no raid56_write, no readable data.  Scrub reports no errors; every file correct with each member missing | 2026-10-19 | ahive misc-next #5 | fd3124a | forensics/f-rmw-20261019/raid5.log, raid6.log |
 | `write-error-cache-test.sh` (Zygo, 2026-10-20: "A failed write should invalidate"; question 6) | a write that failed beyond the profile's tolerance (path (c)) must not leave its rbio for a later sub-stripe write to steal; within the tolerance the cache stays | raid56-fixes candidate (base raid56 code); patch 75's pin keeps the failed rbio cached | ~4-8 min per arm | #5: X FAIL (expected by Zygo's ruling, and the bug): the later write stole the failed rbio in 16/16 stripe_alloc events; its parity matched the failed write's never-written data in every exposed event (raid5 4/8, raid6 6/8; stock allocator 3/8, 2/8); acked data lost: 8/32 single-missing reads (raid5), 30/120 pair-missing reads (raid6) EIO; scrub "no errors found" (it rewrites the parity).  W (1..parity members) and C PASS.  Candidate: every arm PASS, the later write reads the stripe after every failed write, parity matches the disk, every read correct | 2026-10-20 | #5 568c45b64012; candidate a1c616e2b79b + fix (ahive `7.3.0-rc7+ #2`, refs/cand/f-ioerr/mn/zb64 is the same patch on e2b62c07d786) | 09ad8ff (#5 runs 51a5141 / 32ee8ac) | forensics/f-ioerr-20261020/ |
 | `claimable-trim-miss-test.sh` (f-warn, Zygo's item 1, 2026-10-19) | a trim on a converted legacy raid5 debits every wholly free stripe it takes out: no "above scanned" WARN, and no over-count that the debug kernel's miss counter does not explain | 111 (+ candidate fix) | ~10 min per 300 s iteration | Instrumented #5 build.  Fix off, no delay, 2 it: 30 missed debits, 0 WARN.  Fix off, 500 ms delay, 3 it: FAIL, 30 WARNs, all explained.  Fix on, same delay, 3 it: PASS, 0 WARN.  Candidate kernel, 1 it, no delay: PASS (WARN count only).  Acked data verifies in every run | 2026-10-19/20 | ehive fwarn #1-#3 (568c45b64012 + instrumentation); candidate zb64 bb9f4c113013 | f1c7f70 | forensics/f-warn-20261019/ |
+| `stripe-reclaim-test.sh` with the reclaim debug lines (dynamic debug on / off) | patch 113's "reclaim: relocating|compacting / relocated|compacted block group" lines appear one per reclaim when enabled and not at all when not | 113 | 37 min (paced) / 8 min (unpaced) | PASS: on, misc-next: 19 start + 19 end lines, reclaim_count +19, 0 errors; off (RT_PACE=0): 0 lines, reclaim_count +15.  6.18: on 14 + 14, reclaim_count +14; off 0 lines, +12.  (On 6.18 relocation already logs "relocating block group" at info level, so the script's reloc= counts it twice there; verdict unaffected) | 2026-10-21 | misc-next zb64 3e1390a9de03 + 113 + 114 (candidate); 6.18 zb64 68a671e005da + 113 + 114 | 92a2fd2 | forensics/f-oct-20261019/reclaim/seq1, seq618 |
+| `stripe-reclaim-now-test.sh` | /sys/fs/btrfs/<uuid>/stripe_reclaim_now: "all" and a named group, the forced kind, the error codes | 114 | 15 min | PASS on both lanes: background reclaim off, nothing moves in 60 s; the least-used group relocated alone (reclaim_count +1); "all" queued 2, trapped 1256 -> 6 MiB; a 79%-used group with trapped stripes compacted; ENOENT, EINVAL (not a number, raid1 metadata group), EROFS, EAGAIN during a paused balance and a running replace; data verifies, no WARN, btrfs check clean.  Not shown to fail without the patch (the knob does not exist there: exit 77) | 2026-10-21 | misc-next zb64 3e1390a9de03 + 113 + 114; 6.18 zb64 68a671e005da + 113 + 114 (candidates, promoted 2026-10-21) | 0d0cd25 | forensics/f-oct-20261019/reclaim/seq1/rn.log, seq618/rn.log |
 
 Negative controls (2026-10-19): one kernel, 568c45b64012 with patches 67,
 99, 109, 110 and 111 reverted and patch 93's commit-before-wait removed