Home
last modified time | relevance | path

Searched refs:overcommit_policy (Results 1 – 1 of 1) sorted by relevance

/external/ltp/testcases/kernel/mem/tunable/
Dmin_free_kbytes.c46 static void test_tune(unsigned long overcommit_policy);
47 static int eatup_mem(unsigned long overcommit_policy);
84 static void test_tune(unsigned long overcommit_policy) in test_tune() argument
91 set_sys_tune("overcommit_memory", overcommit_policy, 1); in test_tune()
116 ret = eatup_mem(overcommit_policy); in test_tune()
122 if (overcommit_policy == 2) { in test_tune()
127 } else if (overcommit_policy == 1) { in test_tune()
159 static int eatup_mem(unsigned long overcommit_policy) in eatup_mem() argument
171 if (overcommit_policy != 1 && errno != ENOMEM) { in eatup_mem()