[LTP] [PATCH] hugemmap05: check if the reserving hpages as expected

Li Wang liwang@redhat.com
Tue May 26 03:13:01 CEST 2020


On Tue, May 26, 2020 at 3:02 AM Petr Vorel <pvorel@suse.cz> wrote:

> Hi Li,
>
> > To get rid of TBROK on small box:
> >   hugemmap05.c:88: BROK: mmap((nil),201326592,3,1,6,0) failed: ENOMEM
> (12)
>
> > And, reduce the reserved testing huge pages to 2, it also works well.
>
> Reviewed-by: Petr Vorel <pvorel@suse.cz>
>

Thanks for your review.

>
> Nice speedup :)
> Maybe add some constant for size (2), as it's used on 3 places?
>

Good suggestion, I added a 'NR_HPAGES' definition and pushed.

-- 
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20200526/65fd1a89/attachment.htm>


More information about the ltp mailing list