[LTP] [PATCH 1/1] lib: Skip tst_{disable, enable}_oom_protection() for non-root

Petr Vorel pvorel@suse.cz
Wed Dec 22 09:06:26 CET 2021


Hi Xu, Li, all,

> Hi Xu, Petr,

> On Wed, Dec 22, 2021 at 10:26 AM xuyang2018.jy@fujitsu.com <
> xuyang2018.jy@fujitsu.com> wrote:

> > Hi Petr
> > > If needed to set value also for non-root, use set_oom_score_adj().
> > If so, why not rename set_oom_score_adj to tst_set_oom_score_adj and add
> > declartion to tst_memutils.h?


> Yes, it makes sense to expose this function to users to cover
> more oom test scenarios. For instance, set a high (>0) or low (<0)
> score in child_alloc() to verify if OOM-Killer still works well.
> But so far, we don't have such tests.

Sure, I we can do it. But first I'd prefer to fix CI (beware we have last
working day before xmas vacation).

> > ps: also have a word typo in set_oom_score_adj, adjustement => adjustment.
+1, thanks!

Kind regards,
Petr

> > Best Regards
> > Yang Xu


More information about the ltp mailing list