diff options
| author | Bruce Momjian <bruce@momjian.us> | 2003-01-11 05:04:14 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2003-01-11 05:04:14 +0000 |
| commit | 3cd7edfee0e49c74df648ffe07ce414ca3acf0ce (patch) | |
| tree | d40f6643b68c6f2f003dfc3a7d6b329e7a0ecfe6 /doc | |
| parent | ef581f0552b705e66e222316d92cfa283cceac49 (diff) | |
> > 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
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/src/sgml/runtime.sgml | 35 |
1 files changed, 25 insertions, 10 deletions
diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index 3f530f35784..34321cae52d 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -1,5 +1,5 @@ <!-- -$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"> @@ -380,11 +380,12 @@ FATAL 1: ShmemCreate: cannot create region <screen> IpcSemaphoreCreate: semget(key=5440026, num=16, 01600) failed: No space left on device </screen> - does <emphasis>not</emphasis> mean you've run out of disk space. It - means your kernel's limit on the number of System V semaphores is - smaller than the number <productname>PostgreSQL</productname> wants - to create. As above, you may be able to work around the problem by - starting the postmaster with a reduced number of allowed connections + does <emphasis>not</emphasis> mean you've run out of disk + space. It means your kernel's limit on the number of <systemitem + class="osname">System V</> semaphores is smaller than the number + <productname>PostgreSQL</productname> wants to create. As above, + 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 increase the kernel limit. </para> @@ -1838,8 +1839,21 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir' <listitem> <para> Sets the number of shared memory buffers used by the database - server. The default is 64. Each buffer is typically 8192 bytes. - This option can only be set at server start. + server. The default is 64. Each buffer is typically 8192 + 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> </listitem> </varlistentry> @@ -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> <listitem> <para> - Number of disk-page buffers in shared memory for WAL logging. - This option can only be set at server start. + Number of disk-page buffers in shared memory for WAL + logging. The default is 4. This option can only be set at + server start. </para> </listitem> </varlistentry> |
