report some more statistics. yamt-pagecache
authoryamt <yamt@NetBSD.org>
Sat, 12 Nov 2011 04:12:52 +0000
branchyamt-pagecache
changeset 280311 8bf6560152c4
parent 280310 e463764bb7c9
child 280312 136c67680137
report some more statistics. 373597 file pages known clean 225 file pages might dirty 16 file pages known dirty 0 anonymous pages known clean 2218 anonymous pages might dirty 39055 anonymous pages known dirty
usr.bin/vmstat/vmstat.c
--- a/usr.bin/vmstat/vmstat.c	Sat Nov 12 02:54:04 2011 +0000
+++ b/usr.bin/vmstat/vmstat.c	Sat Nov 12 04:12:52 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmstat.c,v 1.186 2011/10/15 21:59:48 christos Exp $ */
+/* $NetBSD: vmstat.c,v 1.186.2.1 2011/11/12 04:12:52 yamt Exp $ */
 
 /*-
  * Copyright (c) 1998, 2000, 2001, 2007 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
 #if 0
 static char sccsid[] = "@(#)vmstat.c	8.2 (Berkeley) 3/1/95";
 #else
-__RCSID("$NetBSD: vmstat.c,v 1.186 2011/10/15 21:59:48 christos Exp $");
+__RCSID("$NetBSD: vmstat.c,v 1.186.2.1 2011/11/12 04:12:52 yamt Exp $");
 #endif
 #endif /* not lint */
 
@@ -892,6 +892,18 @@
 	if (active_kernel) {
 		(void)printf("%9" PRIu64 " pages active\n", uvmexp2.active);
 		(void)printf("%9" PRIu64 " pages inactive\n", uvmexp2.inactive);
+		(void)printf("%9" PRIu64 " file pages known clean\n",
+		    uvmexp2.cleanpages);
+		(void)printf("%9" PRIu64 " file pages might dirty\n",
+		    uvmexp2.mightdirtypages);
+		(void)printf("%9" PRIu64 " file pages known dirty\n",
+		    uvmexp2.dirtypages);
+		(void)printf("%9" PRIu64 " anonymous pages known clean\n",
+		    uvmexp2.cleananonpages);
+		(void)printf("%9" PRIu64 " anonymous pages might dirty\n",
+		    uvmexp2.mightdirtyanonpages);
+		(void)printf("%9" PRIu64 " anonymous pages known dirty\n",
+		    uvmexp2.dirtyanonpages);
 	}
 	(void)printf("%9u pages paging\n", uvmexp.paging);
 	(void)printf("%9u pages wired\n", uvmexp.wired);