I've read and heard about some issues with the Systemd-OOM feature in Kubuntu/Ubuntu 22.04 (I know that Redhat/Fedora was the first to introduce this). Will Kubuntu/Ubuntu 22.04.1 fix this issues with Systemd-OOM? The reason I ask is because sometimes I have quite a bit of tabs open in Firefox and I have four email accounts running in Thunderbird and I don't want Kubuntu to close them just because its using 40 to 50% of my RAM I mean there should be a way for Kubuntu/Ubuntu users to adjust the Systemd-OOM feature to lets say 70 or 80% of RAM.
Announcement
Collapse
No announcement yet.
Will Kubuntu/Ubuntu 22.04.1 fix the issues with Systemd-OOM?
Collapse
This topic is closed.
X
X
-
Reading through dev posts about this service over at Red Hat, it seems like the defaults pressure levels are hard coded into the service and not configurable by the user. I could be wrong, but that is my understanding. You did not mention how much RAM you have in your system and what your Swap file size is. I don't think it will make much difference anyway.
If you feel you do not need the service, you can always try to disable and mask it. I do not have it running on my machine and so far have not had any issues. That may change in the future, but for now I'd say if it is causing problems, try disabling it to see if it is even necessary.
Code:sudo systemctl disable --now systemd-oomd
Code:sudo systemctl mask systemd-oomd
I expect someone will chime in here and say not to disable it, but it is not running on all distros out there in the wild. The jury is still out on what the best solution is for now. But I say if you are comfortable, have plenty of ram and swap, disabling it is not permanent and can be reversed. I have had success with disabling it, but every configuration and machine is different. Obviously, if you system crashes without systemd-oomd, you will lose data but the same things happens when it closes apps now.
Good luck and keep us updated on your progress.Last edited by rab0171610; Jul 10, 2022, 01:12 PM.
- Top
- Bottom
-
Other users are also disabling this service. You can read the user comments here:
https://www.omgubuntu.co.uk/2022/06/...m-killing-apps
- Top
- Bottom
Comment
-
Also to better understand systemd-oomd as a daemon with regards to interacting with the in-kernel oom-killer:
https://wiki.archlinux.org/title/improving_performance
See the section titled: Improving system responsiveness under low-memory conditions
- Top
- Bottom
Comment
-
Originally posted by SuperSapien64 View PostI've read and heard about some issues with the Systemd-OOM feature in Kubuntu/Ubuntu 22.04...
oom killers exist to cope with severe out of memory circumstances where the system becomes unresponsive and so the user can't take any action to relieve it. Are you experiencing out of memory slow downs?
I think I'd prefer to enable Alt-Sysrq-f and try it before using an automatic oom killer.
Regards, John Little
- Top
- Bottom
Comment
-
Originally posted by jlittle View PostHave you any indication that systemd-oomd is active on your systems? On this 22.04 it's not even installed.
[…]
I have read somewhere (sorry, can't remeber where, but it seemed to be a legitimate source) that Ubuntu already has "tamed" systemd-oomd a bit…Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X
Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others
get rid of Snap script (20.04 +) • reinstall Snap for release-upgrade script (20.04 +)
install traditional Firefox script (22.04 +) • install traditional Thunderbird script (24.04)
- Top
- Bottom
Comment
-
-
Originally posted by jlittle View Post<mode=self-congratulation>
That suggests to me that the Gnome DE uses a lot of memory, and KDE is not so bad.</mode>
- Top
- Bottom
Comment
-
Originally posted by jlittle View PostHave you any indication that systemd-oomd is active on your systems? On this 22.04 it's not even installed.
oom killers exist to cope with severe out of memory circumstances where the system becomes unresponsive and so the user can't take any action to relieve it. Are you experiencing out of memory slow downs?
I think I'd prefer to enable Alt-Sysrq-f and try it before using an automatic oom killer.
- Top
- Bottom
Comment
-
As jlittle has mentioned, systemd-oomd is not even installed on a default Kubuntu 22.04, so any issues you have are probably more from the virtual machine environment than anything else. Ram pressures, with a virtualized swap file on a virtualized file system, it sure seems possible for things to slow to a crawl sometimes.
- Top
- Bottom
- Likes 1
Comment
-
Originally posted by SuperSapien64 View Post
I'm not sure really I'm running Kubuntu 22.04 in a VM and I believe with four Gigs of RAM so maybe it does because of of the limited amount of RAM.Windows no longer obstructs my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock Holmes
- Top
- Bottom
Comment
-
Originally posted by claydoh View PostAs jlittle has mentioned, systemd-oomd is not even installed on a default Kubuntu 22.04, so any issues you have are probably more from the virtual machine environment than anything else. Ram pressures, with a virtualized swap file on a virtualized file system, it sure seems possible for things to slow to a crawl sometimes.
- Top
- Bottom
Comment
-
wont have the systemd-oomd in it either
[rab@rab-B450-AORUS-ELITE ~]$ systemctl status systemd-oomd
○ systemd-oomd.service - Userspace Out-Of-Memory (OOM) Killer
Loaded: loaded (/usr/lib/systemd/system/systemd-oomd.service; disabled; vendor preset: disabled)
Active: inactive (dead)
TriggeredBy: ○ systemd-oomd.socket
Docs: man:systemd-oomd.service(8)
- Top
- Bottom
- Likes 1
Comment
-
Originally posted by rab0171610 View PostEven if it were, I have an Arch installation where it exists but I have it disabled as I pointed out earlier. A lot of users over there at the red sombrero are posting how problematic it is for them still and they are disabling it without issue. So I would not worry about it either way. As of right now, it is not by nature an essential system service for the average desktop user.
- Top
- Bottom
- Likes 1
Comment
Comment