Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 906886 - OpenRC OOM_SCORE_ADJ in /etc/conf.d/
Summary: OpenRC OOM_SCORE_ADJ in /etc/conf.d/
Status: UNCONFIRMED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-21 09:06 UTC by Forza
Modified: 2023-05-21 16:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.