]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/oom/oomd-manager.c
oomd: don't get pressure candidates on every interval
authorAnita Zhang <the.anitazha@gmail.com>
Fri, 26 Mar 2021 08:53:15 +0000 (01:53 -0700)
committerAnita Zhang <the.anitazha@gmail.com>
Mon, 5 Apr 2021 09:01:32 +0000 (02:01 -0700)
commitcb13961ada52c1b27f6d6c2c6e37a2901f01ed30
treedb50f14ac96746b24a297dcaca41852b07783cf5
parenta858355e4a7168625ec1b9e5d17fdb6a11dfecb8
oomd: don't get pressure candidates on every interval

Only start collecting candidates for a memory pressure kill when we're
hitting the limit (but before the duration hitting that limit is
exceeded). This brings CPU util from ~1% to 0.3%.

Addresses CPU util from
https://bugzilla.redhat.com/show_bug.cgi?id=1941340
and
https://bugzilla.redhat.com/show_bug.cgi?id=1944646
src/oom/oomd-manager.c