Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
8e393fc5
Commit
8e393fc5
authored
May 02, 2001
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added mention of SHMALL and removed BSD/OS-specific table.
parent
4929d85e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
35 deletions
+25
-35
doc/src/sgml/runtime.sgml
doc/src/sgml/runtime.sgml
+25
-35
No files found.
doc/src/sgml/runtime.sgml
View file @
8e393fc5
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.
59 2001/05/01 03:00:28 tgl
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.
60 2001/05/02 17:04:53 momjian
Exp $
-->
<Chapter Id="runtime">
...
...
@@ -1449,7 +1449,7 @@ env PGOPTIONS='-c geqo=off' psql
<row>
<entry><varname>SHMMAX</></>
<entry>Maximum size of shared memory segment (bytes)</>
<entry>
512
kB + 8192 * buffers + extra ... infinity</entry>
<entry>
700
kB + 8192 * buffers + extra ... infinity</entry>
</row>
<row>
...
...
@@ -1458,6 +1458,12 @@ env PGOPTIONS='-c geqo=off' psql
<entry>1 (at most about 256 kB)</>
</row>
<row>
<entry><varname>SHMALL</></>
<entry>Total amount of shared memory available (bytes or pages)</>
<entry>if bytes, same as SHMMAX; if pages, ceil(SHMMAX/PAGE_SIZE)</>
</row>
<row>
<entry><varname>SHMSEG</></>
<entry>Maximum number of shared memory segments per process</>
...
...
@@ -1588,42 +1594,37 @@ env PGOPTIONS='-c geqo=off' psql
<para>
By default, only 4 MB of shared memory is supported. Keep in
mind that shared memory is not pageable; it is locked in RAM.
The shared memory parameters are:
<programlisting>
#define SHMMAX /* max shared memory segment size (bytes) */
#define SHMMIN /* min shared memory segment size (bytes) */
#define SHMMNI /* max number of shared memory identifiers */
#define SHMSEG /* max shared memory segments per process */
#define SHMALL /* max amount of shared memory (pages) */
</programlisting>
To increase the number of buffers supported by the postmaster, add the
following to your kernel config file. A <varname>SHMALL</> value of 1024
represents 4MB of shared memory. Increase it accordingly:
To increase the number of shared buffers supported by the
postmaster, add the following to your kernel config file. A
<varname>SHMALL</> value of 1024 represents 4MB of shared
memory. The following increases the maximum shared memory area
to 32 MB:
<programlisting>
options "SHMALL=
4096
"
options "SHMALL=
8192
"
options "SHMMAX=\(SHMALL*PAGE_SIZE\)"
</programlisting>
</para>
</formalpara>
<para>
For those running 4.1 or later, just
recompile the kernel and
re
boot. For those running earlier releases, use
<application>bpatch</> to find the <varname>sysptsize</> valu
e
for the current kernel. This is computed dynamically at
bootup.
For those running 4.1 or later, just
make the above changes,
re
compile the kernel, and reboot. For those running earlier
releases, use <application>bpatch</> to find th
e
<varname>sysptsize</> value in the current kernel. This is
computed dynamically at
bootup.
<screen>
$ <userinput>bpatch -r sysptsize</>
<computeroutput>0x9 = 9</>
</screen>
Next, change <varname>SYSPTSIZE</> to a hard-coded value. Use
the bpatch value, plus add 1 for every additional 4 MB of
Next, add <varname>SYSPTSIZE</> as a hard-coded value in the
kernel config file. Increase the value you found using
<application>bpatch</>. Add 1 for every additional 4 MB of
shared memory you desire.
<programlisting>
options "SYSPTSIZE=1
3
"
options "SYSPTSIZE=1
6
"
</programlisting>
<varname>sysptsize</> can not be changed by sysctl
on the fly
.
<varname>sysptsize</> can not be changed by sysctl.
</para>
<formalpara>
...
...
@@ -1635,17 +1636,6 @@ options "SYSPTSIZE=13"
</para>
</formalpara>
<para>
The defaults are in <filename>/sys/sys/sem.h</>:
<programlisting>
#define SEMMNI 10 /* # of semaphore identifiers */
#define SEMMNS 60 /* # of semaphores in system */
#define SEMUME 10 /* max # of undo entries per process */
#define SEMMNU 30 /* # of undo structures in system */
</programlisting>
Set the values you want in your kernel config file, e.g.:
<programlisting>
options "SEMMNI=40"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment