mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +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>
This commit is contained in:
parent
a1d650ce27
commit
09c8fb5414
2 changed files with 6 additions and 0 deletions
|
|
@ -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