[LTP] [PATCH v2] lib: Do not fail a test if oom score cannot be adjusted.

Petr Vorel pvorel@suse.cz
Wed Dec 22 15:03:48 CET 2021


Hi Cyril, all,

> From: Petr Vorel <pvorel@suse.cz>

> Setting value < 0 in /proc/*/oom_score_adj requires CAP_SYS_RESOURCE or
> CAP_SYS_ADMIN. However setting the library process score is a best
> effort operation, so let's skip it silently when the user is not
> privileged to do so.
+1

LGTM, thanks for this version, I'm for merging it.

Also tested locally and on CI, working as expected.
https://github.com/pevik/ltp/runs/4607602484?check_suite_focus=true

Kind regards,
Petr


More information about the ltp mailing list