Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 906886

Summary: OpenRC OOM_SCORE_ADJ in /etc/conf.d/
Product: Gentoo Hosted Projects Reporter: Forza <forza>
Component: OpenRCAssignee: OpenRC Team <openrc>
Status: UNCONFIRMED ---    
Severity: enhancement CC: gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Forza 2023-05-21 09:06:11 UTC
start-stop-daemon supports setting /proc/<pid>/oom_score_adj using either the flag --oom-score-adj or the ENV variable SSD_OOM_SCORE_ADJ

It would be nice if Gentoo/OpenRC would check conf.d files for SSD_OOM_SCORE_ADJ and set this variable for the service.

SSD supports the following ENV variables:


SSD_IONICELEVEL
SSD_NICELEVEL
SSD_OOM_SCORE_ADJ
SSD_STARTWAIT

I notice that some packages implement their own "NICE", "NICELEVEL", etc in conf.d. A better way would be that OpenRC handled this in an official way. All four variables could be handled in the same way.