systemd-oomd and zram-config services: "Swap is currently not detected; memory pressure usage will be degraded"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Jammy |
Invalid
|
Undecided
|
Unassigned | ||
zram-config (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Jammy |
Triaged
|
Low
|
Unassigned |
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-
systemd-oomd[587]: Swap is currently not detected; memory pressure usage will be degraded
If you restart systemd-
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://
100 /var/lib/
249.
500 http://
# apt-cache policy zram-config
zram-config:
Instalados: 0.7build1
Candidato: 0.7build1
Tabla de versión:
*** 0.7build1 500
500 http://
100 /var/lib/
Changed in systemd (Ubuntu Jammy): | |
status: | New → Invalid |
Changed in zram-config (Ubuntu Jammy): | |
status: | New → Triaged |
importance: | Undecided → Low |
As a workaround you can include in the "[Service]" section of the file "/etc/systemd/ system/ multi-user. target. wants/zram- config. service" this line:
ExecStartPost= /usr/bin/ systemctl restart systemd- oomd.service
It causes systemd- oomd.service to be restarted after zram-config.service start.