-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce UserMemTotal and calculate MemAvailablePercent based on it
Shmem/tmpfs may block a large part of RAM. This memory cannot be freed by killing processes. Before this change, we could get into a situation where earlyoom kills *every* process, but still cannot achieve the desired MemAvailablePercent. Fixes: #274 Fixes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1012870
- Loading branch information
Showing
3 changed files
with
17 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters