This website requires JavaScript.
Explore
Help
Sign In
rpms
/
systemd
Watch
7
Star
0
Fork
0
You've already forked systemd
Code
Issues
Pull Requests
Releases
Activity
9acedf97ae
systemd
/
10-oomd-per-slice-defaults.conf
4 lines
72 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Update systemd-oomd defaults to friendlier values - Remove swap policy. Default amount of swap (8GB?) is a lot lower than what we use internally with the swap policy. Which frequently leads to GNOME getting killed (e.g. https://bugzilla.redhat.com/show_bug.cgi?id=1941170, and other BZs not linked here). Internally we use 0.5x-1x size of physical memory for swap via swapfiles (this will be documented in systemd upstream). In simple cases of using more memory than is available (but without memory pressure), the Kernel OOM killer can handle killing the offending process. - Expand the memory pressure policy to system.slice, user-.slice, and all user owned slices. Support for ManagedOOM*= on user services was added in https://github.com/systemd/systemd/pull/20690 which allows us to be more fine grained on the pressure monitoring at the user level. In addition to the system.slice and user-.slice PSI monitoring this should result in a better systemd-oomd experience for desktop systems.
2022-08-23 18:59:16 +00:00
[Slice]
Bump to 247.3-2 for systemd-oomd finishes and systemd-oomd-defaults subpackage Changes for https://fedoraproject.org/wiki/Changes/EnableSystemdOomd. Backports primarily PR #18361, #18444, and #18401 (#18401 is not merged at the time of writing this commit) + some minor PRs to handle conflicts. Creates systemd-oomd-defaults subpackage to install unit drop-ins that will configure systemd-oomd to monitor and act.
2021-02-05 09:39:39 +00:00
ManagedOOMMemoryPressure=kill
Increase oomd user memory pressure limit to 50% for 20s (#1941170) There isn't really a one size fits all policy since pressure can change a lot based on whether you have flash or spinning disks (and your swap configuration as well). But let's be a bit more conservative here.
2021-03-30 08:55:58 +00:00
ManagedOOMMemoryPressureLimit=50%
Reference in New Issue
Copy Permalink