[LTP] [PATCH] getrusage03: skip on small RAM system
Li Wang
liwang@redhat.com
Tue Feb 8 04:27:19 CET 2022
On Mon, Feb 7, 2022 at 9:14 PM Cyril Hrubis <chrubis@suse.cz> wrote:
> Hi!
> > > Signed-off-by: Li Wang <liwang@redhat.com>
> >
> > Acked-by: Jan Stancek <jstancek@redhat.com>
> >
> > This should fix the immediate failure, just wondering,
> > would there be any downside of replacing that TBROK with TCONF?
>
> I guess that we may end up in a state where the test would TCONF on
> every run and it would end up being ingnored.
>
> Can't we just change the consume_mb to lock the memory with mlock() in
> the consume_mb() instead? As long as we add the check for a free memory
> it should be fine I guess.
>
Yes, we can, mlock() should be helpful on that.
I prefer to do that in a separate patch unless Jan has a different
perspective.
--
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20220208/6a9eaf89/attachment.htm>
More information about the ltp
mailing list