Bug 1944646 - [oomd] CPU usage 1.3% is somewhat to high
Summary: [oomd] CPU usage 1.3% is somewhat to high
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 34
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2021-03-30 12:00 UTC by Artem
Modified: 2021-05-08 09:17 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:
Type: Bug

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github facebookincubator oomd issues 79 0 None open High CPU usage 2021-03-30 12:00:01 UTC

Description Artem 2021-03-30 12:00:01 UTC
Description of problem:
  The new one 'systemd-oomd' is replaced old one 'earlyoom' in f34. The CPU utilization is to high compared with earlyoom. systemd-oomd consumes 0.7-1.3% on Ryzen CPU (Zen 2). earlyoom usage was nearly zero.
  This could negatively impact on laptop power usage and reduce battery life and power efficiency.
  Tested on Fedora 34 Workstation (GNOME). KDE users reporting the same results.

Version-Release number of selected component (if applicable):

How reproducible:
  $ sudo dnf install htop

  Look at current 'systemd-oomd` process CPU usage and TIME+ column.

Actual results:
  * Current CPU usage: 0.7-1.3%.
  * TIME+: in top after the 'gnome-shell' process.

Expected results:
  'systemd-oomd' CPU utilization is equal to 'earlyoom' or even less.

Comment 1 Zbigniew Jędrzejewski-Szmek 2021-04-02 14:04:17 UTC

Comment 2 Tad 2021-04-29 15:50:47 UTC
Can the patches in https://github.com/systemd/systemd/pull/19126 be considered for picking to Fedora 34 branch?
On older systems systemd-oomd is non-stop 6-10% CPU usage.
After a few hours of uptime, it consistently has more TIME+ then gnome-shell.

Comment 3 Fedora Update System 2021-05-08 09:17:07 UTC
FEDORA-2021-775e2373a1 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-775e2373a1

Note You need to log in before you can comment on or make changes to this bug.