Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit36289fb

Browse files
committed
Add BSDI readme
1 parent2b0956e commit36289fb

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)

[8]ページ先頭

©2009-2025 Movatter.jp