Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/vmstat vmstat -s: report new stats:



details:   https://anonhg.NetBSD.org/src/rev/3f9b50cae9d8
branches:  trunk
changeset: 467158:3f9b50cae9d8
user:      ad <ad%NetBSD.org@localhost>
date:      Wed Jan 15 17:56:46 2020 +0000

description:
vmstat -s: report new stats:

        0 per-cpu stats one synced
     7246 per-cpu stats all synced
     4092 anon pages possibly dirty
     8881 anon pages dirty
        0 anon pages clean
       68 file pages possibly dirty
        0 file pages dirty
  2367889 file pages clean

diffstat:

 usr.bin/vmstat/vmstat.c |  15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diffs (38 lines):

diff -r 5371bc3d1f1a -r 3f9b50cae9d8 usr.bin/vmstat/vmstat.c
--- a/usr.bin/vmstat/vmstat.c   Wed Jan 15 17:55:43 2020 +0000
+++ b/usr.bin/vmstat/vmstat.c   Wed Jan 15 17:56:46 2020 +0000
@@ -1,7 +1,8 @@
-/* $NetBSD: vmstat.c,v 1.234 2020/01/08 11:58:02 ad Exp $ */
+/* $NetBSD: vmstat.c,v 1.235 2020/01/15 17:56:46 ad Exp $ */
 
 /*-
- * Copyright (c) 1998, 2000, 2001, 2007, 2019 The NetBSD Foundation, Inc.
+ * Copyright (c) 1998, 2000, 2001, 2007, 2019, 2020
+ *     The NetBSD Foundation, Inc.
  * All rights reserved.
  *
  * This code is derived from software contributed to The NetBSD Foundation by:
@@ -70,7 +71,7 @@
 #if 0
 static char sccsid[] = "@(#)vmstat.c   8.2 (Berkeley) 3/1/95";
 #else
-__RCSID("$NetBSD: vmstat.c,v 1.234 2020/01/08 11:58:02 ad Exp $");
+__RCSID("$NetBSD: vmstat.c,v 1.235 2020/01/15 17:56:46 ad Exp $");
 #endif
 #endif /* not lint */
 
@@ -1089,6 +1090,14 @@
        (void)printf("%9" PRIu64 " pages found busy by daemon\n", uvmexp.pdbusy);
        (void)printf("%9" PRIu64 " total pending pageouts\n", uvmexp.pdpending);
        (void)printf("%9" PRIu64 " pages deactivated\n", uvmexp.pddeact);
+       (void)printf("%9" PRIu64 " per-cpu stats one synced\n", uvmexp.countsyncone);
+       (void)printf("%9" PRIu64 " per-cpu stats all synced\n", uvmexp.countsyncall);
+       (void)printf("%9" PRIu64 " anon pages possibly dirty\n", uvmexp.anonunknown);
+       (void)printf("%9" PRIu64 " anon pages dirty\n", uvmexp.anondirty);
+       (void)printf("%9" PRIu64 " anon pages clean\n", uvmexp.anonclean);
+       (void)printf("%9" PRIu64 " file pages possibly dirty\n", uvmexp.fileunknown);
+       (void)printf("%9" PRIu64 " file pages dirty\n", uvmexp.filedirty);
+       (void)printf("%9" PRIu64 " file pages clean\n", uvmexp.fileclean);
 
        if (active_kernel) {
                ssize = sizeof(nch_stats);



Home | Main Index | Thread Index | Old Index