punybench: hogmem: try harder if we cannot allocate hogmem

Some systems have more physical memory than virtual address space
like certain Arm v7A systems with 4GB of physical memory but only 3GB
of virtual address space, and in these cases the hog function will try
to allocate more memory than possible.  This changes the hog function
to back off at 1MiB increments.

BUG=chrome-os-partner:30913
TEST=kernel_fs_Punybench passes on a 4GB Nyan system

Change-Id: I458666551998e6cb0d78aef600910e317343ad3b
Reviewed-on: https://chromium-review.googlesource.com/256825
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Commit-Queue: Sonny Rao <sonnyrao@chromium.org>
Tested-by: Sonny Rao <sonnyrao@chromium.org>
1 file changed