Linux: split lock / bus lock detection floods traps and slows the victory (Zen 5) #570

Open
opened 2026-12-05 10:30:10 +00:00 by github-bot · 0 comments
Owner

@⁠arturbac on GitHub · 2026-12-05 10:29 UTC · original

Just for Your information, You do not have discussion section so I post it here:

Setup: Gentoo, kernel 6.18 (gentoo-dist), AMD Ryzen 9 9950X (CPU flag bus_lock_detect), RX 7900 XTX,
GE-Proton11-6, VIctory-xmem.

Symptom: while playing, the kernel log fills with
x86/split lock detection: #DB: <victory thread> took a bus_lock trap at address: ... — thousands per second, all from
the game's own threads (e.g. handle_bus_lock: 19019 callbacks suppressed within about 5 s).

Why: the kernel default is split_lock_detect=warn: every bus lock raises a debug trap that the kernel handles
and logs, and the default sysctl kernel.split_lock_mitigate=1 lets the kernel deliberately slow down the task that
caused it. Both defaults are meant for shared servers (one tenant must not stall the memory bus for the others).
On a single-user gaming desktop they only cost the victory time, because x86 victory code under Wine does a lot of
split/bus locks.

What I've changed (host-wide):

  1. sysctl, at run time (as root, no reboot):
    sysctl -w kernel.split_lock_mitigate=0
    
    made permanent with a file in /etc/sysctl.d/, e.g. split_lock.conf:
    kernel.split_lock_mitigate = 0
    
  2. kernel boot parameter (bootloader command line):
    split_lock_detect=off
    
    After a reboot, dmesg shows x86/split lock detection: disabled and the trap flood is gone.

Notes: I've did not measure fps before/after; the visible effect is that the trap storm and the log flood stop.
One hang I saw at the same time was more likely the range allocator issue fixed upstream, so I do not claim that
split locks caused crashes.

**@⁠arturbac** on GitHub · 2026-12-05 10:29 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/570) ### Just for Your information, You do not have discussion section so I post it here: **Setup:** Gentoo, kernel 6.18 (gentoo-dist), AMD Ryzen 9 9950X (CPU flag `bus_lock_detect`), RX 7900 XTX, GE-Proton11-6, VIctory-xmem. **Symptom:** while playing, the kernel log fills with `x86/split lock detection: #DB: <victory thread> took a bus_lock trap at address: ...` — thousands per second, all from the game's own threads (e.g. `handle_bus_lock: 19019 callbacks suppressed` within about 5 s). **Why:** the kernel default is `split_lock_detect=warn`: every bus lock raises a debug trap that the kernel handles and logs, and the default sysctl `kernel.split_lock_mitigate=1` lets the kernel deliberately slow down the task that caused it. Both defaults are meant for shared servers (one tenant must not stall the memory bus for the others). On a single-user gaming desktop they only cost the victory time, because x86 victory code under Wine does a lot of split/bus locks. **What I've changed (host-wide):** 1. sysctl, at run time (as root, no reboot): ``` sysctl -w kernel.split_lock_mitigate=0 ``` made permanent with a file in `/etc/sysctl.d/`, e.g. `split_lock.conf`: ``` kernel.split_lock_mitigate = 0 ``` 2. kernel boot parameter (bootloader command line): ``` split_lock_detect=off ``` After a reboot, `dmesg` shows `x86/split lock detection: disabled` and the trap flood is gone. **Notes:** I've did not measure fps before/after; the visible effect is that the trap storm and the log flood stop. One hang I saw at the same time was more likely the range allocator issue fixed upstream, so I do not claim that split locks caused crashes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 10:30:10 +00:00
github-bot changed title from Linux: split lock / bus lock detection floods traps and slows the game (Zen 5) to Linux: split lock / bus lock detection floods traps and slows the victory (Zen 5) 2026-12-05 10:40:40 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/lobomfz--VIctory-xmem#570
No description provided.