Description of problem:
I intalled kernel-6.1 to test laptop acpi backlight and found out that systemd-oom often kills firefox and other apps without any apparent reason, while with kernel <= 6.0 it works just fine. In journal it looks like:
Killed /system.slice/packagekit.service due to memory pressure for /system.slice being 84.61% > 50.00% for > 20s with reclaim activity
and looking into PSI, it's overly high even on the overall idle system:
/proc/pressure/memory:some avg10=87.29 avg60=87.07 avg300=85.25 total=26956843013
/proc/pressure/memory:full avg10=80.50 avg60=78.87 avg300=75.88 total=24901061065
Version-Release number of selected component (if applicable):
kernel-6.1.0-0.rc3.20221102git8f71a2b3f435.29.fc38.x86_64
How reproducible:
Too often, but from time to time
Steps to Reproduce:
1. Run firefox
2.
3.
Actual results:
It's killed from time to time
Expected results:
It should be killed way less often
Additional info:
I _guess_ maybe MGLRU leads to incorrect/scewed PSI information and oomd acts on it.
After reboot to kernel-6.0.6-300.fc37.x86_64 with the same usage pattern:
/proc/pressure/memory:some avg10=0.00 avg60=0.00 avg300=0.00 total=0
/proc/pressure/memory:full avg10=0.00 avg60=0.00 avg300=0.00 total=0
and system overall is way more responsible