Closed Jaage closed 4 months ago
In your configuration you're starting lavd as a service, is it properly running? (systemctl status scx
)
It appears to be:
jjh@nixos:~/ > systemctl status scx
● scx.service - scheduler daemon
Loaded: loaded (/etc/systemd/system/scx.service; enabled; preset: enabled)
Active: active (running) since Wed 2024-06-19 18:05:43 PDT; 13h ago
Main PID: 1045 (scx_lavd)
IP: 0B in, 0B out
IO: 4.3M read, 14.0M written
Tasks: 1 (limit: 18989)
Memory: 3.4M (peak: 28.0M swap: 20.4M swap peak: 20.4M zswap: 1.4M)
CPU: 5.971s
CGroup: /system.slice/scx.service
└─1045 /nix/store/4i0h79jz9z7w10zm9907v02clhf5pwk2-scx-unstable-20240429-b1bb2a5c5/bin/scx_lavd
Jun 20 07:32:12 nixos scx_lavd[1045]: 14:32:12 [INFO] | 48373 | 8750 | IPC:CServiceEng | 1 | -1 | 0 | 0 | 3000000 | 6 | 21 | 42 | 37 | 43 | 48 | 20 | 1 | >
Jun 20 07:32:13 nixos scx_lavd[1045]: 14:32:13 [INFO] | 48374 | 644 | systemd-journal | 14 | -1 | 0 | 0 | 3000000 | 31 | 22 | 42 | 40 | 43 | 47 | 20 | 2 | >
Jun 20 07:32:14 nixos scx_lavd[1045]: 14:32:14 [INFO] | 48375 | 644 | systemd-journal | 9 | -1 | 0 | 0 | 3000000 | 4 | 21 | 42 | 33 | 43 | 48 | 20 | 1 | >
Jun 20 07:32:15 nixos scx_lavd[1045]: 14:32:15 [INFO] | 48376 | 644 | systemd-journal | 9 | -1 | 0 | 0 | 3000000 | 805 | 20 | 42 | 22 | 43 | 48 | 20 | 0 | >
Jun 20 07:32:16 nixos scx_lavd[1045]: 14:32:16 [INFO] | 48377 | 644 | systemd-journal | 2 | 2 | 6015000 | 143846 | 911519 | 6127 | 19 | 42 | 5 | 43 | 48 | 20 | -1 | >
Jun 20 07:32:17 nixos scx_lavd[1045]: 14:32:17 [INFO] | 48378 | 644 | systemd-journal | 2 | 2 | 6015000 | 103936 | 3000000 | 2509 | 19 | 42 | 17 | 43 | 49 | 20 | -1 | >
Jun 20 07:32:18 nixos scx_lavd[1045]: 14:32:18 [INFO] | 48379 | 644 | systemd-journal | 2 | 2 | 6015000 | 209484 | 3000000 | 2843 | 19 | 42 | 26 | 43 | 50 | 20 | -1 | >
Jun 20 07:32:19 nixos scx_lavd[1045]: 14:32:19 [INFO] | 48380 | 644 | systemd-journal | 2 | 2 | 6015000 | 331403 | 3000000 | 2566 | 19 | 42 | 17 | 43 | 49 | 20 | -1 | >
Jun 20 07:32:20 nixos scx_lavd[1045]: 14:32:20 [INFO] | 48381 | 644 | systemd-journal | 12 | -1 | 0 | 0 | 3000000 | 595 | 20 | 42 | 25 | 43 | 51 | 20 | 0 | >
Jun 20 07:32:21 nixos scx_lavd[1045]: 14:32:21 [INFO] | 48382 | 644 | systemd-journal | 12 | -1 | 0 | 0 | 3000000 | 142 | 22 | 42 | 40 | 43 | 49 | 20 | 2 | >
It appears to be:
I'm unable to reproduce, like @s0me1newithhand7s (thank you).
@Jaage are you stopping the service before manually starting scx_rusty
?
I did test manually stopping the service using systemctl stop scx
and then starting it, to no avail.
I am not able to reproduce this on my desktop, only my legion lenovo laptop. Perhaps that has something to do with it. I won't have it with me for a while.
Desktop specs where it works:
▜███▙ ▜███▙ ▟███▛ -----------
▜███▙ ▜███▙▟███▛ OS: NixOS 24.11.20240605.e8057b6 (Vicuña) x86_64
▜███▙ ▜██████▛ Host: Z690 AORUS MASTER (-CF)
▟█████████████████▙ ▜████▛ ▟▙ Kernel: Linux 6.9.3-cachyos
▟███████████████████▙ ▜███▙ ▟██▙ Uptime: 6 mins
▄▄▄▄▖ ▜███▙ ▟███▛ Packages: 1750 (nix-system)
▟███▛ ▜██▛ ▟███▛ Shell: zsh 5.9
▟███▛ ▜▛ ▟███▛ Display (XB273U): 2560x1440 @ 144Hz (as 1280x720)
▟███████████▛ ▟██████████▙ Display (LG TV SSCR2): 3840x2160 @ 120Hz (as 1920x1080) []
▜██████████▛ ▟███████████▛ DE: KDE Plasma
▟███▛ ▟▙ ▟███▛ WM: KWin (Wayland)
▟███▛ ▟██▙ ▟███▛ WM Theme: plastik
▟███▛ ▜███▙ ▝▀▀▀▀ Theme: Breeze (GentlyColorDarkCyan) [QT]
▜██▛ ▜███▙ ▜██████████████████▛ Icons: breeze-dark [QT], breeze-dark [GTK2/3/4]
▜▛ ▟████▙ ▜████████████████▛ Font: Noto Sans (10pt) [QT], Noto Sans (10pt) [GTK2/3/4]
▟██████▙ ▜███▙ Cursor: breeze (24px)
▟███▛▜███▙ ▜███▙ Terminal: foot 1.17.2
▟███▛ ▜███▙ ▜███▙ Terminal Font: monospace (8pt)
▝▀▀▀ ▀▀▀▀▘ ▀▀▀▘ CPU: 13th Gen Intel(R) Core(TM) i9-13900K (32) @ 5.80 GHz
GPU 1: NVIDIA GeForce RTX 4090 [Discrete]
GPU 2: Intel UHD Graphics 770 @ 1.65 GHz [Integrated]
Memory: 3.56 GiB / 94.06 GiB (4%)
Swap: 0 B / 953.00 MiB (0%)
Disk (/): 279.21 GiB / 3.64 TiB (8%) - xfs
Local IP (enp6s0): 192.168.0.251/24 *
Locale: en_US.UTF-8
only my legion lenovo laptop
When you have it, make sure to update it (scx 0.1.10 and kernel 6.9.5), I can see by your logs you're using an older one (scx unstable from before 0.1.10 and kernel 6.9.3).
On 0.1.10, this commit is in: https://github.com/sched-ext/scx/commit/382ef72999b57ffec8aed0dc0913338d8e22fe39 -- and it throws an error about running multiple schedulers instead of a backtrace that looks identical to yours.
Fixed after updating the system.
What happens?
When attempting to start any scheduler manually, like
sudo scx_rusty
I receive this error:What is expected to happen?
If possible, please attach logs
No response
More information
Here are the relevant parts of my configuration.nix:
And my flake.nix: