|
1 | 1 | <!-- |
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 $ |
3 | 3 | --> |
4 | 4 |
|
5 | 5 | <Chapter Id="runtime"> |
@@ -2780,6 +2780,16 @@ kernel.shmmax = 134217728 |
2780 | 2780 | <filename>/usr/src/linux/include/asm-<replaceable>xxx</>/shmpara |
2781 | 2781 | m.h</> and <filename>/usr/src/linux/include/linux/sem.h</>. |
2782 | 2782 | </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> |
2783 | 2793 | </listitem> |
2784 | 2794 | </varlistentry> |
2785 | 2795 |
|
|