Reproduce-first (perf, linux-kernel finding): the extraction back-pressure * gate must stop re-paying the full collect+nap tax on every file pull once a * full nap cycle has failed to reclaim under budget. With CBM_MEM_BUDGET_MB=1 * the test process RSS is permanently over budget and NOTHING napping can * change that (the resident floor IS the process) — napping is provably futile. * OLD beha
| 20396 | * MIN_FILES_FOR_PARALLEL (50) so the parallel extract path — the only phase |
| 20397 | * with a memory gate — is the one that runs. */ |
| 20398 | static bool write_backpressure_fixture(void) { |
| 20399 | snprintf(g_tmpdir, sizeof(g_tmpdir), "/tmp/cbm_test_XXXXXX"); |
| 20400 | if (!cbm_mkdtemp(g_tmpdir)) { |
| 20401 | return false; |
| 20402 | } |
| 20403 | for (int i = 0; i < 64; i++) { |
| 20404 | char path[512]; |
| 20405 | snprintf(path, sizeof(path), "%s/f%02d.go", g_tmpdir, i); |
| 20406 | FILE *f = fopen(path, "w"); |
| 20407 | if (!f) { |
| 20408 | return false; |
| 20409 | } |
| 20410 | fprintf(f, "package main\n\nfunc F%02d() int {\n\treturn %d\n}\n", i, i); |
| 20411 | fclose(f); |
| 20412 | } |
| 20413 | return true; |
| 20414 | } |
| 20415 | |
| 20416 | /* Rewrite every fixture file with a second definition. An unchanged repo |
| 20417 | * routes incremental_manifest → incremental.noop (nothing is re-extracted, so |
no test coverage detected