From 924d85bbbfb4f69afd782f8bbb8cbcafa43d82e2 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 2 Jun 2000 02:28:13 +0000 Subject: [PATCH] Update faq's. --- doc/FAQ_BSDI | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 doc/FAQ_BSDI diff --git a/doc/FAQ_BSDI b/doc/FAQ_BSDI new file mode 100644 index 00000000000..0392f26ee7d --- /dev/null +++ b/doc/FAQ_BSDI @@ -0,0 +1,31 @@ +This outlines how to increase the number of shared memory buffers +supported by BSD/OS. By default, only 4MB of shared memory is supported +by BSDI. + +Bruce Momjian (pgman@candle.pha.pa.us) + +--------------------------------------------------------------------------- + +First, increase SHMMAXPGS by 1024 for every additional 4MB of shared +memory: + +/sys/sys/shm.h:69:#define SHMMAXPGS 1024 /* max hardware pages... + +The default setting of 1024 is for a maximum of 4MB of shared memory. + +Second, use bpatch to find the sysptsize value for the current kernel. +This is computed dynamically at bootup. + + $ bpatch -r sysptsize + 0x9 = 9 + +Next, change SYSPTSIZE to a hard-coded value. Use the bpatch value, +plus add 1 for every additional 4MB of shared memory you desire. + +/sys/i386/i386/i386_param.c:28:#define SYSPTSIZE 0 /* dynamically... + +sysptsize can not be changed by sysctl on the fly. + +This should clearly be easier to do on BSDI. I will add a BSDI FAQ for +PostgreSQL to cover this. One downside is that shared memory is not +pageable. It is locked in RAM. -- 2.39.5