mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
Document default Linux autocommit behavior, and show workaround.
This commit is contained in:
parent
b4117d8b1b
commit
8d2d92c5f0
@ -1,5 +1,5 @@
|
|||||||
<!--
|
<!--
|
||||||
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.184 2003/06/11 22:13:21 momjian Exp $
|
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.185 2003/06/12 15:31:02 momjian Exp $
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<Chapter Id="runtime">
|
<Chapter Id="runtime">
|
||||||
@ -2780,6 +2780,16 @@ kernel.shmmax = 134217728
|
|||||||
<filename>/usr/src/linux/include/asm-<replaceable>xxx</>/shmpara
|
<filename>/usr/src/linux/include/asm-<replaceable>xxx</>/shmpara
|
||||||
m.h</> and <filename>/usr/src/linux/include/linux/sem.h</>.
|
m.h</> and <filename>/usr/src/linux/include/linux/sem.h</>.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Linux has poor default memory overcommit behavior. Rather than
|
||||||
|
failing if it can not reserve enough memory, it returns success,
|
||||||
|
but later fails when the memory can't be mapped and terminates
|
||||||
|
the application. To prevent unpredictable process termination, use:
|
||||||
|
<programlisting>
|
||||||
|
sysctl -w vm.overcommit_memory=3
|
||||||
|
</programlisting>
|
||||||
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user