bugfix: add temporary watchdog service for high-CPU processes#1335
bugfix: add temporary watchdog service for high-CPU processes#1335brianmcgillion merged 1 commit intotiiuae:mainfrom
Conversation
Signed-off-by: Kajus Naujokaitis <kajus.naujokaitis@unikie.com>
|
Tested on Lenovo-X1 (new image)
Notes
|
|
Is this supposed to run automatically? I still get full CPU load for both Also, if this watchdog detects offending processes and kill them, will them auto-restart? |
Yes they restart automatically, this is handled by cosmic session. Let’s keep broader issue discussion limited to cosmic upstream 😀 |
Not on my machine. Both How this watchdog is initialized? Does it rely on systemd? |
Yes the watchdog is a systemd service. Here, the configuration is correct, but there’s a timing issue - cosmic tools start too early, and don’t re-establish a connection to the sound related daemons, so we simply restart the cosmic tools. |
I see. Well, that's a bummer. Nothing should rely on systemd.
Pipewire works just fine on PorteuX. I can even use COSMIC audio settings with no issues. |
Description of Changes
cosmic-sessioncosmic-applet-audio,cosmic-osdType of Change
Related Issues / Tickets
Checklist
make-checksand it passesTesting Instructions
Applicable Targets
aarch64aarch64x86_64x86_64x86_64Installation Method
nixos-rebuild ... switchTest Steps To Verify:
NOTE: Perform the following test at least 3 times to confirm the behavior is consistent
htopandjournalctl --user-unit=cosmic-cpu-watchdog.servicecosmic-applet-audioandcosmic-osdshould appear in htop consuming more than 80% of CPU resourcescosmic-cpu-watchdogwithin ~2 minutes, the watchdog should then exit