Source-Changes-HG archive

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

[src/yamt-pdpolicy]: src/sys/uvm separate "nresrecord" statistics for obj and...



details:   https://anonhg.NetBSD.org/src/rev/217e6c1e6b52
branches:  yamt-pdpolicy
changeset: 588846:217e6c1e6b52
user:      yamt <yamt%NetBSD.org@localhost>
date:      Fri Mar 24 13:48:10 2006 +0000

description:
separate "nresrecord" statistics for obj and anon.

diffstat:

 sys/uvm/uvm_pdpolicy_clockpro.c |  13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diffs (41 lines):

diff -r 08386aed49ad -r 217e6c1e6b52 sys/uvm/uvm_pdpolicy_clockpro.c
--- a/sys/uvm/uvm_pdpolicy_clockpro.c   Tue Mar 21 11:05:22 2006 +0000
+++ b/sys/uvm/uvm_pdpolicy_clockpro.c   Fri Mar 24 13:48:10 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_pdpolicy_clockpro.c,v 1.1.2.8 2006/03/21 11:05:22 yamt Exp $       */
+/*     $NetBSD: uvm_pdpolicy_clockpro.c,v 1.1.2.9 2006/03/24 13:48:10 yamt Exp $       */
 
 /*-
  * Copyright (c)2005, 2006 YAMAMOTO Takashi,
@@ -43,7 +43,7 @@
 #else /* defined(PDSIM) */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_pdpolicy_clockpro.c,v 1.1.2.8 2006/03/21 11:05:22 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_pdpolicy_clockpro.c,v 1.1.2.9 2006/03/24 13:48:10 yamt Exp $");
 
 #include "opt_ddb.h"
 
@@ -87,7 +87,8 @@
 
 int clockpro_hashfactor = CLOCKPRO_HASHFACTOR;
 
-PDPOL_EVCNT_DEFINE(nresrecord)
+PDPOL_EVCNT_DEFINE(nresrecordobj)
+PDPOL_EVCNT_DEFINE(nresrecordanon)
 PDPOL_EVCNT_DEFINE(nreslookup)
 PDPOL_EVCNT_DEFINE(nresfoundobj)
 PDPOL_EVCNT_DEFINE(nresfoundanon)
@@ -534,7 +535,11 @@
        }
 #endif /* defined(DEBUG) */
 
-       PDPOL_EVCNT_INCR(nresrecord);
+       if (pg->uobject) {
+               PDPOL_EVCNT_INCR(nresrecordobj);
+       } else {
+               PDPOL_EVCNT_INCR(nresrecordanon);
+       }
        nonresident_rotate(b);
        if (b->pages[b->cur] != NONRES_COOKIE_INVAL) {
                PDPOL_EVCNT_INCR(nresoverwritten);



Home | Main Index | Thread Index | Old Index