From 8d2d92c5f0169190e4963fb541340bc8c630b02f Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 12 Jun 2003 15:31:02 +0000 Subject: [PATCH] Document default Linux autocommit behavior, and show workaround. --- doc/src/sgml/runtime.sgml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index 27feffde8b..02befb8480 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -1,5 +1,5 @@ @@ -2780,6 +2780,16 @@ kernel.shmmax = 134217728 /usr/src/linux/include/asm-xxx/shmpara m.h and /usr/src/linux/include/linux/sem.h. + + + 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: + +sysctl -w vm.overcommit_memory=3 + + -- 2.11.0