News: 0001658654

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Ubuntu 26.10 Desktop Adjusting Its Behavior Under Memory Pressure

([Ubuntu] 5 Hours Ago Out Of Memory Tuning)


The Ubuntu 26.10 desktop is adjusting its default out-of-memory (OOM) daemon behavior when dealing with memory pressure on the system.

Jean Baptiste Lallement of Canonical's Ubuntu Desktop Team outlined changes being made to Ubuntu 26.10 by default for better deciding what programs to terminate should the Ubuntu desktop become memory starved. The intent is on addressing issues currently seen where the GNOME Shell, D-Bus, or other key programs could accidentally terminate under OOM pressure and in turn render the system inoperable.

[1]

Ubuntu 26.10 is changing its default OOM policy to try to ensure critical desktop services will be less likely to be killed while other applications and background services would be first when encountering significant memory pressure.

The [2]Ubuntu Discourse post sums up the changes as:

"The new policy gives critical desktop services more protection:

- Critical desktop services now use a lower OOM score, making them less likely to be selected by the kernel OOM killer.

- Applications and background services keep a higher default score, so they remain more likely to be terminated first.

- The automatic systemd-oomd memory-pressure kill for the whole user session is disabled. systemd-oomd does not use the same OOM priority scores as the kernel. It could then terminate a critical desktop service based on memory pressure alone.

Of course, this does not prevent applications from being terminated when the system runs out of memory, and it does not make Ubuntu immune to OOM conditions.

The goal is simply to preserve the desktop session where possible, and terminate applications before the services needed to keep that session running."

Further improvements for Ubuntu Linux around its OOM behavior are expected to happen beyond next month's Ubuntu 26.10 release.



[1] https://www.phoronix.com/image-viewer.php?id=2026&image=ubuntu_2610_oom_lrg

[2] https://discourse.ubuntu.com/t/improving-ubuntu-desktop-stability-under-memory-pressure/87945



Wanna tell you all a story 'bout a man named Jed,
A poor mountaineer, barely kept his family fed.
But then one day he was shootin' at some food,
When up through the ground come a bubblin' crude -- oil, that is;
black gold; 'Texas tea' ...

Well the next thing ya know, old Jed's a millionaire.
The kinfolk said, 'Jed, move away from there!'
They said, 'Californy is the place ya oughta be',
So they loaded up the truck and they moved to Beverly -- Hills, that is;
swimmin' pools; movie stars.