Ubuntu 22.04 LTS Integrating systemd-oomd For Improving Low Memory Handling

Written by Michael Larabel in Ubuntu on 31 January 2022 at 09:05 AM EST. 27 Comments
Ubuntu 22.04 LTS is going to be making use of systemd-oomd for aiming to improve the experience when out of memory or under heavy memory pressure on the Linux distribution.

Ubuntu is now the latest Linux distribution shipping with systemd-oomd for improving Linux's behavior when having low RAM availability. Ubuntu is building off of Debian's systemd-oomd integration. The systemd-oomd is triggered prior to the Linux kernel's OOM killer and the Ubuntu package is relying on the default configuration. By default that configurable limit is a 20 second memory pressure duration and a 50% memory pressure limit for user sessions.

Those riding the Ubuntu 22.04 LTS daily builds can now simply apt install systemd-oomd. For the April release of Ubuntu 22.04 LTS the plan is to have systemd-oomd enabled by default for the Ubuntu Desktop but that change isn't in place today. At least for Ubuntu with GNOME, the desktop is already able to launch applications in separate cgroups (v2) for tracking by systemd-oomd. Other Ubuntu flavors may also choose to have systemd-oomd by default.

Systemd-oomd is based on Facebook's earlier OOMD code and already in use by the likes of Fedora. Systemd 247 back in 2020 introduced the then-experimental systemd-oomd but it has continued maturing since then to be in fairly robust shape.

More details on systemd-oomd for Ubuntu 22.04 LTS via the Ubuntu devel mailing list.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week