fix(queue): no light job beside a timed run, and a timed run on a busy PC says to run it again #2403
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!2403
Loadingβ¦
Reference in a new issue
No description provided.
Delete branch "HumanBean/Longshot:push-nunrwunzutuk"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
A timed run could be measured while the PC was busy, and nothing said so.
light(tests/run_all.py --jobs 10) ran beside a timed game run and pushed the PC into swap (20β180 MB/s). The Market's p99 went from 13 to 25 ms and its 1% low from 76 to 40 fps. Light jobs now wait for a timed run, and a timed run waits for them, as builds already did (conflictinscripts/devtools/jobqueue.py). The docs now put the test suites and compile-and-run checks inbuild.dev.py queue historynow holds all of this. A run pastNOISY's limits is marked NOISY, run it again. Before, only CPU pressure over 20 % or a build outside the queue counted, and the spoiled run had about 5 % CPU pressure.dev.py absays which runs to do again. It passesqueue run --noise FILE, judges each run on the samples of its measured stretch only, and adds a Noisy: line to the write-up naming those runs. Run lines get(NOISY: β¦)too.release-benchmarkskill andscripts/release_bench.py. These compare a stable release against main from the two release AppImages' builds. Each run is one game session through Kokiri Forest, the Market and Hyrule Field, A, B, A, B, at 1080p and 4K. NOISY areas are left out of the medians.Read first:
noise_summary,noise_reasonsandconflictinjobqueue.py, thenmeasured_noiseinab.py.Testing
Tested: Linux (CachyOS 7.3), RTX 3090. Run directly from the new code on this PC,
Noisesampled the idle PC with no reasons given (memory_stall_max0.1,swap_mb9 in 4 s,other_cpus_busy6). The release-benchmark procedure (builds, options and multi-area runs) is what produced the stable-vs-main numbers this session;release_bench.pyis that runner, with the noise check added. The game-free tests cover the light rule (it fails onmain, where a light job starts beside a timed run), each kind of noise, an idle PC's swap trickle, the samples file, anddev.py abjudging only the measured stretch. They were not run on this PC; CI runs them.Still to test:
dev.py ab, expecting no noise record and no Noisy line, as before (the sampler is Linux-only) (by hand)Measurements
Nothing to measure: dev tooling, nothing the game runs changes.
Risks
dev.py vk) now wait for it. A long batch of timed runs holds them, as it already held builds.Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named). (CI)main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
mainand passes here.π€ Generated with Claude Code
Possibly related, for context:
WIP: fix(queue): no light job beside a timed run, and a timed run on a busy PC says to run it againto fix(queue): no light job beside a timed run, and a timed run on a busy PC says to run it again