Home
last modified time | relevance | path

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

/system/extras/alloc-stress/
Dmem-pressure.cpp23 void add_pressure(size_t *shared, size_t size, size_t step_size, in add_pressure() argument
39 while (alloc_set(step_size)) { in add_pressure()
40 size += step_size; in add_pressure()
65 size_t step_size = 2 * 1024 * 1024; // 2 MB in main() local
66 size_t size = step_size; in main()
81 step_size = atoi(optarg); in main()
99 add_pressure(shared, size, step_size, duration, oom_score); in main()
/system/memory/lmkd/tests/
Dlmkd_test.cpp184 size_t step_size; member
196 ptr = mmap(NULL, data->step_size, PROT_READ | PROT_WRITE, in add_pressure()
202 memset((void*)ptr, (int)(allocated_size + 1), data->step_size); in add_pressure()
203 allocated_size += data->step_size; in add_pressure()
234 data->step_size = ALLOC_STEP; in runMemStressTest()