#
# pcp-dstat(1) configuration file - see pcp-dstat(5)
#

[vm]
label = virtual memory
width = 5
printtype = d
majpf = mem.vmstat.pgmajfault
minpf = mem.vmstat.pgfault
alloc = sum(mem.vmstat.pgalloc_dma) + sum(mem.vmstat.pgalloc_dma32) + sum(mem.vmstat.pgalloc_movable) + sum(mem.vmstat.pgalloc_normal) + sum(mem.vmstat.pgalloc_high)
free = mem.vmstat.pgfree

[vm-adv]
label = advanced virtual memory
width = 5
printtype = d

steal = sum(mem.vmstat.pgsteal_direct) + sum(mem.vmstat.pgsteal_direct_dma) + sum(mem.vmstat.pgsteal_direct_dma32) + sum(mem.vmstat.pgsteal_direct_movable) + sum(mem.vmstat.pgsteal_direct_normal)

scanK = sum(mem.vmstat.pgscan_kswapd) + sum(mem.vmstat.pgscan_kswapd_dma) + sum(mem.vmstat.pgscan_kswapd_dma32) + sum(mem.vmstat.pgscan_kswapd_high) + sum(mem.vmstat.pgscan_kswapd_movable) + sum(mem.vmstat.pgscan_kswapd_normal)
scanK.label = minpf

scanD = sum(mem.vmstat.pgscan_direct) + sum(mem.vmstat.pgscan_direct_dma) + sum(mem.vmstat.pgscan_direct_dma32) + sum(mem.vmstat.pgscan_direct_high) + sum(mem.vmstat.pgscan_direct_movable) + sum(mem.vmstat.pgscan_direct_normal)
scanD.label = alloc

pgoru = sum(mem.vmstat.pageoutrun)
astll = sum(mem.vmstat.allocstall)

