radv-tinker
1c604af1a0
vk_pipeline_check: large modules share a memory budget instead of compiling alone
...
Modules over --large-module-bytes compiled one at a time with every other thread waiting. On the translated
corpus that is 695 modules (the ray-tracing compute shaders, ~14k RDNA2 instructions each, ~4.9 MB of SPIR-V),
about 12 s and 2 GB each on RADV GFX1201, so the pipelines stage spent hours mostly single-threaded.
large_module_gate.h lets large modules in while 512 bytes per SPIR-V byte fits 3/4 of the memory available at
start (Linux: MemAvailable and the cgroup v2 memory.max room up the tree; Windows: ullAvailPhys), one always
admitted when none is in, small modules never held back. Unknown memory keeps the old exclusive gate, as does
--large-parallel 1. malloc_trim(0) after each large module returns what glibc kept in per-thread arenas.
40 modules (27 large), Mesa shader cache off, RX 9070 XT / Mesa 25.3.6: 297 s -> 83 s on 6 threads (7.1 -> 8.3 GB
peak), 56 s on 12 threads (15.1 GB).
Tested: large_module_gate_test (Linux, and the clang-cl build under Proton), ctest on Linux (40 passed, 2
skipped), vk_pipeline_check over 40 real modules in three modes, and the pipelines stage over the corpus with the
gate: 26,000+ of 26,503 modules in 15 min, none failed. The largest module (26 MB of SPIR-V) was still compiling
alone on RADV after 25 min, as it would under the old gate. AI-assisted.
2026-11-23 00:30:02 +00:00
..
2026-11-22 15:13:34 -05:00
2026-11-22 15:16:24 -05:00
2026-11-22 15:16:55 -05:00
2026-11-22 15:11:53 +01:00
2026-11-22 20:01:37 +04:00
2026-11-22 15:40:17 +01:00
2026-11-22 20:23:07 +08:00
2026-11-22 18:48:54 +00:00
2026-11-22 18:48:54 +00:00
2026-11-22 20:09:00 +01:00
2026-11-22 13:17:12 -05:00
2026-11-22 22:02:32 +02:00
2026-11-22 17:40:54 +01:00
2026-11-23 00:24:49 +05:30
2026-11-22 01:41:43 -08:00
2026-11-22 16:21:16 +01:00
2026-11-22 18:08:14 +00:00
2026-11-22 17:27:41 +00:00
2026-11-22 15:16:14 +01:00
2026-11-22 15:13:16 -05:00
2026-11-22 13:51:05 +01:00
2026-11-22 23:06:44 +07:00
2026-11-22 15:57:00 -04:00
2026-11-22 12:24:19 -03:00
2026-11-22 15:33:50 +01:00
2026-11-23 02:53:47 +07:00
2026-11-22 23:06:44 +07:00
2026-11-22 10:03:51 -03:00
2026-11-22 15:16:15 -05:00
2026-11-22 15:12:36 -05:00
2026-11-22 15:57:00 -04:00
2026-11-22 15:13:04 -05:00
2026-11-22 20:35:52 +02:00
2026-11-22 07:29:31 -05:00
2026-11-22 19:24:07 +01:00
2026-11-22 15:13:10 -05:00
2026-11-22 15:16:12 -05:00
2026-11-22 15:09:45 -05:00
2026-11-22 13:57:55 -03:00
2026-11-22 20:35:52 +02:00
2026-11-22 15:09:38 -05:00
2026-11-22 12:49:24 -03:00
2026-11-22 15:14:45 -05:00
2026-11-22 17:40:54 +01:00
2026-11-22 18:05:49 +01:00
2026-11-22 15:27:09 +00:00
2026-11-22 20:35:52 +02:00
2026-11-22 12:26:05 -03:00
2026-11-22 14:37:21 +01:00
2026-11-22 11:24:23 -03:00
2026-11-22 19:51:46 +01:00
2026-11-22 15:16:48 -05:00
2026-11-22 11:39:53 -08:00
2026-11-22 20:35:52 +02:00
2026-11-22 15:14:45 -05:00
2026-11-22 11:52:23 -03:00
2026-11-22 15:14:05 -05:00
2026-11-22 19:24:07 +01:00
2026-11-22 20:35:52 +02:00
2026-11-22 19:22:39 +01:00
2026-11-22 16:15:06 +03:00
2026-11-22 06:08:05 -05:00
2026-11-22 20:35:52 +02:00
2026-11-22 20:04:08 +00:00
2026-11-22 16:14:57 +01:00
2026-11-22 15:14:45 -05:00
2026-11-22 19:57:44 +01:00
2026-11-22 15:26:28 -04:00
2026-11-22 13:16:24 -05:00
2026-11-22 13:09:10 +01:00
2026-11-22 13:05:57 +01:00
2026-11-22 19:04:31 +01:00
2026-11-22 12:39:55 -03:00
2026-11-22 21:02:42 +01:00
2026-11-22 16:57:47 +01:00
2026-11-22 15:44:41 +01:00
2026-11-22 14:55:06 -04:00
2026-11-22 15:13:57 -05:00
2026-11-22 11:30:53 -05:00
2026-11-22 09:52:41 +01:00
2026-11-22 11:52:23 -03:00
2026-11-22 18:03:12 +01:00
2026-11-22 19:50:13 +05:30
2026-11-22 18:23:23 +01:00
2026-11-22 15:16:40 -05:00
2026-11-22 16:55:46 -05:00
2026-11-22 17:00:01 +01:00
2026-11-22 19:26:59 +00:00
2026-11-22 17:54:37 +00:00
2026-11-22 23:05:47 +03:00
2026-11-22 15:15:26 -05:00
2026-11-22 16:56:36 +01:00
2026-11-22 17:56:49 +00:00
2026-11-22 20:56:12 +02:00
2026-11-22 12:25:32 +02:00
2026-11-23 00:30:02 +00:00
2026-11-23 00:30:02 +00:00
2026-11-22 15:16:07 -05:00
2026-11-22 21:02:58 +01:00
2026-11-22 09:09:13 -06:00
2026-11-22 11:16:59 +01:00
2026-11-22 10:21:49 -05:00
2026-11-22 10:21:49 -05:00
2026-11-22 05:28:28 -04:00
2026-11-22 11:52:23 -03:00
2026-11-22 15:34:07 -03:00
2026-11-22 16:03:17 +01:00
2026-11-22 13:51:05 +01:00
2026-11-22 14:30:52 +03:00
2026-11-22 15:31:33 -05:00
2026-11-22 14:03:23 -03:00
2026-11-22 18:10:42 +01:00
2026-11-22 15:23:54 +03:00
2026-11-22 14:55:06 -04:00
2026-11-22 13:19:27 +03:00
2026-11-22 13:13:25 -05:00
2026-11-22 15:52:52 +03:00
2026-11-22 13:30:09 +05:30
2026-11-22 14:15:15 +01:00
2026-11-22 18:04:34 +01:00
2026-11-22 18:15:36 +01:00
2026-11-22 18:15:36 +01:00
2026-11-22 20:24:28 +01:00
2026-11-22 15:14:52 -05:00
2026-11-22 13:57:55 -03:00
2026-11-22 14:58:44 -03:00
2026-11-22 12:08:32 -03:00
2026-11-22 19:26:59 +00:00
2026-11-22 20:38:19 +08:00
2026-11-22 11:41:49 -05:00
2026-11-22 19:26:59 +00:00
2026-11-22 16:59:06 +03:00
2026-11-22 07:38:26 -05:00
2026-11-22 20:01:58 +00:00
2026-11-22 13:44:57 -05:00
2026-11-22 15:16:18 -05:00
2026-11-22 09:42:20 -05:00
2026-11-22 15:27:09 +00:00
2026-11-22 18:06:35 +03:00
2026-11-22 15:14:29 -05:00
2026-11-22 19:32:05 +02:00
2026-11-22 15:13:32 -05:00
2026-11-22 18:48:05 +02:00
2026-11-23 00:30:02 +00:00
2026-11-22 13:44:57 -05:00
2026-11-22 13:44:57 -05:00
2026-11-22 20:07:03 +01:00
2026-11-22 19:22:39 +01:00
2026-11-22 16:04:46 +01:00
2026-11-22 18:48:05 +02:00
2026-11-22 13:53:56 -03:00
2026-11-22 15:15:33 -05:00
2026-11-22 14:24:16 +01:00
2026-11-22 15:16:24 -05:00
2026-11-22 15:12:56 -05:00
2026-11-22 15:29:57 +01:00
2026-11-22 17:02:00 -03:00
2026-11-22 15:27:09 +00:00
2026-11-22 14:48:31 +03:00
2026-11-22 16:55:46 -05:00
2026-11-22 15:14:05 -05:00
2026-11-22 16:55:46 -05:00
2026-11-22 16:55:46 -05:00
2026-11-22 15:11:53 +01:00