[LTP] [PATCH] overcommit_memory: update for "mm: fix false-positive OVERCOMMIT_GUESS failures"

Cyril Hrubis chrubis@suse.cz
Tue May 21 15:29:36 CEST 2019


Hi!
> commit 8c7829b04c52 ("mm: fix false-positive OVERCOMMIT_GUESS failures")
> changes logic of __vm_enough_memory(), simplifying it to:
>     When in GUESS mode, catch wild allocations by comparing their request
>     size to total amount of ram and swap in the system.
> 
> Testcase currently allocates mem_total + swap_total, which doesn't trigger
> new condition. Make it more extreme, but assuming free_total / 2 will PASS,
> and sum_total * 2 will FAIL.

Looks good, acked.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list