[Bug 2017209] Re: systemd-oomd fails with "ConditionControlGroupController=memory was not met"

fprietog 2017209 at bugs.launchpad.net
Fri Apr 21 10:06:28 UTC 2023


I see that memory cgroup is not enabled:

# cat /proc/cgroups | grep y
#subsys_name   hierarchy   num_cgroups   enabled
memory                 0           121         0

So a workaround is to enable it adding "cgroup_enable=memory" to
"/boot/firmware/cmdline.txt" kernel parameters file for Raspberry Pi
boards.

As systemd-oomd worked in Ubuntu 22.10 (Kinetic) without the need of set
this kernel parameter the only conclusion I've reached is that this
cgroup has been disabled in a point between kernel 5.19 (kinetic) and
kernel 6.2 (lunar) releases.

So I've searched the Raspberry Pi kernel commits related and found this
one:

https://github.com/raspberrypi/linux/commit/28aec65bb1743c9bfa53b036999f9835c889704e

cgroup: Disable cgroup "memory" by default
Some Raspberry Pis have limited RAM and most users won't use the
cgroup memory support so it is disabled by default. Enable with:
    cgroup_enable=memory

At this point I don't know what team should fix this bug. I've updated
it for linux-raspi package.

** Package changed: systemd (Ubuntu) => linux-raspi (Ubuntu)

** Also affects: systemd (Ubuntu)
   Importance: Undecided
       Status: New

-- 
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/2017209

Title:
  systemd-oomd fails with "ConditionControlGroupController=memory was
  not met"

Status in linux-raspi package in Ubuntu:
  New
Status in systemd package in Ubuntu:
  New

Bug description:
  PROBLEM SUMMARY:
  ----------------
  Just upgraded to Ubuntu 23.04 (lunar) from Ubuntu 22.10 (kinetic). systemd-oomd fails with "ConditionControlGroupController=memory was not met" during boot. 
  If you manually started it after boot it starts but after a few minutes it fails with the same error.

  These are the journalctl entries regarding this problem:

  abr 20 23:12:48 fpgrpi systemd[1]: Listening on systemd-oomd.socket - Userspace Out-Of-Memory (OOM) Killer Socket.
  abr 20 23:12:48 fpgrpi systemd[1]: systemd-oomd.service - Userspace Out-Of-Memory (OOM) Killer was skipped because of an unmet condition check (ConditionControlGroupController=memory).
  --- Line repeat 20 times ---
  abr 20 23:12:49 fpgrpi systemd[1]: systemd-oomd.service - Userspace Out-Of-Memory (OOM) Killer was skipped because of an unmet condition check (ConditionControlGroupController=memory).
  abr 20 23:12:49 fpgrpi systemd[1]: systemd-oomd.socket: Trigger limit hit, refusing further activation.
  abr 20 23:12:49 fpgrpi systemd[1]: systemd-oomd.socket: Failed with result 'trigger-limit-hit'.

  
  This is the systemctl status for systemd-oomd.service and systemd-oomd.socket:

  # systemctl status systemd-oomd.service
  ○ systemd-oomd.service - Userspace Out-Of-Memory (OOM) Killer
       Loaded: loaded (/lib/systemd/system/systemd-oomd.service; enabled; preset: enabled)
       Active: inactive (dead)
  TriggeredBy: × systemd-oomd.socket
    Condition: start condition failed at Thu 2023-04-20 23:21:07 CEST; 9h ago
               └─ ConditionControlGroupController=memory was not met
         Docs: man:systemd-oomd.service(8)

  # systemctl status systemd-oomd.socket
  × systemd-oomd.socket - Userspace Out-Of-Memory (OOM) Killer Socket
       Loaded: loaded (/lib/systemd/system/systemd-oomd.socket; enabled; preset: enabled)
       Active: failed (Result: trigger-limit-hit) since Thu 2023-04-20 23:21:07 CEST; 9h ago
     Duration: 2min 2.252s
     Triggers: ● systemd-oomd.service
         Docs: man:systemd-oomd.service(8)
       Listen: /run/systemd/oom/io.system.ManagedOOM (Stream)

  
  ADITIONAL INFO:
  ---------------
  Machine is an arm64 "Raspberry Pi 4 Model B Rev 1.4 8GB"

  # uname -a
  Linux fpgrpi 6.2.0-1004-raspi #5-Ubuntu SMP PREEMPT Mon Apr  3 11:15:14 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

  # lsb_release -rd
  No LSB modules are available.
  Description:	Ubuntu 23.04
  Release:	23.04

  # apt-cache policy systemd-oomd
  systemd-oomd:
    Instalados: 252.5-2ubuntu3
    Candidato:  252.5-2ubuntu3
    Tabla de versión:
   *** 252.5-2ubuntu3 500
          500 http://ports.ubuntu.com/ubuntu-ports lunar/main arm64 Packages
          100 /var/lib/dpkg/status

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-raspi/+bug/2017209/+subscriptions




More information about the foundations-bugs mailing list