Geo Carncross wrote:
Daemons also run as root. Root-owned processes shouldn't be killed so
quickly by the OOM killer, so getting them killed by other means (say,
reasonable resource limits) is even more important.
The OOM Killer should be killed itself. I keep up with the PostgreSQL
lists and they *HIGHLY* recommend disabling the OOM killer. The section
16.4.3 for details:
http://www.postgresql.org/docs/current/static/kernel-resources.html#AEN18105
Basically their view of the OOM killer is that it's a very bad idea for
a server that you want to be reliable. Basically if you tell the Kernel
not to overcommit memory, the OOM killer becomes moot, but you better
have enough mem / swap space to handle your needs.
Matt