[Bug 1978738] Re: systemd-oomd and zram-config services: "Swap is currently not detected; memory pressure usage will be degraded"
Lukas Märdian
1978738 at bugs.launchpad.net
Wed Jun 22 12:42:37 UTC 2022
Thank you for the confirmation! I uploaded a fix into Kinetic:
https://launchpad.net/ubuntu/+source/zram-config/0.8
** Changed in: zram-config (Ubuntu)
Status: Triaged => Fix Committed
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, 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 Committed
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
More information about the foundations-bugs
mailing list