<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div id=":2nl" class="Ar Au Ao" style="display: block;">
      <div id=":180" class="Am Al editable LW-avf tS-tW tS-tY"
        aria-label="Message Body" role="textbox" aria-multiline="true"
        tabindex="1" style="direction: ltr; min-height: 345px;"
        spellcheck="false" aria-owns=":5vq" aria-controls=":5vq"
        contenteditable="true">Hello folks,
        <div><br>
        </div>
        <div>After the enablement of systemd-oomd in Debian [0] we've
          now integrated the relevant changes into Ubuntu's systemd
          v249.9-0ubuntu2 package. sd-oomd is a userspace out-of-memory
          (OOM) killer, that utilizes systemd's unified cgroup hierarchy
          (cgroup v2, available as of Ubuntu Impish) to track resource
          usage of individual cgroups and kill them if they exceed their
          configured quotas [1]. That is before the kernel's OOM killer
          needs to kick in and while the system still is relatively
          responsive.</div>
        <div><br>
        </div>
        <div>We're shipping a default configuration that uses a
          MemoryPressureDuration of 20sec and a MemoryPressureLimit of
          50% for user sessions. sd-oomd can be enabled on your system
          by installing the "systemd-oomd" package:</div>
        <div><font face="monospace"><br>
          </font></div>
        <div><font face="monospace">sudo apt install systemd-oomd</font></div>
        <div><br>
        </div>
        <div>For sd-oomd to work properly it needs to have some swap
          space available and applications will need to spawn processes
          into separate cgroups (e.g. with systemd-run) or use a desktop
          environment that does this for them.</div>
        <div><br>
        </div>
        <div>I've proposed to enable systemd-oomd by default on Ubuntu
          Desktop [2], as GNOME is already prepared to launch
          applications in separate cgroups. I want to invite other
          Ubuntu flavors to check their corresponding (desktop-)
          environments for those prerequisites and enable sd-oomd in a
          similar way, by pulling in the "systemd-oomd" package.</div>
        <div><br>
        </div>
        <div>Cheers,</div>
        <div>   Lukas</div>
        <div>
          <div><br>
          </div>
          <div>[0] <a class="moz-txt-link-freetext" href="https://salsa.debian.org/systemd-team/systemd/-/merge_requests/133">https://salsa.debian.org/systemd-team/systemd/-/merge_requests/133</a></div>
        </div>
        <div>[1] <a class="moz-txt-link-freetext" href="https://www.freedesktop.org/software/systemd/man/systemd-oomd.html">https://www.freedesktop.org/software/systemd/man/systemd-oomd.html</a></div>
        <div>[2] <a class="moz-txt-link-freetext" href="https://code.launchpad.net/~slyon/ubuntu-seeds/+git/platform/+merge/414794">https://code.launchpad.net/~slyon/ubuntu-seeds/+git/platform/+merge/414794</a></div>
      </div>
    </div>
  </body>
</html>