Closed bmwiedemann closed 1 year ago
Wouldn't the "right" solution be to set the nice level and oom score via systemd?
Ok. Adapted it.
Hi, i think you forgot about the oom score?
On Mon, 20 Mar 2023, 08:02 Bernhard M. Wiedemann, @.***> wrote:
Ok. Adapted it.
— Reply to this email directly, view it on GitHub https://github.com/rfjakob/earlyoom/pull/289#issuecomment-1475718805, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACGA72DXIPUANB3WKFQOGDW476INANCNFSM6AAAAAAVKSZYFI . You are receiving this because you commented.Message ID: @.***>
Indeed. Looks even nicer now.
Slightly edited and merged as https://github.com/rfjakob/earlyoom/commit/6ab1807ba5726c895bdb0a894112b829de01bc75 .
The change I made is OOMScoreAdjust=-100
to match what -p
does.
You had -1000
, which means a memory leak in earlyoom (I don't know of any) could bring the whole system down.
Allow one more capability to avoid warnings on startup (with
-p
):I found this issue while using the openSUSE
earlyoom
package that defaults to-p
.