Searched refs:step_size (Results 1 – 3 of 3) sorted by relevance
/system/extras/alloc-stress/ |
D | mem-pressure.cpp | 23 void add_pressure(size_t* shared, size_t size, size_t step_size, size_t duration, in add_pressure() argument 38 while (alloc_set(step_size)) { in add_pressure() 39 size += step_size; in add_pressure() 61 size_t step_size = 2 * 1024 * 1024; // 2 MB in main() local 62 size_t size = step_size; in main() 76 step_size = atoi(optarg); in main() 94 add_pressure(shared, size, step_size, duration, oom_score); in main()
|
/system/memory/lmkd/tests/ |
D | lmkd_test.cpp | 185 size_t step_size; member 197 ptr = mmap(NULL, data->step_size, PROT_READ | PROT_WRITE, in add_pressure() 203 memset((void*)ptr, (int)(allocated_size + 1), data->step_size); in add_pressure() 204 allocated_size += data->step_size; in add_pressure() 235 data->step_size = ALLOC_STEP; in runMemStressTest()
|
D | lmkd_tests.cpp | 146 static size_t ConsumeMemory(size_t total_size, size_t step_size, size_t step_delay) { in ConsumeMemory() argument 151 ptr = mmap(NULL, step_size, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in ConsumeMemory() 156 memset((void*)ptr, (int)(allocated_size + 1), step_size); in ConsumeMemory() 157 allocated_size += step_size; in ConsumeMemory()
|