[LTP] [PATCH v3 1/3] lib: add functions to adjust oom score

Cyril Hrubis chrubis@suse.cz
Mon Dec 20 14:26:17 CET 2021


Hi!
> This introduces function to LTP for adjusting the oom_score_adj of
                                   ^
				   to adjust

> target process, which may be helpful in OOM tests to prevent kernel
> killing the main or lib process during test running.
                                         ^
					 test run.
> The exported global tst_enable_oom_protection function can be used
> at anywhere you want to protect, but please remember that if you
> do enable protection on a process($PID) that all the children will
> inherit its score and be ignored by OOM Killer as well. So that's
> why tst_disable_oom_protection is recommended to combination in use.
                                                  ^
						  to be used in
						  combination.


Reviewed-by: Cyril Hrubis <chrubis@suse.cz>

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list