Lines Matching +full:1 +full:kb
34 return (v + (a - 1)) & ~(a - 1)
38 return v & (a - 1)
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.
62 d = np.diff(search[0]) == 1
63 for dd in [np.diff(arr) == 1 for arr in search[1:]]:
65 r[1:] -= d
66 r[:-1] -= d
67 return [np.repeat(arr, r).reshape(-1, 2) for arr in index]
120 def get(self, index, nr=1):
128 PM_PAGE_PRESENT = 1 << 63
129 PM_PFN_MASK = (1 << 55) - 1
137 KPF_ANON = 1 << 12
138 KPF_COMPOUND_HEAD = 1 << 15
139 KPF_COMPOUND_TAIL = 1 << 16
140 KPF_THP = 1 << 22
209 read=elements[1][0] == 'r',
210 write=elements[1][1] == 'w',
211 execute=elements[1][2] == 'x',
212 private=elements[1][3] == 'p',
220 param = elements[0][:-1]
222 value = int(elements[1])
223 self.vmas[-1].stats[param] = {'type': None, 'value': value}
237 'aligned': [0] * (PMD_ORDER + 1),
238 'unaligned': [0] * (PMD_ORDER + 1),
242 'aligned': [0] * (PMD_ORDER + 1),
243 'unaligned': [0] * (PMD_ORDER + 1),
249 index_end = int(rindex[1]) + 1
250 pfn_end = int(rpfn[1]) + 1
264 nr = index_end - int(folios[-1])
265 folios = folios[:-1]
267 stats['anon' if anons[index_end - 1] else 'file']['partial'] += nr
271 folio_nrs = np.append(np.diff(folios), np.uint64(index_end - folios[-1]))
276 nr = 1 << order
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"
317 nr_cont = 1 << order
323 index_end = int(rindex[1]) + 1
334 folio_boundary = heads[index_next+1:index_next+nr_cont].any()
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)}
382 pad = max(0, label_field - len(label) - 1)
389 print(f"{label}:{' ' * pad}{value:8} kB{percent}")
508 unit = 1
509 if human[-1] in units:
510 unit = units[human[-1]]
511 human = human[:-1]
518 if order < 1:
520 if (1 << order) * PAGE_SIZE != size:
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
602 aligned to a 64K boundary would provide 1 block. A fully-
606 boundary would provide 1 block. A fully- and
675 exit(1)