@@ -2,18 +2,25 @@ This outlines how to increase the number of shared memory buffers
2
2
supported by BSD/OS. By default, only 4MB of shared memory is supported
3
3
by BSDI.
4
4
5
+ Keep in mind that shared memory is not pageable. It is locked in RAM.
6
+
5
7
Bruce Momjian (pgman@candle.pha.pa.us)
6
8
7
9
---------------------------------------------------------------------------
8
10
9
- First, increase SHMMAXPGS by 1024 for every additional 4MB of shared
11
+ Increase SHMMAXPGS by 1024 for every additional 4MB of shared
10
12
memory:
11
13
12
14
/sys/sys/shm.h:69:#define SHMMAXPGS 1024 /* max hardware pages...
13
15
14
16
The default setting of 1024 is for a maximum of 4MB of shared memory.
15
17
16
- Second, use bpatch to find the sysptsize value for the current kernel.
18
+ For those running 4.1 or later, just recompile the kernel and reboot.
19
+ For those running earlier releases, there are more steps outlined below.
20
+
21
+ ---------------------------------------------------------------------------
22
+
23
+ Use bpatch to find the sysptsize value for the current kernel.
17
24
This is computed dynamically at bootup.
18
25
19
26
$ bpatch -r sysptsize
@@ -25,7 +32,3 @@ plus add 1 for every additional 4MB of shared memory you desire.
25
32
/sys/i386/i386/i386_param.c:28:#define SYSPTSIZE 0 /* dynamically...
26
33
27
34
sysptsize can not be changed by sysctl on the fly.
28
-
29
- This should clearly be easier to do on BSDI. I will add a BSDI FAQ for
30
- PostgreSQL to cover this. One downside is that shared memory is not
31
- pageable. It is locked in RAM.
0 commit comments