diff options
Diffstat (limited to 'doc/FAQ_BSDI')
-rw-r--r-- | doc/FAQ_BSDI | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/doc/FAQ_BSDI b/doc/FAQ_BSDI index 0392f26ee7d..ff00bc321b8 100644 --- a/doc/FAQ_BSDI +++ b/doc/FAQ_BSDI @@ -2,18 +2,25 @@ 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. +Keep in mind that shared memory is not pageable. It is locked in RAM. + Bruce Momjian (pgman@candle.pha.pa.us) --------------------------------------------------------------------------- -First, increase SHMMAXPGS by 1024 for every additional 4MB of shared +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. +For those running 4.1 or later, just recompile the kernel and reboot. +For those running earlier releases, there are more steps outlined below. + +--------------------------------------------------------------------------- + +Use bpatch to find the sysptsize value for the current kernel. This is computed dynamically at bootup. $ bpatch -r sysptsize @@ -25,7 +32,3 @@ 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. |