Frogging-Family / linux-tkg

linux-tkg custom kernels
GNU General Public License v2.0
1.32k stars 166 forks source link

BMQ Scheduler causes Freeze on Star Wars Jedi Fallen Order #722

Open kodatarule opened 1 year ago

kodatarule commented 1 year ago

Describe the bug When you are running TKG-BMQ, everything is fine however when you launch Star Wars Jedi Fallen Order and load a checkpoint during the load the game will spike up the cpu to 100% and just freeze the system.

Pheidologeton commented 1 year ago

Exactly the same problem with this game when using any version of wine/proton. Appears when using alternative schedulers to a greater or lesser effect. When using cfs there are no such problems, only very rarely can the game hangs completely, which does not cause the computer to crash. If you need, I can share my customization.txt Tested on 6.2.8-tkg-bmq-llvm with thin lto on kvm machine with gpu (rx 6900xt) with cpu pin

TheBirdsAreWatching commented 1 year ago

I have very similar issues and I'm fairly certain it's related to https://gitlab.com/alfredchen/linux-prjc/-/issues/79

patlefort commented 1 year ago

I dunno if I have the same issue but my whole computer hard locks after a few minutes of playing PSO2: NGS. The regular kernel is fine. I tried bmq and tt schedulers. All version 6.3.1. No problem on 6.2. It doesn't happen on my laptop (Ryzen 7 4800H with Radeon RX 5600M), only on my desktop (threadripper 1950x with 6900xt).

xlacroixx commented 1 year ago

Same here.

Some info on my setup ``` > neofetch -` kkiot@[REDACTED] .o+` --------------- `ooo/ OS: Arch Linux x86_64 `+oooo: Kernel: 6.3.2-arch1-1 `+oooooo: Uptime: 38 mins -+oooooo+: Packages: 1140 (pacman), 19 (flatpak) `/:-:++oooo+: Shell: zsh 5.9 `/++++/+++++++: Resolution: 2560x1440 `/++++++++++++++: DE: Hyprland `/+++ooooooooooooo/` Theme: Adwaita [GTK3] ./ooosssso++osssssso+` Icons: Adwaita [GTK3] .oossssso-````/ossssss+` Terminal: kitty -osssssso. :ssssssso. CPU: AMD Ryzen 5 3600 (12) @ 3.600GHz :osssssss/ osssso+++. GPU: NVIDIA GeForce GTX 1060 6GB /ossssssss/ +ssssooo/- Memory: 2720MiB / 7851MiB `/ossssso+/:- -:/+osssso+- `+sso+:-` `.-/+oso: `++:. `-/+/ .` `/ ``` *Note:* neofetched on vanilla kernel.

At a given point, my system will randomly deadlock, requiring a reboot; it happens usually while running Firefox on native Wayland (Hyprland).

Never happened on 6.2 and maaaybe 6.3.0? Started occurring on 6.3.1 and beyond.

@TheBirdsAreWatching Very good catch!

According to this nice experiment on the Project C issue, both UDS and BMQ are affected. The fix requires two patches (first, second), and disabling PSI (ie. set psi=0 in kernel command line).

With this commit, PSI has been made entirely unavailable on v6.3-prjc-r1 (latest release of Project C); well, makes things easier, because PSI needs to be disabled.

Until a TkG patch isn't made available yet, I recommend choosing a scheduler other than Project C.

This issue could use a title rename, as both Project C scheds are bugged, and it will also freeze at any time once the right workload gets queued.

ryanmusante commented 1 year ago

So many problems and tickets related to projectc. I'm staying on CFS for the interim.

xlacroixx commented 1 year ago

Seems that everything has been solved on the Project C side. No more freezes in my case.

kodatarule commented 1 year ago

seems to have been resolved for me as well for both SW JFO and Tales of Arise with BMQ

shaumux commented 9 months ago

Jedi Fallen order kept hard locking my system up until now on 6.6.5, worked on 6.4 for some reason but after finding this and switching back to the default scheduler fixed the issue. I'm on zen-kernel though