selftests: vm: Try harder to allocate huge pages
authorBen Hutchings <ben@decadent.org.uk>
Mon, 2 Nov 2015 12:22:22 +0000 (12:22 +0000)
committerShuah Khan <shuahkh@osg.samsung.com>
Tue, 3 Nov 2015 23:55:02 +0000 (16:55 -0700)
commitee00479d6702393bf5eda94775349a2e28ba78fa
tree827a6acbec8d25be8fe245a9e41faede53f80a10
parent3b4d3819eca5787bae77314851a799ecbf0da02b
selftests: vm: Try harder to allocate huge pages

If we need to increase the number of huge pages, drop caches first
to reduce fragmentation and then check that we actually allocated
as many as we wanted.  Retry once if that doesn't work.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/vm/run_vmtests