linux - grep -i "HugePage" /proc/meminfo 里的 HugePages 信息

netbar2000

2018-04-25T09:19:34Z||2018-04-25T09:19:34Z

kernel.org中找到了具体的信息:

HugePages_Total: uuu
HugePages_Free:  vvv
HugePages_Rsvd:  www
HugePages_Surp:  xxx
Hugepagesize:    yyy kB
Hugetlb:         zzz kB

where:
HugePages_Total is the size of the pool of huge pages.
HugePages_Free  is the number of huge pages in the pool that are not yet
                allocated.
HugePages_Rsvd  is short for "reserved," and is the number of huge pages for
                which a commitment to allocate from the pool has been made,
                but no allocation has yet been made.  Reserved huge pages
                guarantee that an application will be able to allocate a
                huge page from the pool of huge pages at fault time.
HugePages_Surp  is short for "surplus," and is the number of huge pages in
                the pool above the value in /proc/sys/vm/nr_hugepages. The
                maximum number of surplus huge pages is controlled by
                /proc/sys/vm/nr_overcommit_hugepages.
Hugepagesize    is the default hugepage size (in Kb).
Hugetlb         is the total amount of memory (in kB), consumed by huge
                pages of all sizes.
                If huge pages of different sizes are in use, this number
                will exceed HugePages_Total * Hugepagesize. To get more
                detailed information, please, refer to
                /sys/kernel/mm/hugepages (described below).