Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x68k Give higher priority to faster local memory on...



details:   https://anonhg.NetBSD.org/src/rev/0e7840037084
branches:  trunk
changeset: 772928:0e7840037084
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Jan 21 20:19:55 2012 +0000

description:
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@.

diffstat:

 sys/arch/x68k/include/vmparam.h |  6 ++++--
 sys/arch/x68k/x68k/machdep.c    |  8 ++++----
 2 files changed, 8 insertions(+), 6 deletions(-)

diffs (57 lines):

diff -r 0027c252fe7b -r 0e7840037084 sys/arch/x68k/include/vmparam.h
--- a/sys/arch/x68k/include/vmparam.h   Sat Jan 21 20:05:27 2012 +0000
+++ b/sys/arch/x68k/include/vmparam.h   Sat Jan 21 20:19:55 2012 +0000
@@ -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
 
diff -r 0027c252fe7b -r 0e7840037084 sys/arch/x68k/x68k/machdep.c
--- a/sys/arch/x68k/x68k/machdep.c      Sat Jan 21 20:05:27 2012 +0000
+++ b/sys/arch/x68k/x68k/machdep.c      Sat Jan 21 20:19:55 2012 +0000
@@ -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 @@
         */
        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 @@
                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;
                }
        }



Home | Main Index | Thread Index | Old Index