summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-06-04 17:21:25 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-06-04 17:21:25 +0000
commit42e4130d0a6fcb41516f4c08ada976c9427f2112 (patch)
tree22819f76f8cc59e4d05dfd4323376a44bfdbb2c7
parentbba723b9745299edaf195f729e9513d715fe9e8d (diff)
Shrink VM_PHYSSEG_MAX to 1 on platforms where physical memory is contiguous
and there is only one call to uvm_page_physload().
-rw-r--r--sys/arch/armish/include/vmparam.h13
-rw-r--r--sys/arch/hppa/include/vmparam.h6
-rw-r--r--sys/arch/hppa64/include/vmparam.h6
-rw-r--r--sys/arch/solbourne/include/vmparam.h7
-rw-r--r--sys/arch/zaurus/include/vmparam.h13
5 files changed, 18 insertions, 27 deletions
diff --git a/sys/arch/armish/include/vmparam.h b/sys/arch/armish/include/vmparam.h
index 6dda1fc6f60..864f1d7c29f 100644
--- a/sys/arch/armish/include/vmparam.h
+++ b/sys/arch/armish/include/vmparam.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmparam.h,v 1.2 2006/05/30 17:38:21 drahn Exp $ */
+/* $OpenBSD: vmparam.h,v 1.3 2006/06/04 17:21:22 miod Exp $ */
/* $NetBSD: vmparam.h,v 1.23 2003/05/22 05:47:07 thorpej Exp $ */
/*
@@ -67,15 +67,8 @@
* max number of non-contig chunks of physical RAM you can have
*/
-#define VM_PHYSSEG_MAX 32
-
-/*
- * when converting a physical address to a vm_page structure, we
- * want to use a binary search on the chunks of physical memory
- * to find our RAM
- */
-
-#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH
+#define VM_PHYSSEG_MAX 1
+#define VM_PHYSSEG_STRAT VM_PSTRAT_RANDOM
/*
* this indicates that we can't add RAM to the VM system after the
diff --git a/sys/arch/hppa/include/vmparam.h b/sys/arch/hppa/include/vmparam.h
index 0bae193a98e..6e3657028f8 100644
--- a/sys/arch/hppa/include/vmparam.h
+++ b/sys/arch/hppa/include/vmparam.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmparam.h,v 1.32 2005/04/11 15:13:01 deraadt Exp $ */
+/* $OpenBSD: vmparam.h,v 1.33 2006/06/04 17:21:24 miod Exp $ */
/*
* Copyright (c) 1988-1994, The University of Utah and
@@ -80,8 +80,8 @@
/* virtual sizes (bytes) for various kernel submaps */
#define VM_PHYS_SIZE (USRIOSIZE*PAGE_SIZE)
-#define VM_PHYSSEG_MAX 8 /* this many physmem segments */
-#define VM_PHYSSEG_STRAT VM_PSTRAT_BIGFIRST
+#define VM_PHYSSEG_MAX 1 /* this many physmem segments */
+#define VM_PHYSSEG_STRAT VM_PSTRAT_RANDOM
#define VM_PHYSSEG_NOADD /* XXX until uvm code is fixed */
diff --git a/sys/arch/hppa64/include/vmparam.h b/sys/arch/hppa64/include/vmparam.h
index e9c3f210f79..fbdff030e42 100644
--- a/sys/arch/hppa64/include/vmparam.h
+++ b/sys/arch/hppa64/include/vmparam.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmparam.h,v 1.2 2005/04/13 04:03:46 mickey Exp $ */
+/* $OpenBSD: vmparam.h,v 1.3 2006/06/04 17:21:24 miod Exp $ */
/*
* Copyright (c) 1988-1994, The University of Utah and
@@ -79,8 +79,8 @@
/* virtual sizes (bytes) for various kernel submaps */
#define VM_PHYS_SIZE (USRIOSIZE*PAGE_SIZE)
-#define VM_PHYSSEG_MAX 8 /* this many physmem segments */
-#define VM_PHYSSEG_STRAT VM_PSTRAT_BIGFIRST
+#define VM_PHYSSEG_MAX 1 /* this many physmem segments */
+#define VM_PHYSSEG_STRAT VM_PSTRAT_RANDOM
#define VM_PHYSSEG_NOADD /* XXX until uvm code is fixed */
diff --git a/sys/arch/solbourne/include/vmparam.h b/sys/arch/solbourne/include/vmparam.h
index db515f7561b..c47ff005635 100644
--- a/sys/arch/solbourne/include/vmparam.h
+++ b/sys/arch/solbourne/include/vmparam.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmparam.h,v 1.1 2005/04/19 21:30:18 miod Exp $ */
+/* $OpenBSD: vmparam.h,v 1.2 2006/06/04 17:21:24 miod Exp $ */
/* public domain */
#ifndef _SOLBOURNE_VMPARAM_H_
@@ -19,4 +19,9 @@
#undef IOSPACE_LEN
#define IOSPACE_LEN 0x00f00000 /* 15 MB of iospace */
+#undef VM_PHYSSEG_MAX
+#define VM_PHYSSEG_MAX 2
+#undef VM_PHYSSEG_STRAT
+#define VM_PHYSSEG_STRAT VM_PSTRAT_BIGFIRST
+
#endif /* _SOLBOURNE_VMPARAM_H_ */
diff --git a/sys/arch/zaurus/include/vmparam.h b/sys/arch/zaurus/include/vmparam.h
index e684f9d94e5..ef976fed4de 100644
--- a/sys/arch/zaurus/include/vmparam.h
+++ b/sys/arch/zaurus/include/vmparam.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmparam.h,v 1.3 2006/05/22 15:47:57 deraadt Exp $ */
+/* $OpenBSD: vmparam.h,v 1.4 2006/06/04 17:21:24 miod Exp $ */
/* $NetBSD: vmparam.h,v 1.23 2003/05/22 05:47:07 thorpej Exp $ */
/*
@@ -67,15 +67,8 @@
* max number of non-contig chunks of physical RAM you can have
*/
-#define VM_PHYSSEG_MAX 32
-
-/*
- * when converting a physical address to a vm_page structure, we
- * want to use a binary search on the chunks of physical memory
- * to find our RAM
- */
-
-#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH
+#define VM_PHYSSEG_MAX 1
+#define VM_PHYSSEG_STRAT VM_PSTRAT_RANDOM
/*
* this indicates that we can't add RAM to the VM system after the