Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys proper sizing of kmem_arena on different ports
details: https://anonhg.NetBSD.org/src/rev/f1f9dc195482
branches: trunk
changeset: 773633:f1f9dc195482
user: para <para%NetBSD.org@localhost>
date: Fri Feb 10 17:35:47 2012 +0000
description:
proper sizing of kmem_arena on different ports
PR port-i386/45946: Kernel locks up in VMEM system
diffstat:
sys/arch/alpha/include/param.h | 7 ++++---
sys/arch/amiga/include/param.h | 4 ++--
sys/arch/atari/include/param.h | 6 +++---
sys/arch/cesfic/include/param.h | 6 +++---
sys/arch/hp300/include/param.h | 6 +++---
sys/arch/hppa/include/param.h | 4 ++--
sys/arch/i386/include/param.h | 6 +++---
sys/arch/ia64/include/param.h | 7 ++++---
sys/arch/luna68k/include/param.h | 6 +++---
sys/arch/mac68k/include/param.h | 4 ++--
sys/arch/macppc/include/param.h | 6 +++---
sys/arch/mvme68k/include/param.h | 6 +++---
sys/arch/news68k/include/param.h | 6 +++---
sys/arch/next68k/include/param.h | 6 +++---
sys/arch/sh3/include/param.h | 6 +++---
sys/arch/sparc/include/param.h | 6 +++---
sys/arch/sun2/include/param.h | 6 +++---
sys/arch/sun3/include/param.h | 6 +++---
sys/arch/x68k/include/param.h | 6 +++---
sys/kern/subr_vmem.c | 6 +++---
sys/kern/uipc_mbuf.c | 6 +++---
sys/uvm/uvm_km.c | 6 +++---
22 files changed, 65 insertions(+), 63 deletions(-)
diffs (truncated from 458 to 300 lines):
diff -r 0183446faf73 -r f1f9dc195482 sys/arch/alpha/include/param.h
--- a/sys/arch/alpha/include/param.h Fri Feb 10 16:57:44 2012 +0000
+++ b/sys/arch/alpha/include/param.h Fri Feb 10 17:35:47 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.40 2012/01/24 20:03:36 christos Exp $ */
+/* $NetBSD: param.h,v 1.41 2012/02/10 17:35:50 para Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -92,9 +92,10 @@
/*
* Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized
* logical pages.
+ * No enforced maximum on alpha
*/
-#define NKMEMPAGES_MIN_DEFAULT ((8 * 1024 * 1024) >> PAGE_SHIFT)
-#define NKMEMPAGES_MAX_DEFAULT ((128 * 1024 * 1024) >> PAGE_SHIFT)
+#define NKMEMPAGES_MIN_DEFAULT ((16 * 1024 * 1024) >> PAGE_SHIFT)
+#define NKMEMPAGES_MAX_UNLIMITED 1
/*
* Mach derived conversion macros
diff -r 0183446faf73 -r f1f9dc195482 sys/arch/amiga/include/param.h
--- a/sys/arch/amiga/include/param.h Fri Feb 10 16:57:44 2012 +0000
+++ b/sys/arch/amiga/include/param.h Fri Feb 10 17:35:47 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.48 2011/02/08 20:20:08 rmind Exp $ */
+/* $NetBSD: param.h,v 1.49 2012/02/10 17:35:49 para Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -60,7 +60,7 @@
* Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized
* logical pages.
*/
-#define NKMEMPAGES_MIN_DEFAULT ((3 * 1024 * 1024) >> PAGE_SHIFT)
+#define NKMEMPAGES_MIN_DEFAULT ((8 * 1024 * 1024) >> PAGE_SHIFT)
#define NKMEMPAGES_MAX_DEFAULT ((128 * 1024 * 1024) >> PAGE_SHIFT)
#ifdef _KERNEL
diff -r 0183446faf73 -r f1f9dc195482 sys/arch/atari/include/param.h
--- a/sys/arch/atari/include/param.h Fri Feb 10 16:57:44 2012 +0000
+++ b/sys/arch/atari/include/param.h Fri Feb 10 17:35:47 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.34 2011/02/08 20:20:10 rmind Exp $ */
+/* $NetBSD: param.h,v 1.35 2012/02/10 17:35:49 para Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -60,8 +60,8 @@
* Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized
* logical pages.
*/
-#define NKMEMPAGES_MIN_DEFAULT ((3 * 1024 * 1024) >> PAGE_SHIFT)
-#define NKMEMPAGES_MAX_DEFAULT ((3 * 1024 * 1024) >> PAGE_SHIFT)
+#define NKMEMPAGES_MIN_DEFAULT ((8 * 1024 * 1024) >> PAGE_SHIFT)
+#define NKMEMPAGES_MAX_DEFAULT ((128 * 1024 * 1024) >> PAGE_SHIFT)
#ifdef _KERNEL
diff -r 0183446faf73 -r f1f9dc195482 sys/arch/cesfic/include/param.h
--- a/sys/arch/cesfic/include/param.h Fri Feb 10 16:57:44 2012 +0000
+++ b/sys/arch/cesfic/include/param.h Fri Feb 10 17:35:47 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.11 2011/02/08 20:20:10 rmind Exp $ */
+/* $NetBSD: param.h,v 1.12 2012/02/10 17:35:49 para Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -69,8 +69,8 @@
* Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized
* logical pages.
*/
-#define NKMEMPAGES_MIN_DEFAULT ((3 * 1024 * 1024) >> PAGE_SHIFT)
-#define NKMEMPAGES_MAX_DEFAULT ((3 * 1024 * 1024) >> PAGE_SHIFT)
+#define NKMEMPAGES_MIN_DEFAULT ((8 * 1024 * 1024) >> PAGE_SHIFT)
+#define NKMEMPAGES_MAX_DEFAULT ((128 * 1024 * 1024) >> PAGE_SHIFT)
/*
* Interrupt glue.
diff -r 0183446faf73 -r f1f9dc195482 sys/arch/hp300/include/param.h
--- a/sys/arch/hp300/include/param.h Fri Feb 10 16:57:44 2012 +0000
+++ b/sys/arch/hp300/include/param.h Fri Feb 10 17:35:47 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.52 2011/02/08 20:20:13 rmind Exp $ */
+/* $NetBSD: param.h,v 1.53 2012/02/10 17:35:49 para Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -60,8 +60,8 @@
* Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized
* logical pages.
*/
-#define NKMEMPAGES_MIN_DEFAULT ((6 * 1024 * 1024) >> PAGE_SHIFT)
-#define NKMEMPAGES_MAX_DEFAULT ((8 * 1024 * 1024) >> PAGE_SHIFT)
+#define NKMEMPAGES_MIN_DEFAULT ((8 * 1024 * 1024) >> PAGE_SHIFT)
+#define NKMEMPAGES_MAX_DEFAULT ((128 * 1024 * 1024) >> PAGE_SHIFT)
#if defined(_KERNEL) && !defined(_LOCORE)
#include <machine/intr.h>
diff -r 0183446faf73 -r f1f9dc195482 sys/arch/hppa/include/param.h
--- a/sys/arch/hppa/include/param.h Fri Feb 10 16:57:44 2012 +0000
+++ b/sys/arch/hppa/include/param.h Fri Feb 10 17:35:47 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.18 2012/02/04 17:56:16 para Exp $ */
+/* $NetBSD: param.h,v 1.19 2012/02/10 17:35:49 para Exp $ */
/* $OpenBSD: param.h,v 1.12 2001/07/06 02:07:41 provos Exp $ */
@@ -83,7 +83,7 @@
* Size of kernel malloc arena in logical pages
*/
#define NKMEMPAGES_MIN_DEFAULT ((16 * 1024 * 1024) >> PAGE_SHIFT)
-#define NKMEMPAGES_MAX_DEFAULT ((128 * 1024 * 1024) >> PAGE_SHIFT)
+#define NKMEMPAGES_MAX_DEFAULT ((256 * 1024 * 1024) >> PAGE_SHIFT)
/*
* Mach derived conversion macros
diff -r 0183446faf73 -r f1f9dc195482 sys/arch/i386/include/param.h
--- a/sys/arch/i386/include/param.h Fri Feb 10 16:57:44 2012 +0000
+++ b/sys/arch/i386/include/param.h Fri Feb 10 17:35:47 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.75 2012/02/04 17:56:16 para Exp $ */
+/* $NetBSD: param.h,v 1.76 2012/02/10 17:35:49 para Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -128,8 +128,8 @@
* Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized
* logical pages.
*/
-#define NKMEMPAGES_MIN_DEFAULT ((8 * 1024 * 1024) >> PAGE_SHIFT)
-#define NKMEMPAGES_MAX_DEFAULT ((280 * 1024 * 1024) >> PAGE_SHIFT)
+#define NKMEMPAGES_MIN_DEFAULT ((16 * 1024 * 1024) >> PAGE_SHIFT)
+#define NKMEMPAGES_MAX_DEFAULT ((360 * 1024 * 1024) >> PAGE_SHIFT)
/*
* Mach derived conversion macros
diff -r 0183446faf73 -r f1f9dc195482 sys/arch/ia64/include/param.h
--- a/sys/arch/ia64/include/param.h Fri Feb 10 16:57:44 2012 +0000
+++ b/sys/arch/ia64/include/param.h Fri Feb 10 17:35:47 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.7 2012/01/24 20:03:37 christos Exp $ */
+/* $NetBSD: param.h,v 1.8 2012/02/10 17:35:49 para Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -103,9 +103,10 @@
/*
* Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized
* logical pages.
+ * No enforced maxmimum an ia64
*/
-#define NKMEMPAGES_MIN_DEFAULT ((12 * 1024 * 1024) >> PAGE_SHIFT)
-#define NKMEMPAGES_MAX_DEFAULT ((128 * 1024 * 1024) >> PAGE_SHIFT)
+#define NKMEMPAGES_MIN_DEFAULT ((32 * 1024 * 1024) >> PAGE_SHIFT)
+#define NKMEMPAGES_MAX_UNLIMITED 1
/*
* Mach derived conversion macros
diff -r 0183446faf73 -r f1f9dc195482 sys/arch/luna68k/include/param.h
--- a/sys/arch/luna68k/include/param.h Fri Feb 10 16:57:44 2012 +0000
+++ b/sys/arch/luna68k/include/param.h Fri Feb 10 17:35:47 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.12 2011/11/05 15:33:18 tsutsui Exp $ */
+/* $NetBSD: param.h,v 1.13 2012/02/10 17:35:48 para Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -61,8 +61,8 @@
* Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized
* logical pages.
*/
-#define NKMEMPAGES_MIN_DEFAULT ((3 * 1024 * 1024) >> PAGE_SHIFT)
-#define NKMEMPAGES_MAX_DEFAULT ((3 * 1024 * 1024) >> PAGE_SHIFT)
+#define NKMEMPAGES_MIN_DEFAULT ((8 * 1024 * 1024) >> PAGE_SHIFT)
+#define NKMEMPAGES_MAX_DEFAULT ((128 * 1024 * 1024) >> PAGE_SHIFT)
#include <machine/intr.h>
diff -r 0183446faf73 -r f1f9dc195482 sys/arch/mac68k/include/param.h
--- a/sys/arch/mac68k/include/param.h Fri Feb 10 16:57:44 2012 +0000
+++ b/sys/arch/mac68k/include/param.h Fri Feb 10 17:35:47 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.44 2011/02/08 20:20:18 rmind Exp $ */
+/* $NetBSD: param.h,v 1.45 2012/02/10 17:35:48 para Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -100,7 +100,7 @@
* Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized
* logical pages.
*/
-#define NKMEMPAGES_MIN_DEFAULT ((3 * 1024 * 1024) >> PAGE_SHIFT)
+#define NKMEMPAGES_MIN_DEFAULT ((8 * 1024 * 1024) >> PAGE_SHIFT)
#define NKMEMPAGES_MAX_DEFAULT ((128 * 1024 * 1024) >> PAGE_SHIFT)
#include <machine/psl.h>
diff -r 0183446faf73 -r f1f9dc195482 sys/arch/macppc/include/param.h
--- a/sys/arch/macppc/include/param.h Fri Feb 10 16:57:44 2012 +0000
+++ b/sys/arch/macppc/include/param.h Fri Feb 10 17:35:47 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.18 2011/07/28 01:24:31 macallan Exp $ */
+/* $NetBSD: param.h,v 1.19 2012/02/10 17:35:48 para Exp $ */
/*-
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -50,8 +50,8 @@
* Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized
* logical pages.
*/
-#define NKMEMPAGES_MIN_DEFAULT ((8 * 1024 * 1024) >> PAGE_SHIFT)
-#define NKMEMPAGES_MAX_DEFAULT ((48 * 1024 * 1024) >> PAGE_SHIFT)
+#define NKMEMPAGES_MIN_DEFAULT ((16 * 1024 * 1024) >> PAGE_SHIFT)
+#define NKMEMPAGES_MAX_DEFAULT ((256 * 1024 * 1024) >> PAGE_SHIFT)
#endif /* _KERNEL && !_MODULE */
diff -r 0183446faf73 -r f1f9dc195482 sys/arch/mvme68k/include/param.h
--- a/sys/arch/mvme68k/include/param.h Fri Feb 10 16:57:44 2012 +0000
+++ b/sys/arch/mvme68k/include/param.h Fri Feb 10 17:35:47 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.32 2011/02/08 20:20:20 rmind Exp $ */
+/* $NetBSD: param.h,v 1.33 2012/02/10 17:35:48 para Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -67,8 +67,8 @@
* Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized
* logical pages.
*/
-#define NKMEMPAGES_MIN_DEFAULT ((4 * 1024 * 1024) >> PAGE_SHIFT)
-#define NKMEMPAGES_MAX_DEFAULT ((6 * 1024 * 1024) >> PAGE_SHIFT)
+#define NKMEMPAGES_MIN_DEFAULT ((16 * 1024 * 1024) >> PAGE_SHIFT)
+#define NKMEMPAGES_MAX_DEFAULT ((128 * 1024 * 1024) >> PAGE_SHIFT)
#if defined(_KERNEL) && !defined(_LOCORE)
extern void _delay(unsigned int);
diff -r 0183446faf73 -r f1f9dc195482 sys/arch/news68k/include/param.h
--- a/sys/arch/news68k/include/param.h Fri Feb 10 16:57:44 2012 +0000
+++ b/sys/arch/news68k/include/param.h Fri Feb 10 17:35:47 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.16 2011/02/08 20:20:20 rmind Exp $ */
+/* $NetBSD: param.h,v 1.17 2012/02/10 17:35:48 para Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -61,8 +61,8 @@
* Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized
* logical pages.
*/
-#define NKMEMPAGES_MIN_DEFAULT ((3 * 1024 * 1024) >> PAGE_SHIFT)
-#define NKMEMPAGES_MAX_DEFAULT ((4 * 1024 * 1024) >> PAGE_SHIFT)
+#define NKMEMPAGES_MIN_DEFAULT ((16 * 1024 * 1024) >> PAGE_SHIFT)
+#define NKMEMPAGES_MAX_DEFAULT ((128 * 1024 * 1024) >> PAGE_SHIFT)
#if defined(_KERNEL) && !defined(_LOCORE)
#include <machine/intr.h>
diff -r 0183446faf73 -r f1f9dc195482 sys/arch/next68k/include/param.h
--- a/sys/arch/next68k/include/param.h Fri Feb 10 16:57:44 2012 +0000
+++ b/sys/arch/next68k/include/param.h Fri Feb 10 17:35:47 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.11 2011/02/08 20:20:21 rmind Exp $ */
+/* $NetBSD: param.h,v 1.12 2012/02/10 17:35:48 para Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -63,8 +63,8 @@
* Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized
* logical pages.
*/
-#define NKMEMPAGES_MIN_DEFAULT ((4 * 1024 * 1024) >> PAGE_SHIFT)
-#define NKMEMPAGES_MAX_DEFAULT ((4 * 1024 * 1024) >> PAGE_SHIFT)
+#define NKMEMPAGES_MIN_DEFAULT ((16 * 1024 * 1024) >> PAGE_SHIFT)
+#define NKMEMPAGES_MAX_DEFAULT ((128 * 1024 * 1024) >> PAGE_SHIFT)
#if !defined(_LOCORE)
#define delay(us) _delay((us) << 8)
diff -r 0183446faf73 -r f1f9dc195482 sys/arch/sh3/include/param.h
--- a/sys/arch/sh3/include/param.h Fri Feb 10 16:57:44 2012 +0000
+++ b/sys/arch/sh3/include/param.h Fri Feb 10 17:35:47 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.22 2012/01/24 20:03:37 christos Exp $ */
+/* $NetBSD: param.h,v 1.23 2012/02/10 17:35:48 para Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc. All rights reserved.
@@ -93,7 +93,7 @@
* Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized
* logical pages.
*/
-#define NKMEMPAGES_MIN_DEFAULT ((6 * 1024 * 1024) >> PAGE_SHIFT)
-#define NKMEMPAGES_MAX_DEFAULT ((6 * 1024 * 1024) >> PAGE_SHIFT)
+#define NKMEMPAGES_MIN_DEFAULT ((16 * 1024 * 1024) >> PAGE_SHIFT)
+#define NKMEMPAGES_MAX_DEFAULT ((128 * 1024 * 1024) >> PAGE_SHIFT)
#endif /* !_SH3_PARAM_H_ */
diff -r 0183446faf73 -r f1f9dc195482 sys/arch/sparc/include/param.h
--- a/sys/arch/sparc/include/param.h Fri Feb 10 16:57:44 2012 +0000
+++ b/sys/arch/sparc/include/param.h Fri Feb 10 17:35:47 2012 +0000
Home |
Main Index |
Thread Index |
Old Index