Lines Matching +full:2 +full:kb

41 def kbnr(kb):
42 # Convert KB to number of pages.
43 return (kb << 10) >> PAGE_SHIFT
47 # Convert number of pages to KB.
52 # Convert page order to KB.
61 r = np.full(sz, 2)
67 return [np.repeat(arr, r).reshape(-1, 2) for arr in index]
211 execute=elements[1][2] == 'x',
213 pgoff=int(elements[2], 16),
247 for rindex, rpfn in zip(ranges[0], ranges[2]):
292 f"anon-thp-pmd-aligned-{odkb(PMD_ORDER)}kB": {'type': 'anon', 'value': anon_pmd_mapped},
293 f"file-thp-pmd-aligned-{odkb(PMD_ORDER)}kB": {'type': 'file', 'value': file_pmd_mapped},
297 param = f"{type}-thp-pte-{subtype}-{{}}kB"
298 for od, nr in enumerate(stats[2:], 2):
353 f"anon-cont-pmd-aligned-{nrkb(nr_cont)}kB": {'type': 'anon', 'value': anon_pmd_mapped},
354 f"file-cont-pmd-aligned-{nrkb(nr_cont)}kB": {'type': 'file', 'value': file_pmd_mapped},
357 rstats[f"anon-cont-pte-aligned-{nrkb(nr_cont)}kB"] = {'type': 'anon', 'value': nrkb(nr_anon)}
358 rstats[f"file-cont-pte-aligned-{nrkb(nr_cont)}kB"] = {'type': 'file', 'value': nrkb(nr_file)}
389 print(f"{label}:{' ' * pad}{value:8} kB{percent}")
490 docs_width -= 2
505 "K": 2**10, "M": 2**20, "G": 2**30,
506 "k": 2**10, "m": 2**20, "g": 2**30,
519 raise ArgException('error: --cont value must be size of at least 2 pages')
521 raise ArgException('error: --cont value must be size of power-of-2 pages')
537 had provided "--pid 1 --pid 2 ...".\\n
545 file-backed (pagecache) memory and are shown both in kB and
559 - anon-thp-pte-aligned-<size>kB\\n
560 - file-thp-pte-aligned-<size>kB\\n
561 - anon-thp-pmd-aligned-<size>kB\\n
562 - file-thp-pmd-aligned-<size>kB\\n
570 - anon-thp-pte-unaligned-<size>kB\\n
571 - file-thp-pte-unaligned-<size>kB\\n
594 - anon-cont-pte-aligned-<size>kB\\n
595 - file-cont-pte-aligned-<size>kB\\n
596 - anon-cont-pmd-aligned-<size>kB\\n
597 - file-cont-pmd-aligned-<size>kB\\n
604 a 64K boundary would provide 2 blocks. Or a 128K THP that
607 contiguously-mapped 2M THP would provide 32 blocks. There
637 hpa mappings. Size must be a power-of-2 number of pages.""")