$ numastat -vm
Per-node system memory usage (in MBs):
Node 0 Total
--------------- ---------------
MemTotal 32464.24 32464.24
MemFree 30993.97 30993.97
MemUsed 1470.27 1470.27
Active 47.68 47.68
Inactive 158.69 158.69
Active(anon) 10.48 10.48
Inactive(anon) 8.99 8.99
Active(file) 37.21 37.21
Inactive(file) 149.70 149.70
Unevictable 0.00 0.00
Mlocked 0.00 0.00
Dirty 0.00 0.00
Writeback 0.00 0.00
FilePages 196.26 196.26
Mapped 13.79 13.79
AnonPages 9.82 9.82
Shmem 9.36 9.36
KernelStack 3.86 3.86
PageTables 1.91 1.91
NFS_Unstable 0.00 0.00
Bounce 0.00 0.00
WritebackTmp 0.00 0.00
Slab 41.54 41.54
SReclaimable 17.00 17.00
SUnreclaim 24.54 24.54
AnonHugePages 0.00 0.00
HugePages_Total 256.00 256.00
HugePages_Free 254.00 254.00
HugePages_Surp 0.00 0.00
$ ll /mnt/huge2m/
total 2048
-rw-rw-rw- 1 as as 2097152 Dec 18 20:32 request.0
-rw-rw-rw- 1 as as 2097152 Dec 18 20:32 response.0
出于某种原因,即使有两个 2MB 大页面(request.0 和 response.0),也只算 1 个?如上numastat
文所述,大页面总共有 256MB,其中 254MB 是空闲的。
主意?
答案1
HugePages_Total
单位HugePages_Free
是页,本例中为 2MB 页。请参阅文档/vm/hugetlbpage.txt。(两个有效数字有点误导,页数是整数。)
请注意,-m 是“meminfo-like”选项,它并不表示 MB。