Lines Matching refs:MB
79 int ret = alloc_mem(TESTMEM * 2 + MB, testcase);
115 * @lite: if non-zero, child makes only single TESTMEM+MB allocation
346 if (ksm_merge_data.mergeable_size == size * MB) {
347 tst_res(TINFO, "child %d allocates %d MB filled with '%c'",
351 tst_res(TINFO, "child %d allocates %d MB filled with '%c'"
357 for (i = 0; (unsigned int)i < unit * MB; i++)
364 if (ksm_merge_data.mergeable_size < size * MB)
380 memory[j] = SAFE_MMAP(NULL, unit * MB, PROT_READ|PROT_WRITE,
383 if (madvise(memory[j], unit * MB, MADV_MERGEABLE) == -1)
404 if (ksm_merge_data[j].mergeable_size < size * MB) {
406 total_unit, unit * MB - 1, unit * MB);
408 0, total_unit, 0, unit * MB - 1);
411 0, total_unit, 0, unit * MB);
448 {'c', size*MB}, {'c', size*MB}, {'d', size*MB}, {'d', size*MB},
451 {'a', size*MB}, {'b', size*MB}, {'d', size*MB}, {'d', size*MB-1},
454 {'a', size*MB}, {'a', size*MB}, {'d', size*MB}, {'d', size*MB},
458 pages = MB / ps;