Module Name:    src
Committed By:   tsutsui
Date:           Sat Jan 21 20:19:55 UTC 2012

Modified Files:
        src/sys/arch/x68k/include: vmparam.h
        src/sys/arch/x68k/x68k: machdep.c

Log Message:
Give higher priority to faster local memory on uvm_page_physload().
Tested by Y.Sugahara on his 060turbo with 128MB local memory and
this improved even simple benchmark.  Ok'ed by isaki@.


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/x68k/include/vmparam.h
cvs rdiff -u -r1.179 -r1.180 src/sys/arch/x68k/x68k/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/x68k/include/vmparam.h
diff -u src/sys/arch/x68k/include/vmparam.h:1.34 src/sys/arch/x68k/include/vmparam.h:1.35
--- src/sys/arch/x68k/include/vmparam.h:1.34	Sun Oct  9 08:42:15 2011
+++ src/sys/arch/x68k/include/vmparam.h	Sat Jan 21 20:19:55 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: vmparam.h,v 1.34 2011/10/09 08:42:15 tsutsui Exp $	*/
+/*	$NetBSD: vmparam.h,v 1.35 2012/01/21 20:19:55 tsutsui Exp $	*/
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -116,8 +116,10 @@
 #define VM_PHYSSEG_STRAT	VM_PSTRAT_BIGFIRST
 				/* Actually VM_PSTRAT_UPPERFIRST is needed */
 
-#define	VM_NFREELIST		1
+#define	VM_NFREELIST		2
 #define	VM_FREELIST_DEFAULT	0
+#define	VM_FREELIST_HIGHMEM	VM_FREELIST_DEFAULT
+#define	VM_FREELIST_MAINMEM	1
 
 #define	__HAVE_PMAP_PHYSSEG
 

Index: src/sys/arch/x68k/x68k/machdep.c
diff -u src/sys/arch/x68k/x68k/machdep.c:1.179 src/sys/arch/x68k/x68k/machdep.c:1.180
--- src/sys/arch/x68k/x68k/machdep.c:1.179	Mon Dec 12 19:03:12 2011
+++ src/sys/arch/x68k/x68k/machdep.c	Sat Jan 21 20:19:55 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.179 2011/12/12 19:03:12 mrg Exp $	*/
+/*	$NetBSD: machdep.c,v 1.180 2012/01/21 20:19:55 tsutsui Exp $	*/
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.179 2011/12/12 19:03:12 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.180 2012/01/21 20:19:55 tsutsui Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -180,7 +180,7 @@ x68k_init(void)
 	 */
 	uvm_page_physload(atop(avail_start), atop(avail_end),
 	    atop(avail_start), atop(avail_end),
-	    VM_FREELIST_DEFAULT);
+	    VM_FREELIST_MAINMEM);
 #ifdef EXTENDED_MEMORY
 	setmemrange();
 #endif
@@ -1144,7 +1144,7 @@ setmemrange(void)
 		if ((u_long)mlist[i].base < h) {
 			uvm_page_physload(atop(mlist[i].base), atop(h),
 			    atop(mlist[i].base), atop(h),
-			    VM_FREELIST_DEFAULT);
+			    VM_FREELIST_HIGHMEM);
 			mem_size += h - (u_long) mlist[i].base;
 		}
 	}

Reply via email to