[LTP] [PATCH] thp02: simplify test to lower memory requirements

Cyril Hrubis chrubis@suse.cz
Tue Oct 22 13:37:04 CEST 2019


Hi!
> Test is using 4 hugepages per allocation, and makes 4*3 allocations
> in total. This is problem for aarch64, where default huge page size
> is 512M. Systems are running into unexpected OOMs, because there
> is no check for available memory.
> 
> Simplify test by:
> - dropping 3rd allocation, it's used only for pattern comparison
> - run test function in new child process, so we don't need to worry
>   about cleaning up after mremap() and it lowers overall memory
>   requirements
> - add a simple check if there's enough memory to setup()
> - drop .needs_root, there's no need for it

Looks good, acked.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list