mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
data: Lower down gnome-shell process' OOM score
When GNOME shell runs on a less memory system (for example 3 GB RAM), it
is usually killed by the kernel OOM-killer easily. Because, it has a
higher OOM score. However, GNOME desktop environment cannot do anything
when the GNOME shell is killed.
This commit adjusts and lowers down gnome-shell process' OOM score to
avoid being killed by the kernel OOM-killer too early. In other words,
sacrifices other processes first.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2582>
(cherry picked from commit 09c8fb5414)
This commit is contained in:
parent
06fd932dd9
commit
4aedf86353
2 changed files with 6 additions and 0 deletions
|
|
@ -32,3 +32,6 @@ ExecStopPost=-/bin/sh -c 'test "$SERVICE_RESULT" != "exec-condition" && systemct
|
|||
Restart=no
|
||||
# Kill any stubborn child processes after this long
|
||||
TimeoutStopSec=5
|
||||
|
||||
# Lower down gnome-shell's OOM score to avoid being killed by OOM-killer too early
|
||||
OOMScoreAdjust=-1000
|
||||
|
|
|
|||
|
|
@ -37,3 +37,6 @@ Restart=always
|
|||
RestartSec=0ms
|
||||
# Kill any stubborn child processes after this long
|
||||
TimeoutStopSec=5
|
||||
|
||||
# Lower down gnome-shell's OOM score to avoid being killed by OOM-killer too early
|
||||
OOMScoreAdjust=-1000
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue