Skip to content

Commit 36289fb

Browse files
committed
Add BSDI readme
1 parent 2b0956e commit 36289fb

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

doc/README.BSDI

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
This outlines how to increase the number of shared memory buffers
2+
supported by BSD/OS. By default, only 4MB of shared memory is supported
3+
by BSDI.
4+
5+
Bruce Momjian (pgman@candle.pha.pa.us)
6+
7+
---------------------------------------------------------------------------
8+
9+
First, increase SHMMAXPGS by 1024 for every additional 4MB of shared
10+
memory:
11+
12+
/sys/sys/shm.h:69:#define SHMMAXPGS 1024 /* max hardware pages...
13+
14+
The default setting of 1024 is for a maximum of 4MB of shared memory.
15+
16+
Second, use bpatch to find the sysptsize value for the current kernel.
17+
This is computed dynamically at bootup.
18+
19+
$ bpatch -r sysptsize
20+
0x9 = 9
21+
22+
Next, change SYSPTSIZE to a hard-coded value. Use the bpatch value,
23+
plus add 1 for every additional 4MB of shared memory you desire.
24+
25+
/sys/i386/i386/i386_param.c:28:#define SYSPTSIZE 0 /* dynamically...
26+
27+
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

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy