summaryrefslogtreecommitdiffstats
path: root/sys/sys/msgbuf.h
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2005-01-01 21:49:20 +0000
committerobrien <obrien@FreeBSD.org>2005-01-01 21:49:20 +0000
commitb4ead832425787b1637b9001a0eff29ab8fbb4b1 (patch)
tree57374241c6fa417fa6eeb9506ef34d8044d2a6a2 /sys/sys/msgbuf.h
parente6938cd35d0f3206663c11e02de0c50acddbe157 (diff)
downloadFreeBSD-src-b4ead832425787b1637b9001a0eff29ab8fbb4b1.zip
FreeBSD-src-b4ead832425787b1637b9001a0eff29ab8fbb4b1.tar.gz
Increase the message buffer size on AMD64. Such machines can have a lot
of devices in them, and aren't run with only 64MB of RAM.
Diffstat (limited to 'sys/sys/msgbuf.h')
-rw-r--r--sys/sys/msgbuf.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/msgbuf.h b/sys/sys/msgbuf.h
index b5e7f44..0517384 100644
--- a/sys/sys/msgbuf.h
+++ b/sys/sys/msgbuf.h
@@ -68,8 +68,12 @@ int msgbuf_peekbytes(struct msgbuf *mbp, char *buf, int buflen,
void msgbuf_reinit(struct msgbuf *mbp, void *ptr, int size);
#ifndef MSGBUF_SIZE
+#ifdef __amd64__
+#define MSGBUF_SIZE (32768 * 2)
+#else
#define MSGBUF_SIZE 32768
#endif
+#endif
#endif /* KERNEL */
#endif /* !_SYS_MSGBUF_H_ */
OpenPOWER on IntegriCloud