Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/yamt-pagecache]: src/usr.bin/vmstat report some more statistics.



details:   https://anonhg.NetBSD.org/src/rev/ff5a904b57f5
branches:  yamt-pagecache
changeset: 770826:ff5a904b57f5
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sat Nov 12 04:12:52 2011 +0000

description:
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

diffstat:

 usr.bin/vmstat/vmstat.c |  16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diffs (37 lines):

diff -r b2f662120b62 -r ff5a904b57f5 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);



Home | Main Index | Thread Index | Old Index