Files
systemd/src/basic
Nick Rosbrook 030bc91cb9 oomd: calculate 'used' memory with MemAvailable instead of MemFree
The calculation for used memory in oomd_system_context_acquire is given
by MemTotal - MemFree from /proc/meminfo. This is too strict of a
calculation because it does not consider memory that is still available
for starting new applictions without swapping (MemAvailable). As a
result, systemd-oomd can start to kill processes before it is necessary.
This is more apparent on systems with low swap space.

Instead, compute 'used' memory as MemTotal - MemAvailable in
oomd_system_context_acquire and procfs_memory_get (which is used by
oomd_cgroup_context_acquire). And, rename oomd_mem_free_below to
oomd_mem_available_below for clarity.
2022-04-05 09:51:25 -04:00
..
2021-10-20 22:20:18 +09:00
2022-02-21 23:08:34 +00:00
2022-03-03 22:48:43 +01:00
2021-05-17 22:27:41 +01:00
2021-05-17 22:27:41 +01:00
2021-05-17 22:27:41 +01:00
2021-06-30 23:33:00 +09:00
2021-10-08 13:11:00 +01:00
2022-03-03 22:48:43 +01:00
2022-01-28 10:50:36 +09:00
2021-03-31 21:43:45 +02:00
2022-01-31 11:50:15 +09:00
2021-09-28 15:15:12 +09:00
2021-09-28 15:15:12 +09:00
2022-03-14 19:47:13 +00:00
2022-03-18 09:42:38 +01:00
2021-08-10 17:08:00 +02:00
2021-04-08 13:00:50 +02:00