Commit 3cd7edfe authored by Bruce Momjian's avatar Bruce Momjian

> > This patch improves the documentation for the shared_buffers GUC param.

>
> I'd suggest that the runtime.sgml description explicitly say "values of
> at least a few thousand are recommended for production installations".

Neil Conway
parent ef581f05
<!-- <!--
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.165 2002/12/27 14:06:34 momjian Exp $ $Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.166 2003/01/11 05:04:14 momjian Exp $
--> -->
<Chapter Id="runtime"> <Chapter Id="runtime">
...@@ -380,11 +380,12 @@ FATAL 1: ShmemCreate: cannot create region ...@@ -380,11 +380,12 @@ FATAL 1: ShmemCreate: cannot create region
<screen> <screen>
IpcSemaphoreCreate: semget(key=5440026, num=16, 01600) failed: No space left on device IpcSemaphoreCreate: semget(key=5440026, num=16, 01600) failed: No space left on device
</screen> </screen>
does <emphasis>not</emphasis> mean you've run out of disk space. It does <emphasis>not</emphasis> mean you've run out of disk
means your kernel's limit on the number of System V semaphores is space. It means your kernel's limit on the number of <systemitem
smaller than the number <productname>PostgreSQL</productname> wants class="osname">System V</> semaphores is smaller than the number
to create. As above, you may be able to work around the problem by <productname>PostgreSQL</productname> wants to create. As above,
starting the postmaster with a reduced number of allowed connections you may be able to work around the problem by starting the
postmaster with a reduced number of allowed connections
(<option>-N</option> switch), but you'll eventually want to (<option>-N</option> switch), but you'll eventually want to
increase the kernel limit. increase the kernel limit.
</para> </para>
...@@ -1838,8 +1839,21 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir' ...@@ -1838,8 +1839,21 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir'
<listitem> <listitem>
<para> <para>
Sets the number of shared memory buffers used by the database Sets the number of shared memory buffers used by the database
server. The default is 64. Each buffer is typically 8192 bytes. server. The default is 64. Each buffer is typically 8192
This option can only be set at server start. bytes. This must be greater than 16, as well as at least twice
the value of <varname>MAX_CONNECTIONS</varname>; however, a
higher value can often improve performance on modern
machines. Values of at least a few thousand are recommended
for production installations. This option can only be set at
server start.
</para>
<para>
Increasing this parameter may cause <productname>PostgreSQL</>
to request more <systemitem class="osname">System V</> shared
memory than your operating system's default configuration
allows. See <xref linkend="sysvipc"> for information on how to
adjust these parameters, if necessary.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
...@@ -2165,8 +2179,9 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir' ...@@ -2165,8 +2179,9 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir'
<term><varname>WAL_BUFFERS</varname> (<type>integer</type>)</term> <term><varname>WAL_BUFFERS</varname> (<type>integer</type>)</term>
<listitem> <listitem>
<para> <para>
Number of disk-page buffers in shared memory for WAL logging. Number of disk-page buffers in shared memory for WAL
This option can only be set at server start. logging. The default is 4. This option can only be set at
server start.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
# #
# Shared Memory Size # Shared Memory Size
# #
#shared_buffers = 64 # 2*max_connections, min 16, typically 8KB each #shared_buffers = 64 # at least 2*max_connections, min 16, 8KB each
#max_fsm_relations = 1000 # min 10, fsm is free space map, ~40 bytes #max_fsm_relations = 1000 # min 10, fsm is free space map, ~40 bytes
#max_fsm_pages = 10000 # min 1000, fsm is free space map, ~6 bytes #max_fsm_pages = 10000 # min 1000, fsm is free space map, ~6 bytes
#max_locks_per_transaction = 64 # min 10 #max_locks_per_transaction = 64 # min 10
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment