Source-Changes-HG archive

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

[src/netbsd-1-6]: src/sys/uvm Pull up revision 1.78 (requested by chs in tick...



details:   https://anonhg.NetBSD.org/src/rev/859ebc5ed390
branches:  netbsd-1-6
changeset: 528027:859ebc5ed390
user:      lukem <lukem%NetBSD.org@localhost>
date:      Fri Jun 21 00:55:41 2002 +0000

description:
Pull up revision 1.78 (requested by chs in ticket #329):
count aobj pages (most notably kernel stack pages) as anon pages
for memory usage-balancing purposes.

diffstat:

 sys/uvm/uvm_page.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (38 lines):

diff -r b1f368a028b5 -r 859ebc5ed390 sys/uvm/uvm_page.c
--- a/sys/uvm/uvm_page.c        Fri Jun 21 00:55:31 2002 +0000
+++ b/sys/uvm/uvm_page.c        Fri Jun 21 00:55:41 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_page.c,v 1.75.4.2 2002/06/20 02:49:12 lukem Exp $  */
+/*     $NetBSD: uvm_page.c,v 1.75.4.3 2002/06/21 00:55:41 lukem Exp $  */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.75.4.2 2002/06/20 02:49:12 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.75.4.3 2002/06/21 00:55:41 lukem Exp $");
 
 #include "opt_uvmhist.h"
 
@@ -172,6 +172,10 @@
        TAILQ_INSERT_TAIL(buck, pg, hashq);
        simple_unlock(&uvm.hashlock);
 
+       if (UVM_OBJ_IS_AOBJ(uobj)) {
+               uvmexp.anonpages++;
+       }
+
        TAILQ_INSERT_TAIL(&uobj->memq, pg, listq);
        pg->flags |= PG_TABLED;
        uobj->uo_npages++;
@@ -201,6 +205,8 @@
                uvmexp.execpages--;
        } else if (UVM_OBJ_IS_VNODE(uobj)) {
                uvmexp.filepages--;
+       } else if (UVM_OBJ_IS_AOBJ(uobj)) {
+               uvmexp.anonpages--;
        }
 
        /* object should be locked */



Home | Main Index | Thread Index | Old Index