selftests/mm: set overcommit_policy as OVERCOMMIT_ALWAYS
authorChaitanya S Prakash <chaitanyas.prakash@arm.com>
Thu, 23 Mar 2023 06:01:21 +0000 (11:31 +0530)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 6 Apr 2023 02:42:59 +0000 (19:42 -0700)
commitd6c2789778c59c1768567099eb2fdd32d790c38a
tree22b9ba9c9850c563f9ebcf4a93b097eb679425d0
parent3f9bea2b8a7e4952f03582d8137ab8bf6e96985b
selftests/mm: set overcommit_policy as OVERCOMMIT_ALWAYS

The kernel's default behaviour is to obstruct the allocation of high
virtual address as it handles memory overcommit in a heuristic manner.
Setting the parameter as OVERCOMMIT_ALWAYS, ensures kernel isn't
susceptible to the availability of a platform's physical memory when
denying a memory allocation request.

Link: https://lkml.kernel.org/r/20230323060121.1175830-4-chaitanyas.prakash@arm.com
Signed-off-by: Chaitanya S Prakash <chaitanyas.prakash@arm.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/run_vmtests.sh