systemd-oomd issues on desktop

Dave Jones dave.jones at canonical.com
Tue Jun 14 14:47:58 UTC 2022


On Fri, Jun 10, 2022 at 08:16:15PM +0200, Sebastien Bacher wrote:
>Le 09/06/2022 à 21:19, Dan Streetman a écrit :
>>Personally, I think this is the correct option. 1GB is not a good
>>default swap size.
>
>Did we ever consider doing the same than fedora is doing there?
>
>https://fedoraproject.org/wiki/Changes/SwapOnZRAM

One minor data point here: yes, at least on the Pi images where zswap is 
activated by default.

Some background context: one goal on jammy was to make the desktop 
viable on the Pi 4 with 2GB of RAM (though not the 1GB). Given that the 
Pi desktop images ship with 1GB of swap (so we know there definitely 
*is* a swap-file that zswap can utilize), that the machine doesn't have 
upgradeable RAM (though I suppose moving one's storage to a bigger Pi is 
roughly equivalent), and that I knew oomd was being contemplated, I did 
a day of testing the 2GB Pi 4 with and without zswap active, and the 
difference was pretty stark (without zswap the system really didn't feel 
"useable" due to frequent oomd kills of ff).

That said, I'm contemplating bumping the swap (which is allocated on 
first boot on the Pi images since jammy) up to 2GB for kinetic as that 
seems to reduce the number of oomd kills noticeably on the more memory 
constrained Pis (though just anecdotally; I haven't sat down and 
recorded/analyzed this yet).

Dave.



More information about the ubuntu-devel mailing list