From 84c045246355520ea0cee16bfea7d9471886e75c Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Wed, 31 Jul 2024 14:52:46 +0300 Subject: [PATCH] systemd: finally add oomd configuration --- etc/systemd/oomd.conf.d/.gitignore | 0 etc/systemd/oomd.conf.d/20-oomd.conf | 11 +++++++++++ 2 files changed, 11 insertions(+) delete mode 100644 etc/systemd/oomd.conf.d/.gitignore create mode 100644 etc/systemd/oomd.conf.d/20-oomd.conf diff --git a/etc/systemd/oomd.conf.d/.gitignore b/etc/systemd/oomd.conf.d/.gitignore deleted file mode 100644 index e69de29b..00000000 diff --git a/etc/systemd/oomd.conf.d/20-oomd.conf b/etc/systemd/oomd.conf.d/20-oomd.conf new file mode 100644 index 00000000..dd0a2353 --- /dev/null +++ b/etc/systemd/oomd.conf.d/20-oomd.conf @@ -0,0 +1,11 @@ +[OOM] +# Default values from ../oomd.conf during systemd 255 (255.10-1.fc40), +# but remember to read man oomd.conf +#SwapUsedLimit=90% +DefaultMemoryPressureLimit=60% +DefaultMemoryPressureDurationSec=30s +# I question 90 % being enough and healthy battery charging also uses 80 %, +# so let's try this since I prioritise not freezing over max utilization. +SwapUsedLimit=80% +#DefaultMemoryPressureLimit= +#DefaultMemoryPressureDurationSec=