Source-Changes-HG archive

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

[src/trunk]: src/sys Make a note that some counters should be 64-bit as they ...



details:   https://anonhg.NetBSD.org/src/rev/d4fd2cb178f3
branches:  trunk
changeset: 588159:d4fd2cb178f3
user:      simonb <simonb%NetBSD.org@localhost>
date:      Fri Feb 10 00:53:04 2006 +0000

description:
Make a note that some counters should be 64-bit as they wrap far to
quickly.

diffstat:

 sys/sys/namei.h      |  3 ++-
 sys/uvm/uvm_extern.h |  8 ++++----
 2 files changed, 6 insertions(+), 5 deletions(-)

diffs (53 lines):

diff -r fdfd038b6793 -r d4fd2cb178f3 sys/sys/namei.h
--- a/sys/sys/namei.h   Fri Feb 10 00:22:42 2006 +0000
+++ b/sys/sys/namei.h   Fri Feb 10 00:53:04 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: namei.h,v 1.41 2005/12/11 12:25:20 christos Exp $      */
+/*     $NetBSD: namei.h,v 1.42 2006/02/10 00:53:04 simonb Exp $        */
 
 /*
  * Copyright (c) 1985, 1989, 1991, 1993
@@ -205,6 +205,7 @@
 
 /*
  * Stats on usefulness of namei caches.
+ * XXX: should be 64-bit counters.
  */
 struct nchstats {
        long    ncs_goodhits;           /* hits that we can really use */
diff -r fdfd038b6793 -r d4fd2cb178f3 sys/uvm/uvm_extern.h
--- a/sys/uvm/uvm_extern.h      Fri Feb 10 00:22:42 2006 +0000
+++ b/sys/uvm/uvm_extern.h      Fri Feb 10 00:53:04 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_extern.h,v 1.109 2006/01/21 13:34:15 yamt Exp $    */
+/*     $NetBSD: uvm_extern.h,v 1.110 2006/02/10 00:53:04 simonb Exp $  */
 
 /*
  *
@@ -322,7 +322,7 @@
        int swpgonly;   /* number of swap pages in use, not also in RAM */
        int nswget;     /* number of times fault calls uvm_swap_get() */
 
-       /* stat counters */
+       /* stat counters.  XXX: should be 64-bit counters */
        int faults;             /* page fault count */
        int traps;              /* trap count */
        int intrs;              /* interrupt count */
@@ -347,7 +347,7 @@
        int colorhit;           /* pagealloc where we got optimal color */
        int colormiss;          /* pagealloc where we didn't */
 
-       /* fault subcounters */
+       /* fault subcounters.  XXX: should be 64-bit counters */
        int fltnoram;   /* number of times fault was out of ram */
        int fltnoanon;  /* number of times fault was out of anons */
        int fltpgwait;  /* number of times fault had to wait on a page */
@@ -367,7 +367,7 @@
        int flt_prcopy; /* number of times fault promotes with copy (2b) */
        int flt_przero; /* number of times fault promotes with zerofill (2b) */
 
-       /* daemon counters */
+       /* daemon counters.  XXX: should be 64-bit counters */
        int pdwoke;     /* number of times daemon woke up */
        int pdrevs;     /* number of times daemon rev'd clock hand */
        int pdswout;    /* number of times daemon called for swapout */



Home | Main Index | Thread Index | Old Index