lmkd/tests: Consume memory more aggressively to avoid test timeout

Increase the allocation step to 5MB and decrease the delay between
allocations to 200ms in order to speed up memory consumption and
avoid the test timing out.

Bug: 217478668
Test: atest lmkd_tests:lmkd_tests.LmkdTest#TargetReaping -- --abi x86_64
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ia36229b280d79acd9d93a5ca1961d6cf1ef223df
This commit is contained in:
Suren Baghdasaryan 2022-02-03 12:45:55 -08:00
parent c58acac201
commit 2bf5487381
1 changed files with 2 additions and 2 deletions

View File

@ -47,8 +47,8 @@ using namespace android::base;
// Test constant parameters
#define OOM_ADJ_MAX 1000
#define ALLOC_STEP (ONE_MB)
#define ALLOC_DELAY 1000
#define ALLOC_STEP (5 * ONE_MB)
#define ALLOC_DELAY 200
// used to create ptr aliasing and prevent compiler optimizing the access
static volatile void* gptr;