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

Jan Stancek jstancek@redhat.com
Tue May 21 15:38:13 CEST 2019



----- Original Message -----
> 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.

Pushed.

> 
> --
> Cyril Hrubis
> chrubis@suse.cz
> 


More information about the ltp mailing list