]> git.ipfire.org Git - thirdparty/systemd.git/commit
oomd: sort by pgscan rate not pgscan
authorAnita Zhang <the.anitazha@gmail.com>
Tue, 16 Mar 2021 00:21:45 +0000 (17:21 -0700)
committerAnita Zhang <the.anitazha@gmail.com>
Wed, 17 Mar 2021 17:17:03 +0000 (10:17 -0700)
commit88e47952af55f38e3ae2a3129df7438eb05c0e5d
treeb30d8b4705fb76f3f849ca8b2c3b79297ce3b453
parent91cbb4bdd64048931c18e4b9a3d0ab85d77f93fe
oomd: sort by pgscan rate not pgscan

For pressure based killing we want to target who has the highest
increase in pgscan from the previous interval (vs. the previous logic
which used raw pgscan). This will prevent biasing towards long running
cgroups as mentioned in #19007.
src/oom/oomd-manager.c
src/oom/oomd-util.c
src/oom/oomd-util.h
src/oom/test-oomd-util.c