Subject: Re: Page daemon behavior part N
To: Charles M. Hannum <root@ihack.net>
From: Jason R Thorpe <thorpej@zembu.com>
List: tech-kern
Date: 01/24/2001 19:35:12
On Thu, Jan 25, 2001 at 03:28:44AM +0000, Charles M. Hannum wrote:

 > Index: uvm_pdaemon.c
 > ===================================================================
 > RCS file: /cvsroot/syssrc/sys/uvm/uvm_pdaemon.c,v
 > retrieving revision 1.27
 > diff -c -2 -r1.27 uvm_pdaemon.c
 > *** uvm_pdaemon.c	2001/01/25 00:10:03	1.27
 > --- uvm_pdaemon.c	2001/01/25 03:18:40
 > ***************
 > *** 1100,1107 ****
 >   		/*
 >   		 * deactivate this page if there's a shortage of
 > ! 		 * inactive pages.
 >   		 */
 >   
 > ! 		if (inactive_shortage > 0) {
 >   			pmap_page_protect(p, VM_PROT_NONE);
 >   			/* no need to check wire_count as pg is "active" */
 > --- 1100,1108 ----
 >   		/*
 >   		 * deactivate this page if there's a shortage of
 > ! 		 * inactive pages and it hasn't been touched since the
 > ! 		 * last scan.
 >   		 */
 >   
 > ! 		if (inactive_shortage > 0 && !pmap_clear_reference(p)) {
 >   			pmap_page_protect(p, VM_PROT_NONE);
 >   			/* no need to check wire_count as pg is "active" */
 > 

I already committed this change.

-- 
        -- Jason R. Thorpe <thorpej@zembu.com>