** Changed in: systemd (Ubuntu Jammy) Status: New => Invalid ** Changed in: zram-config (Ubuntu Jammy) Status: New => Triaged
** Changed in: zram-config (Ubuntu Jammy) Importance: Undecided => Low -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1978738 Title: systemd-oomd and zram-config services: "Swap is currently not detected; memory pressure usage will be degraded" Status in systemd package in Ubuntu: Invalid Status in zram-config package in Ubuntu: Fix Released Status in systemd source package in Jammy: Invalid Status in zram-config source package in Jammy: Triaged Bug description: Problem summary: ---------------- I've installed the zram-config package. By default it creates a zram swap device with half the physical memory size of the system. For instance, in an 8GB RAM system: # swapon NAME TYPE SIZE USED PRIO /dev/zram0 partition 3,8G 1M 5 #zramctl NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT /dev/zram0 lzo-rle 3,8G 496K 74,9K 376K 4 [SWAP] The problem is that when systemd-oomd.service is started during boot it doesn't detect that zram swap device because zram-config.service is started later. So when systemd-oomd.service was started the zram device didn't exists yet. This is the message shown during boot: systemd-oomd[587]: Swap is currently not detected; memory pressure usage will be degraded If you restart systemd-oomd.service after boot it's correctly started because zram-config.service was previously loaded and zram device exists. So I think it's just a matter of dependencies during boot process; it's necessary to make zram-config.service be started before systemd-oomd.service (or to make systemd-oomd.service be restarted when zram-config.service is started). Aditional info: --------------- # lsb_release -rd Description: Ubuntu 22.04 LTS Release: 22.04 # apt-cache policy systemd-oomd systemd-oomd: Instalados: 249.11-0ubuntu3.1 Candidato: 249.11-0ubuntu3.1 Tabla de versión: *** 249.11-0ubuntu3.1 500 500 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 Packages 100 /var/lib/dpkg/status 249.11-0ubuntu3 500 500 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 Packages # apt-cache policy zram-config zram-config: Instalados: 0.7build1 Candidato: 0.7build1 Tabla de versión: *** 0.7build1 500 500 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 Packages 100 /var/lib/dpkg/status To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1978738/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp