4MB which is far too low especially when the platform is able to run MP.
New limits are, amd64 = 256M; arm64, mips64, sparc64 = 64M; alpha, arm,
hppa, i386, powerpc = 32M; m88k, sh = 8M
Still rather conservative numbers but much better than before. At least
some hangs of arm64 build boxes was caused by this.
OK kettenis@, visa@
-/* $OpenBSD: param.h,v 1.41 2017/06/05 17:49:06 deraadt Exp $ */
+/* $OpenBSD: param.h,v 1.42 2018/09/14 13:58:20 claudio Exp $ */
/*
* Copyright (c) 1988 University of Utah.
#define USPACE (UPAGES * PAGE_SIZE) /* total size of u-area */
#define USPACE_ALIGN 0 /* u-area alignment 0-none */
-#define NMBCLUSTERS (16 * 1024) /* max cluster allocation */
+#define NMBCLUSTERS (32 * 1024) /* max cluster allocation */
#ifndef MSGBUFSIZE
#define MSGBUFSIZE (2 * PAGE_SIZE) /* default message buffer size */
-/* $OpenBSD: param.h,v 1.23 2016/09/03 14:25:27 bluhm Exp $ */
+/* $OpenBSD: param.h,v 1.24 2018/09/14 13:58:20 claudio Exp $ */
/*
* Copyright (c) 1994,1995 Mark Brinicombe.
#define USPACE (UPAGES * PAGE_SIZE) /* total size of u-area */
#define USPACE_ALIGN 0 /* u-area alignment 0-none */
-#define NMBCLUSTERS (16 * 1024) /* max cluster allocation */
+#define NMBCLUSTERS (32 * 1024) /* max cluster allocation */
/*
* Maximum size of the kernel malloc arena in PAGE_SIZE-sized
-/* $OpenBSD: param.h,v 1.5 2018/09/08 20:12:54 claudio Exp $ */
+/* $OpenBSD: param.h,v 1.6 2018/09/14 13:58:20 claudio Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
#define USPACE (UPAGES * PAGE_SIZE) /* total size of u-area */
#define USPACE_ALIGN 0 /* u-area alignment 0-none */
-#define NMBCLUSTERS (256 * 1024) /* max cluster allocation */
+#define NMBCLUSTERS (64 * 1024) /* max cluster allocation */
#ifndef MSGBUFSIZE
#define MSGBUFSIZE (16 * PAGE_SIZE) /* default message buffer size */
-/* $OpenBSD: param.h,v 1.46 2016/09/03 14:25:27 bluhm Exp $ */
+/* $OpenBSD: param.h,v 1.47 2018/09/14 13:58:20 claudio Exp $ */
/*
* Copyright (c) 1988-1994, The University of Utah and
#define USPACE (UPAGES * PAGE_SIZE) /* total size of u-area */
#define USPACE_ALIGN 0 /* u-area alignment 0-none */
-#define NMBCLUSTERS (4 * 1024) /* max cluster allocation */
+#define NMBCLUSTERS (32 * 1024) /* max cluster allocation */
#ifndef MSGBUFSIZE
#define MSGBUFSIZE (2 * PAGE_SIZE) /* default message buffer size */
-/* $OpenBSD: param.h,v 1.20 2016/09/03 14:25:27 bluhm Exp $ */
+/* $OpenBSD: param.h,v 1.21 2018/09/14 13:58:20 claudio Exp $ */
/*
* Copyright (c) 1999 Steve Murphree, Jr.
#define USPACE (UPAGES * PAGE_SIZE) /* total size of u-area */
#define USPACE_ALIGN 0 /* u-area alignment 0-none */
-#define NMBCLUSTERS (4 * 1024) /* max cluster allocation */
+#define NMBCLUSTERS (8 * 1024) /* max cluster allocation */
#ifndef MSGBUFSIZE
#define MSGBUFSIZE PAGE_SIZE
-/* $OpenBSD: param.h,v 1.35 2016/09/03 14:25:27 bluhm Exp $ */
+/* $OpenBSD: param.h,v 1.36 2018/09/14 13:58:20 claudio Exp $ */
/*
* Copyright (c) 1988 University of Utah.
#define USPACE_ALIGN (2 * PAGE_SIZE) /* align to an even TLB boundary */
#endif
-#define NMBCLUSTERS (8 * 1024) /* max cluster allocation */
+#define NMBCLUSTERS (64 * 1024) /* max cluster allocation */
#ifndef MSGBUFSIZE
#if PAGE_SHIFT > 12
-/* $OpenBSD: param.h,v 1.37 2016/09/03 14:25:27 bluhm Exp $ */
+/* $OpenBSD: param.h,v 1.38 2018/09/14 13:58:20 claudio Exp $ */
/*-
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
#define USPACE (UPAGES * PAGE_SIZE) /* total size of u-area */
#define USPACE_ALIGN 0 /* u-area alignment 0-none */
-#define NMBCLUSTERS (4 * 1024) /* max cluster allocation */
+#define NMBCLUSTERS (32 * 1024) /* max cluster allocation */
/*
* Maximum size of the kernel malloc arena in PAGE_SIZE-sized
-/* $OpenBSD: param.h,v 1.12 2016/09/03 14:25:27 bluhm Exp $ */
+/* $OpenBSD: param.h,v 1.13 2018/09/14 13:58:20 claudio Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc. All rights reserved.
#ifdef _KERNEL
-#define NMBCLUSTERS (4 * 1024) /* max cluster allocation */
+#define NMBCLUSTERS (8 * 1024) /* max cluster allocation */
#ifndef MSGBUFSIZE
#define MSGBUFSIZE PAGE_SIZE /* default message buffer size */
-/* $OpenBSD: param.h,v 1.40 2016/09/03 14:25:27 bluhm Exp $ */
+/* $OpenBSD: param.h,v 1.41 2018/09/14 13:58:20 claudio Exp $ */
/*
* Copyright (c) 1992, 1993
#define USPACE (UPAGES * PAGE_SIZE) /* total size of u-area */
#define USPACE_ALIGN 0 /* u-area alignment 0-none */
-#define NMBCLUSTERS (16 * 1024) /* max cluster allocation */
+#define NMBCLUSTERS (64 * 1024) /* max cluster allocation */
#ifndef MSGBUFSIZE
#define MSGBUFSIZE (1 * PAGE_SIZE)