Skip to content

Commit bd29cb0

Browse files
committed
Update bsdi faq.
1 parent 3fe3acb commit bd29cb0

File tree

1 file changed

+22
-10
lines changed

1 file changed

+22
-10
lines changed

doc/FAQ_BSDI

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,39 @@
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.
1+
This outlines modifications to BSD/OS for running PostgreSQL:
42

5-
Keep in mind that shared memory is not pageable. It is locked in RAM.
3+
1) How to increase resource limits
4+
2) How to increase the number of shared memory buffers
65

7-
Bruce Momjian (pgman@candle.pha.pa.us)
6+
Bruce Momjian (pgman@candle.pha.pa.us) 2000-06-09
87

98
---------------------------------------------------------------------------
109

11-
Increase SHMMAXPGS by 1024 for every additional 4MB of shared
12-
memory:
10+
1) To increase the amount of malloc'ed memory and files opened by
11+
PostgreSQL, add this:
12+
13+
:datasize-cur=600M:\
14+
:openfiles-cur=256:
15+
16+
to your /etc/login.conf file.
17+
18+
---------------------------------------------------------------------------
19+
20+
2a) By default, only 4MB of shared memory is supported by BSDI. Keep in
21+
mind that shared memory is not pageable. It is locked in RAM.
22+
23+
To increase the number of buffers supported by the postmaseter, increase
24+
SHMMAXPGS by 1024 for every additional 4MB of shared memory:
1325

1426
/sys/sys/shm.h:69:#define SHMMAXPGS 1024 /* max hardware pages...
1527

1628
The default setting of 1024 is for a maximum of 4MB of shared memory.
1729

1830
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.
31+
For those running earlier releases, see step 2b.
2032

2133
---------------------------------------------------------------------------
2234

23-
Use bpatch to find the sysptsize value for the current kernel.
24-
This is computed dynamically at bootup.
35+
2b) For 4.01 and earlier, use bpatch to find the sysptsize value for
36+
the current kernel. This is computed dynamically at bootup.
2537

2638
$ bpatch -r sysptsize
2739
0x9 = 9

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