Skip to content

Commit 8d2d92c

Browse files
committed
Document default Linux autocommit behavior, and show workaround.
1 parent b4117d8 commit 8d2d92c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

doc/src/sgml/runtime.sgml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.184 2003/06/11 22:13:21 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.185 2003/06/12 15:31:02 momjian Exp $
33
-->
44

55
<Chapter Id="runtime">
@@ -2780,6 +2780,16 @@ kernel.shmmax = 134217728
27802780
<filename>/usr/src/linux/include/asm-<replaceable>xxx</>/shmpara
27812781
m.h</> and <filename>/usr/src/linux/include/linux/sem.h</>.
27822782
</para>
2783+
2784+
<para>
2785+
Linux has poor default memory overcommit behavior. Rather than
2786+
failing if it can not reserve enough memory, it returns success,
2787+
but later fails when the memory can't be mapped and terminates
2788+
the application. To prevent unpredictable process termination, use:
2789+
<programlisting>
2790+
sysctl -w vm.overcommit_memory=3
2791+
</programlisting>
2792+
</para>
27832793
</listitem>
27842794
</varlistentry>
27852795

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy