From: kettenis Date: Sun, 13 Jul 2014 21:13:51 +0000 (+0000) Subject: Display zero page hit and miss counters in vmstat -s. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=416fd8bd7d88f8dea22957e665a0ab5e674901e8;p=openbsd Display zero page hit and miss counters in vmstat -s. ok deraadt@ --- diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c index 059f0443cc7..2751bbfa668 100644 --- a/usr.bin/vmstat/vmstat.c +++ b/usr.bin/vmstat/vmstat.c @@ -1,5 +1,5 @@ /* $NetBSD: vmstat.c,v 1.29.4.1 1996/06/05 00:21:05 cgd Exp $ */ -/* $OpenBSD: vmstat.c,v 1.131 2014/07/08 17:19:26 deraadt Exp $ */ +/* $OpenBSD: vmstat.c,v 1.132 2014/07/13 21:13:51 kettenis Exp $ */ /* * Copyright (c) 1980, 1986, 1991, 1993 @@ -528,6 +528,8 @@ dosum(void) (void)printf("%11u forks where vmspace is shared\n", uvmexp.forks_sharevm); (void)printf("%11u kernel map entries\n", uvmexp.kmapent); + (void)printf("%11u zeroed page hits\n", uvmexp.pga_zerohit); + (void)printf("%11u zeroed page misses\n", uvmexp.pga_zeromiss); /* daemon counters */ (void)printf("%11u number of times the pagedaemon woke up\n",