diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-26 02:26:20 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-26 02:27:51 -0300 |
| commit | 4fe27fa83d1454830dd4fd98c5a76747f30d2776 (patch) | |
| tree | 31f20f38fd57b83dac3d39dcb38af2bd2ccb704f /core/keys.zig | |
| parent | 54cd21e1bd487276142e3b1d62f1556f05b7f978 (diff) | |
| download | pardes-4fe27fa83d1454830dd4fd98c5a76747f30d2776.tar.gz pardes-4fe27fa83d1454830dd4fd98c5a76747f30d2776.zip | |
colors: the ring's resolve budget counted in instructions, not CPU time, so a loaded machine cannot fail it (the coordinator's item to the themes programme's colour agent: W3's gui unit-test failed "the whole ring resolves in 150 ms of CPU, no theme in over 0.5 ms" at a load of 8.7, and it would trip every agent's gates); THE CAUSE: the test held B9's budget (about 0.5 ms a theme, the ring in 150 ms, Debug, idle) to the thread's CPU time, the least of five a theme, which a busy machine stretches (a sibling hyperthread, a shared cache, a lower clock): L1 measured the slowest theme at 871 us under a load of 8.7 where it takes 291 to 307 us idle; THE FIX: the same budget in user-space instructions, which the load does not move: one Chrome.of a theme counted by the kernel's counter (perf_event_open, user space only, this thread), 3.5 M a theme and 1 050 M the ring, at the 7 a nanosecond this code retires idle (the ring's 304 M in 42 ms); where the kernel gives no counter (not Linux, perf_event_paranoid 3) the test is skipped; RUN (TEST FIRST): the old test with the count beside its CPU time, run three times in a row on a quiet machine (load 0.9 to 2.5): CPU time 49.0, 42.1 and 41.9 ms for the ring, the slowest theme 409, 304 and 298 us (a third apart between runs at load 2; W3's at 8.7 over the 500 us), the counts 304,213,813, 304,213,802 and 304,213,802 (the slowest by count ao's 2,881,625 or 2,881,626 each time); the new test twice: 304,213,792 and 304,213,795, ao's 2,881,625, within the budget by 3.5x (the ring) and 1.2x (a theme); gui unit-test -Dtest-filter="the whole ring resolves" 14/14 and the whole gui unit-test 1948/1952 (4 skipped; its one failure the known BaselineHarnessMismatch), 304,213,799 there; load 1.9 to 2.7
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'core/keys.zig')
0 files changed, 0 insertions, 0 deletions
