Source-Changes-HG archive

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

[src/trunk]: src remove anon related statistics which are no longer used.



details:   https://anonhg.NetBSD.org/src/rev/66aad78bfd3c
branches:  trunk
changeset: 580901:66aad78bfd3c
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sun May 15 08:01:06 2005 +0000

description:
remove anon related statistics which are no longer used.

diffstat:

 sys/uvm/uvm_extern.h    |  14 +++++++-------
 sys/uvm/uvm_meter.c     |   7 ++-----
 sys/uvm/uvm_stat.c      |  13 +++++--------
 usr.bin/vmstat/vmstat.c |   6 ++----
 4 files changed, 16 insertions(+), 24 deletions(-)

diffs (124 lines):

diff -r 1b1c4d4fb48c -r 66aad78bfd3c sys/uvm/uvm_extern.h
--- a/sys/uvm/uvm_extern.h      Sun May 15 07:48:49 2005 +0000
+++ b/sys/uvm/uvm_extern.h      Sun May 15 08:01:06 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_extern.h,v 1.100 2005/04/01 11:59:38 yamt Exp $    */
+/*     $NetBSD: uvm_extern.h,v 1.101 2005/05/15 08:01:06 yamt Exp $    */
 
 /*
  *
@@ -307,9 +307,9 @@
        int swpginuse;  /* number of swap pages in use */
        int swpgonly;   /* number of swap pages in use, not also in RAM */
        int nswget;     /* number of times fault calls uvm_swap_get() */
-       int nanon;      /* number total of anon's in system */
-       int nanonneeded;/* number of anons currently needed */
-       int nfreeanon;  /* number of free anon's */
+       int unused1;    /* used to be nanon */
+       int unused2;    /* used to be nanonneeded */
+       int unused3;    /* used to be nfreeanon */
 
        /* stat counters */
        int faults;             /* page fault count */
@@ -401,9 +401,9 @@
        int64_t swpginuse;
        int64_t swpgonly;
        int64_t nswget;
-       int64_t nanon;
-       int64_t nanonneeded;
-       int64_t nfreeanon;
+       int64_t unused1; /* used to be nanon */
+       int64_t unused2; /* used to be nanonneeded */
+       int64_t unused3; /* used to be nfreeanon */
        int64_t faults;
        int64_t traps;
        int64_t intrs;
diff -r 1b1c4d4fb48c -r 66aad78bfd3c sys/uvm/uvm_meter.c
--- a/sys/uvm/uvm_meter.c       Sun May 15 07:48:49 2005 +0000
+++ b/sys/uvm/uvm_meter.c       Sun May 15 08:01:06 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_meter.c,v 1.33 2004/10/10 09:57:31 yamt Exp $      */
+/*     $NetBSD: uvm_meter.c,v 1.34 2005/05/15 08:01:06 yamt Exp $      */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_meter.c,v 1.33 2004/10/10 09:57:31 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_meter.c,v 1.34 2005/05/15 08:01:06 yamt Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -179,9 +179,6 @@
        u.swpginuse = uvmexp.swpginuse;
        u.swpgonly = uvmexp.swpgonly;
        u.nswget = uvmexp.nswget;
-       u.nanon = uvmexp.nanon;
-       u.nanonneeded = uvmexp.nanonneeded;
-       u.nfreeanon = uvmexp.nfreeanon;
        u.faults = uvmexp.faults;
        u.traps = uvmexp.traps;
        u.intrs = uvmexp.intrs;
diff -r 1b1c4d4fb48c -r 66aad78bfd3c sys/uvm/uvm_stat.c
--- a/sys/uvm/uvm_stat.c        Sun May 15 07:48:49 2005 +0000
+++ b/sys/uvm/uvm_stat.c        Sun May 15 08:01:06 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_stat.c,v 1.26 2005/04/27 11:02:43 yamt Exp $        */
+/*     $NetBSD: uvm_stat.c,v 1.27 2005/05/15 08:01:06 yamt Exp $        */
 
 /*
  *
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_stat.c,v 1.26 2005/04/27 11:02:43 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_stat.c,v 1.27 2005/05/15 08:01:06 yamt Exp $");
 
 #include "opt_uvmhist.h"
 #include "opt_ddb.h"
@@ -244,12 +244,9 @@
            uvmexp.pdbusy, uvmexp.pdfreed, uvmexp.pdreact, uvmexp.pddeact);
        (*pr)("    pageouts=%d, pending=%d, nswget=%d\n", uvmexp.pdpageouts,
            uvmexp.pdpending, uvmexp.nswget);
-       (*pr)("    nswapdev=%d, nanon=%d, nanonneeded=%d nfreeanon=%d\n",
-           uvmexp.nswapdev, uvmexp.nanon, uvmexp.nanonneeded,
-           uvmexp.nfreeanon);
-       (*pr)("    swpages=%d, swpginuse=%d, swpgonly=%d paging=%d\n",
+       (*pr)("    nswapdev=%d, swpgavail=%d\n",
+           uvmexp.nswapdev, uvmexp.swpgavail);
+       (*pr)("    swpages=%d, swpginuse=%d, swpgonly=%d, paging=%d\n",
            uvmexp.swpages, uvmexp.swpginuse, uvmexp.swpgonly, uvmexp.paging);
-       (*pr)("    swpgavail=%d\n",
-           uvmexp.swpgavail);
 }
 #endif
diff -r 1b1c4d4fb48c -r 66aad78bfd3c usr.bin/vmstat/vmstat.c
--- a/usr.bin/vmstat/vmstat.c   Sun May 15 07:48:49 2005 +0000
+++ b/usr.bin/vmstat/vmstat.c   Sun May 15 08:01:06 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmstat.c,v 1.131 2005/03/10 16:28:54 wiz Exp $ */
+/* $NetBSD: vmstat.c,v 1.132 2005/05/15 08:01:20 yamt Exp $ */
 
 /*-
  * Copyright (c) 1998, 2000, 2001 The NetBSD Foundation, Inc.
@@ -77,7 +77,7 @@
 #if 0
 static char sccsid[] = "@(#)vmstat.c   8.2 (Berkeley) 3/1/95";
 #else
-__RCSID("$NetBSD: vmstat.c,v 1.131 2005/03/10 16:28:54 wiz Exp $");
+__RCSID("$NetBSD: vmstat.c,v 1.132 2005/05/15 08:01:20 yamt Exp $");
 #endif
 #endif /* not lint */
 
@@ -750,8 +750,6 @@
        (void)printf("%9u swap pages\n", uvmexp.swpages);
        (void)printf("%9u swap pages in use\n", uvmexp.swpginuse);
        (void)printf("%9u swap allocations\n", uvmexp.nswget);
-       (void)printf("%9u anons\n", uvmexp.nanon);
-       (void)printf("%9u free anons\n", uvmexp.nfreeanon);
 
        (void)printf("%9u total faults taken\n", uvmexp.faults);
        (void)printf("%9u traps\n", uvmexp.traps);



Home | Main Index | Thread Index | Old Index