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

xuyang2018.jy@fujitsu.com xuyang2018.jy@fujitsu.com
Thu Dec 23 04:03:19 CET 2021


Hi Li
> From: Petr Vorel<pvorel@suse.cz>
>
> Setting value<  0 in/proc/<pid>/oom_score_adj requires CAP_SYS_RESOURCE.
> 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.
>
> Fixes: 8a0827766d ("lib: add functions to adjust oom score")
> Signed-off-by: Petr Vorel<pvorel@suse.cz>
> Signed-off-by: Cyril Hrubis<chrubis@suse.cz>
> Signed-off-by: Li Wang<liwang@redhat.com>
Now, LGTM,
Reviewed-by: Yang Xu <xuyang2018.jy@fujitsu.com>

ps: ubuntun:groxy fails because of other thing..., it is another problem.

Best Regards
Yang Xu
> ---
>
> Notes:
>      v2 -->  v3
>      	* drop the useless CAP_SYS_ADMIN
>      	* add some new commments
>      CI job:https://github.com/wangli5665/ltp/actions/runs/1613852940
>


More information about the ltp mailing list