6

I have Linux machine dedicated to serving static contents and PHP pages with Apache. Apache also work as a reverse proxy in a subdomain. I moved the PostgreSQL database to another Linux machine.

Is it safe to disable the OOM killer in the kernel?

2
  • Three words: add more RAM. There's also another variant of this: add more swap. Pushing your machine to the limit of its abilities will always cause grief, regardless of what the OS running happens to be. Aug 12, 2010 at 1:02
  • What is the benefit of disabling OOM killer ?
    – user368507
    Aug 3, 2011 at 0:26

1 Answer 1

7

Probably not.

If the OOM killer is running then it is likely that the OOM killer needs to be run to avoid the machine simple grinding to a halt as nothing, even the kernel, can allocate new memory if needed. The OOM killer exists because it is generally better to have some services fall over due to the killer than the whole machine to fall off the face of the 'net.

If you see the OOM killer in action with any regularity then you should either reconfigure the services on the machine to use less RAM, or you may need to add more RAM to the machine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.