Lines Matching refs:MB
81 int ret = alloc_mem(TESTMEM + MB, testcase); in child_alloc()
335 if (ksm_merge_data.mergeable_size == size * MB) { in ksm_child_memset()
346 for (i = 0; (unsigned int)i < unit * MB; i++) in ksm_child_memset()
353 if (ksm_merge_data.mergeable_size < size * MB) in ksm_child_memset()
369 memory[j] = SAFE_MMAP(NULL, unit * MB, PROT_READ|PROT_WRITE, in create_ksm_child()
372 if (madvise(memory[j], unit * MB, MADV_MERGEABLE) == -1) in create_ksm_child()
393 if (ksm_merge_data[j].mergeable_size < size * MB) { in create_ksm_child()
395 total_unit, unit * MB - 1, unit * MB); in create_ksm_child()
397 0, total_unit, 0, unit * MB - 1); in create_ksm_child()
400 0, total_unit, 0, unit * MB); in create_ksm_child()
437 {'c', size*MB}, {'c', size*MB}, {'d', size*MB}, {'d', size*MB}, in create_same_memory()
440 {'a', size*MB}, {'b', size*MB}, {'d', size*MB}, {'d', size*MB-1}, in create_same_memory()
443 {'a', size*MB}, {'a', size*MB}, {'d', size*MB}, {'d', size*MB}, in create_same_memory()
447 pages = MB / ps; in create_same_memory()