[Bug 1980169] Re: systemd-oomd without swap kill does nothing and we are back to no user space oom killer.

Tim Richardson 1980169 at bugs.launchpad.net
Wed Jun 29 03:27:21 UTC 2022


PS I also have the psi-notify package installed. I am using the defaults.
It is very early to warn of CPU pressure. Not once in all my testing has it indicated memory pressure, which I interpret as meaning that it might be very hard to use the memory pressure KPI to work out low memory situations. It is also disappointing because the actual underlying problem is not the killing (because what other choice is there?), but the lack of warning. I was hoping that psi-notify might solve this.

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

Title:
  systemd-oomd without swap kill does nothing and we are back to no user
  space oom killer.

Status in systemd package in Ubuntu:
  New

Bug description:
  I have a 4GB Ram 2 core VM running a fresh install of 22.04 with proposed enabled.
  I have the latest systemd-oomd which no longer kills based on swap usage.

  In fact, it doesn't really kill at all, it seems.
  I have three times in a row made my session freeze with all the behaviour we see when there is no user space oom killer.

  To do this, I start chromium and use the trackthis.link site to load
  100 tabs (turn off pop-up blocking). For Firefox, it loads only 20
  tabs, which doesn't seem to quite use all memory. You can open a new
  tab and repeat the process to load another 20.

  Previously, systemd-oomd was killing the browser, although a few times
  I got it to kill the entire gnome session in a way I can not
  replicate, but it seems to happen when I am opening another app while
  the browsers are busy loading tabs.

  Now, it does not kill at all. I have a 2-core CPU load of > 70, 100%
  CPU, 100% swap and 99% Mem usage (in glances) and no interactive
  response. I have a Force Quit dialog for Firefox that is not
  responding, my two terminal windows  do not respond. This is really
  basically the same as the bad old days when we could wait a long time
  for the kernel killer to work, or we just give up on the session and
  reboot.

  Far be it from me to give advice, but it doesn't look to me that
  systemd-oomd is going to work with default Ubuntu swap config. This is
  now out of the frying pan and into the fire.

  I tested earlyoom too. It is completely predictable. It always kills
  the browser, it has never killed the session.

  Firefox and Chrome are supposed to discard tabs, but this process is
  much too slow to fight the rapid loading of tabs in this test case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1980169/+subscriptions




More information about the foundations-bugs mailing list