Page size monitoring with the vmstat command
The vmstat command has two options available to display memory statistics for a specific page size.
- vmstat -p
- Displays global vmstat information along with a break-down of statistics per page size.
- vmstat -P
- Displays per page size statistics.
Both options take a comma-separated list of specific page sizes or the keyword all to indicate information should be displayed for all supported page sizes that have one or more page frames. The following example displays per-page size information for all of the page sizes with page frames on a system:
# vmstat -P all
System configuration: mem=4096MB
pgsz memory page
----- -------------------------- ------------------------------------
siz avm fre re pi po fr sr cy
4K 542846 202832 329649 0 0 0 0 0 0
64K 31379 961 30484 0 0 0 0 0 0