Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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?

share|improve this question
    
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. –  Avery Payne Aug 12 '10 at 1:02
    
What is the benefit of disabling OOM killer ? –  user368507 Aug 3 '11 at 0:26
add comment

1 Answer

up vote 7 down vote accepted

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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