fix(queue): a timed run's noise is what its own processes stalled on, not the PC's swapping #2409
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!2409
Loadingβ¦
Reference in a new issue
No description provided.
Delete branch "HumanBean/Longshot:push-pzwzrlmounmm"
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
Since #2403, every timed run on a 32 GB PC comes out NOISY even when nothing else runs. The game holds about 18 GB it can't swap (its job's scope has
MemorySwapMax=0: 11.3 GB anonymous plus 6.9 GB shared memory). The rest of the PC is swapped out at 50β160 MB/s, and the PC-wide memory PSI rises to 2β6 %. Meanwhile the game's own job stalls only 0.05 % on memory, 0.3 % on disk and 0.5 % on CPU, and its frames are clean (Kokiri Forest p99 11.6 ms).cgroup_of,pressure(..., cgroup)), falling back to the PC's where there is none (Windows, or no systemd scope). A sample says which it read (own).swap_mb,swap_mb_s). Swapping that hurts the run shows up as the run's own memory or disk stalls.Testing
Tested: Linux (CachyOS 7.3), RTX 3090, during a
release_bench.pyrun at 1080p. The game's job scope read 0.05 % memory, 0.23 % disk and 0.06 % CPU "full" stalls, while the whole PC showed 0.7β6.2 % memory stalls and swapped 51β162 MB/s; frame times were clean. The new tests cover the cgroup's PSI files, theownflag, and swapping alone giving no reason; they weren't run on this PC (CI runs them).Still to test:
Measurements
Nothing to measure: dev tooling.
Risks
A run slowed by another process only through the memory bus or the L3, with no stall of its own, is no longer caught by the PSI limits. The other CPUs' use (over 50 % busy) still catches a heavy job beside it.
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
WIP: fix(queue): a timed run's noise is what its own processes stalled on, not the PC's swappingto fix(queue): a timed run's noise is what its own processes stalled on, not the PC's swappingPossibly related, for context: