forge
Explore
Log in

Don't you dare go Hollow

Lane-pareto2 measurement log -- the Pareto table, the preset-6 lever re-price, what was not measurable

Browse files at this commit

0e781dc2202f61f3336deaba3848a11a0df2a51aAhmet Kaan GümüşParent: 73765f0
  • docs
    • lane-pareto2 measurement log -- the Pareto table, the preset-6 lever re-price, what was not measurable
Show full message
docs(lanes): lane-pareto2 measurement log -- the Pareto table, the preset-6 lever re-price, what was not measurable
lanes/pareto2.mdmodified+34 -0
@@ -89,3 +89,37 @@ Control +26.6 / -0.4. "gain" = BD points the lever takes off the vs-rav1e column
8989
9090 See `q3.tsv`/`q5.tsv` logs; the threaded fps sweep (`fps2.log`) is NOT usable at
9191 this box load -- preset 3 read slower than preset 0 in every pass.
92+
93+## Phase 3 -- serial wall arms (q3/q5, one at a time on MY side; other lanes still ran)
94+
95+| arm | film A BD (libaom / rav1e) | our ladder wall |
96+|---|---|---|
97+| control (preset 6 as it shipped) | +26.6 / -0.4 | 66.3s, 71.1s, 75.2s (three arms) |
98+| + extra-reference NEWMV | +24.4 / -2.4 | 103.2s, 86.4s |
99+| + coefficient breakout 0 | +24.8 / -1.6 | 73.7s |
100+| + both | +23.0 / -3.2 | 67.7s (contended, discarded), 95.6s |
101+
102+Control spread is 13%, so anything cheaper than that is unmeasurable here; the
103+95.6s / 75.2s serial pair is the price of this lane's change: +27% wall.
104+
105+## Phase 4 -- the recomposed presets, re-run for real (q6)
106+
107+| preset | film A | film B | screen |
108+|---|---|---|---|
109+| 4 | +22.5 / -3.9 | -- | -- |
110+| 5 | +22.5 / -3.6 | -- | -- |
111+| 6 | +23.0 / -3.2 | +30.7 / +3.0 | +23.2 / -28.5 |
112+
113+Monotone in speed, and film B gained 3.4 points (+34.7/+6.4 -> +30.7/+3.0)
114+without an arm of its own.
115+
116+## Deferred
117+
118+* threaded fps at 1080p / 3840x1608 (4x2 tiles, 8 and 12 threads): NOT
119+ measurable at load 16-25 with two other lanes on the box -- three
120+ interleaved passes put preset 3 below preset 0 every time. Unblocked by a
121+ quiet box; command is `EC_AV1_SPEED=<n> <testbin> --ignored --nocapture
122+ filter_stage_wall_1080p` / `_4k` (see `fps2.log`).
123+* recomposing preset 6 by REMOVING a lever it keeps (delta_q, tpl 4): the
124+ candidates' BD stakes are 0.1-0.2 points and their wall sits under this
125+ box's 13% floor, so the arms cannot rank them. Same unblock.
lanes/pareto2.report.mdadded+125 -0
@@ -0,0 +1,125 @@
1+# lane-pareto2 -- working notes
2+
3+Head: f6c67770 (+ this lane). Box: 12 cores, TWO other lanes running throughout,
4+load 9-25 (load 64 once, during the first fps sweep). Every arm is
5+`encode::tests::bd_rate_screen_native` (12 frames, gop 12, four quantizers,
6+1920x768 / 1920x1024 native crops, 1 tile, 1 thread), logs in
7+`$HOME/.cache/pareto2/logs/`.
8+
9+RULE USED FOR WALL: BD is exact across runs (the same stream), wall is not.
10+Phase-1 arms ran THREE at a time, so their wall is read only as the
11+ours:rav1e-speed-6 ratio INSIDE one arm; the lever arms that decided a shipped
12+row were re-run ONE at a time (`q5.tsv`).
13+
14+## Phase 1 -- the Pareto table, our presets (q1.tsv, 15 arms, all RC=0)
15+
16+BD-rate vs libaom `cpu-used 6` / vs rav1e `speed 6`; fps = 48 coded frames over
17+our own ladder wall in that arm, `ratio` = ours:rav1e-s6 wall in the same arm.
18+
19+| preset | film A | film B | screen | ratio A/B/screen | 1-thread fps A/B/screen |
20+|---|---|---|---|---|---|
21+| 0 | +21.7 / -4.4 | +26.9 / -0.6 | +19.8 / -30.5 | 10.9 / 9.5 / 7.5 | 0.24 / 0.28 / 0.37 |
22+| 3 | +22.3 / -4.1 | +27.3 / -0.3 | +23.7 / -28.4 | 7.4 / 6.6 / 4.4 | 0.40 / 0.48 / 0.60 |
23+| 6 | +26.6 / -0.4 | +34.7 / +6.4 | +23.1 / -28.5 | 2.2 / 3.9 / 3.0 | 0.71 / 0.47 / 0.71 |
24+| 8 | +61.1 / +23.5 | +75.6 / +38.4 | +50.8 / -13.8 | 1.0 / 1.5 / 1.3 | 1.50 / 1.34 / 2.10 |
25+| 10 | +112.0 / +64.4 | +155.0 / +102.7 | +106.0 / +12.7 | 0.8 / 1.4 / 0.6 | 2.46 / 2.03 / 4.17 |
26+
27+## Phase 1b -- the references at THEIR fast presets, same arms (EC_AV1_PARETO_REFS=1)
28+
29+| row | encoder | vs libaom cpu-6 | vs rav1e s6 | ladder wall (rav1e s6 anchor in that arm) |
30+|---|---|---|---|---|
31+| film A | ours preset 6 | +26.6 | -0.4 | 67.6s (31.3s) |
32+| film A | rav1e speed 8 | +29.0 | +2.0 | 24.1s |
33+| film A | rav1e speed 10 | +45.3 | +17.1 | 8.4s |
34+| film A | libaom cpu-used 8 | +0.0 | -20.1 | 15.4s |
35+| film A | SVT-AV1 preset 8 | +24.1 | -1.9 | 2.4s |
36+| film A | SVT-AV1 preset 10 | +45.3 | +12.1 | 2.0s |
37+| film B | ours preset 6 | +34.7 | +6.4 | 103.0s (26.4s) |
38+| film B | rav1e speed 8 | +37.3 | +3.5 | 20.5s |
39+| film B | rav1e speed 10 | +61.4 | +28.7 | 10.5s |
40+| film B | libaom cpu-used 8 | +0.0 | -22.2 | 32.3s |
41+| film B | SVT-AV1 preset 8 | +41.7 | +7.4 | 2.9s |
42+| film B | SVT-AV1 preset 10 | +65.9 | +23.3 | 2.0s |
43+| screen | ours preset 6 | +23.1 | -28.5 | 68.0s (22.6s) |
44+| screen | rav1e speed 8 | +84.2 | +4.5 | 13.8s |
45+| screen | rav1e speed 10 | +332.5 | +103.4 | 9.8s |
46+| screen | libaom cpu-used 8 | +0.0 | -42.4 | 17.6s |
47+| screen | SVT-AV1 preset 8 | +21.5 | -31.6 | 5.0s |
48+| screen | SVT-AV1 preset 10 | +39.4 | -24.5 | 1.9s |
49+
50+`libaom cpu-used 8` reads +0.0% against `cpu-used 6` on every row: this ffmpeg's
51+libaom codes the SAME bytes at both (the old `lanes/pareto.md` run saw the same
52+thing), so it is one point on the plot, not two.
53+
54+NOTE (open): one SVT-AV1 preset-8 screen point decodes one sample off through
55+OUR decoder (`frame 0 plane Y sample 1471489: ours 53, ffmpeg 52`). Reference
56+rows collect that as a note, not a gate failure; it is a real decoder finding.
57+
58+## Phase 2 -- per-lever re-price at preset 6, film A (q2.tsv, 21 arms, all RC=0)
59+
60+Control +26.6 / -0.4. "gain" = BD points the lever takes off the vs-rav1e column.
61+
62+| lever re-enabled at 6 | vs libaom / rav1e | gain |
63+|---|---|---|
64+| extra-reference NEWMV | +24.4 / -2.4 | 2.0 |
65+| coefficient breakout 0 | +24.8 / -1.6 | 1.2 |
66+| 8x8 split | +25.9 / -0.8 | 0.4 |
67+| warp | +26.2 / -0.8 | 0.4 |
68+| CfL | +26.2 / -0.7 | 0.3 |
69+| chroma top-k off | +26.3 / -0.7 | 0.3 |
70+| inter var-tx | +26.3 / -0.7 | 0.3 |
71+| angle delta | +26.5 / -0.6 | 0.2 |
72+| split-RD 0.125 | +26.4 / -0.6 | 0.2 |
73+| inter-intra top-13 | +26.7 / -0.3 | 0.1 |
74+| intra top-13 | +26.7 / -0.4 | 0.0 |
75+| filter intra | +26.7 / -0.4 | 0.0 |
76+| 32x32 tx depth | +26.6 / -0.4 | 0.0 (inert: inter tx select is off at 6) |
77+| compound var-tx | +26.6 / -0.4 | 0.0 (same cause) |
78+| loop restoration | +26.7 / -0.2 | -0.2 (worse) |
79+
80+| lever preset 6 KEEPS, disabled | vs libaom / rav1e | cost of losing it |
81+|---|---|---|
82+| RDOQ | +41.2 / +10.2 | 10.6 |
83+| 64x64 inter root | +30.7 / +3.4 | 3.8 |
84+| key 64x64 intra root | +28.0 / +0.9 | 1.3 |
85+| tpl window 4 -> 1 | +27.0 / -0.3 | 0.1 |
86+| per-SB delta_q | +27.2 / -0.2 | 0.2 |
87+
88+## Phase 3 -- wall of the two candidates, serial arms
89+
90+See `q3.tsv`/`q5.tsv` logs; the threaded fps sweep (`fps2.log`) is NOT usable at
91+this box load -- preset 3 read slower than preset 0 in every pass.
92+
93+## Phase 3 -- serial wall arms (q3/q5, one at a time on MY side; other lanes still ran)
94+
95+| arm | film A BD (libaom / rav1e) | our ladder wall |
96+|---|---|---|
97+| control (preset 6 as it shipped) | +26.6 / -0.4 | 66.3s, 71.1s, 75.2s (three arms) |
98+| + extra-reference NEWMV | +24.4 / -2.4 | 103.2s, 86.4s |
99+| + coefficient breakout 0 | +24.8 / -1.6 | 73.7s |
100+| + both | +23.0 / -3.2 | 67.7s (contended, discarded), 95.6s |
101+
102+Control spread is 13%, so anything cheaper than that is unmeasurable here; the
103+95.6s / 75.2s serial pair is the price of this lane's change: +27% wall.
104+
105+## Phase 4 -- the recomposed presets, re-run for real (q6)
106+
107+| preset | film A | film B | screen |
108+|---|---|---|---|
109+| 4 | +22.5 / -3.9 | -- | -- |
110+| 5 | +22.5 / -3.6 | -- | -- |
111+| 6 | +23.0 / -3.2 | +30.7 / +3.0 | +23.2 / -28.5 |
112+
113+Monotone in speed, and film B gained 3.4 points (+34.7/+6.4 -> +30.7/+3.0)
114+without an arm of its own.
115+
116+## Deferred
117+
118+* threaded fps at 1080p / 3840x1608 (4x2 tiles, 8 and 12 threads): NOT
119+ measurable at load 16-25 with two other lanes on the box -- three
120+ interleaved passes put preset 3 below preset 0 every time. Unblocked by a
121+ quiet box; command is `EC_AV1_SPEED=<n> <testbin> --ignored --nocapture
122+ filter_stage_wall_1080p` / `_4k` (see `fps2.log`).
123+* recomposing preset 6 by REMOVING a lever it keeps (delta_q, tpl 4): the
124+ candidates' BD stakes are 0.1-0.2 points and their wall sits under this
125+ box's 13% floor, so the arms cannot rank them. Same unblock.