[LTP] [PATCH] lib/tst_test.c: add *cleanup() before exit

zhaogongyi zhaogongyi@huawei.com
Tue Nov 9 12:28:31 CET 2021


Hi Cyril,

It sounds pretty good and we would select a suitable oom_score value for library process(It seems that the child process will inherit the settings of the parent process).

And, in some stress test scenes, we might run LTP testcases with other testcases concurrently since the other testcases(for example: testcases in open_posix_testsuite) have no timeout limit or have no flexible timeout mechanism,

The stress test's main process would kill the testcase which is timeout.

> 
> Hi!
> > If we run the LTP testcases Concurrently, this might trigger the oom
> > killer to kill the library process before the main process exit, and
> > it might fill up the tmpfs through a long time running.
> 
> Then I guess we may as well adjust the oom_score for the test library
> process so that it's less likely to end up being killed.
> 
> --
> Cyril Hrubis
> chrubis@suse.cz


More information about the ltp mailing list