diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-12-08 22:13:21 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-12-08 22:13:21 +0000 |
commit | 39858923fcf0aae701035b9c2cf79817aa46ca3e (patch) | |
tree | ed686b490b3036699e7ec1154d21cb3f257fb46d /sys/arch/mips64 | |
parent | 04177b0d80706e28bc6958c41b89a38d3f13b897 (diff) |
Use a whole page for msgbuf if page size is larger than 4KB, instead of
the current 8KB.
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r-- | sys/arch/mips64/include/param.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/mips64/include/param.h b/sys/arch/mips64/include/param.h index 1d100b85c00..c8b265a0e94 100644 --- a/sys/arch/mips64/include/param.h +++ b/sys/arch/mips64/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.22 2009/12/07 19:05:57 miod Exp $ */ +/* $OpenBSD: param.h,v 1.23 2009/12/08 22:13:20 miod Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -83,7 +83,11 @@ */ #define NMBCLUSTERS 4096 /* map size, max cluster allocation */ +#if PAGE_SHIFT > 12 +#define MSGBUFSIZE PAGE_SIZE +#else #define MSGBUFSIZE 8192 +#endif /* Default malloc arena size */ #define NKMEMPAGES_MIN_DEFAULT ((8 * 1024 * 1024) >> PAGE_SHIFT) |