提交 e5a9ef55 编写于 作者: B Bruce Momjian

Add docs about OOM killer.

lst_hoe01@kwsoft.de
上级 3e4c6b54
<!-- $PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.387 2007/12/16 10:17:13 momjian Exp $ --> <!-- $PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.388 2007/12/16 11:22:33 momjian Exp $ -->
<chapter Id="runtime"> <chapter Id="runtime">
<title>Operating System Environment</title> <title>Operating System Environment</title>
...@@ -1258,8 +1258,10 @@ Out of Memory: Killed process 12345 (postgres). ...@@ -1258,8 +1258,10 @@ Out of Memory: Killed process 12345 (postgres).
kernel's behavior so that it will not <quote>overcommit</> memory. kernel's behavior so that it will not <quote>overcommit</> memory.
Although this setting will not prevent the OOM killer from Although this setting will not prevent the OOM killer from
invoking altogether, it will lower the chances significantly and invoking altogether, it will lower the chances significantly and
will therefore lead to more robust system behavior. This is done will therefore lead to more robust system behavior. (It might also
by selecting strict overcommit mode via <command>sysctl</command>: cause fork() to fail when the machine appears to have available
memory.) This is done by selecting strict overcommit mode via
<command>sysctl</command>:
<programlisting> <programlisting>
sysctl -w vm.overcommit_memory=2 sysctl -w vm.overcommit_memory=2
</programlisting> </programlisting>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册