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

Petr Vorel pvorel@suse.cz
Mon May 25 21:02:33 CEST 2020


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>

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

Kind regards,
Petr


More information about the ltp mailing list