Module Name: src
Committed By: yamt
Date: Sat Nov 12 04:12:52 UTC 2011
Modified Files:
src/usr.bin/vmstat [yamt-pagecache]: vmstat.c
Log Message:
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
To generate a diff of this commit:
cvs rdiff -u -r1.186 -r1.186.2.1 src/usr.bin/vmstat/vmstat.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/vmstat/vmstat.c
diff -u src/usr.bin/vmstat/vmstat.c:1.186 src/usr.bin/vmstat/vmstat.c:1.186.2.1
--- src/usr.bin/vmstat/vmstat.c:1.186 Sat Oct 15 21:59:48 2011
+++ src/usr.bin/vmstat/vmstat.c Sat Nov 12 04:12:52 2011
@@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 19
#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 @@ dosum(void)
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);