Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
overcommit_memory: update for "mm: fix false-positive OVERCOMMIT_GUES…
…S failures" 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 2*sum_total will FAIL. Signed-off-by: Jan Stancek <jstancek@redhat.com> Acked-by: Cyril Hrubis <chrubis@suse.cz>
- Loading branch information