LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 06-10-2008, 04:09 AM   #1
sudhi_naidu
LQ Newbie
 
Registered: Jun 2008
Posts: 7

Rep: Reputation: 0
Question disabling and enabling oom-kill option


Hi All,

Could you please let me know how to disable or enable oom-kill in RHEL --

In my system if do cat on /proc/sys/vm/oom-kill will give a result of "0". Not sure if "0" specifies whether oom-kill is disabled or enabled?

Also, if we enable it (change in proc), do we have reload the OS.

And lastly, what is the criteria on which "out of memory" killer chooses which processes to terminate ? ( any info or links )

I could not find exact info on this in google...

Thanks,
Sudheendra

Last edited by sudhi_naidu; 06-10-2008 at 04:57 AM.
 
Old 06-10-2008, 07:34 AM   #2
sudhi_naidu
LQ Newbie
 
Registered: Jun 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Hi,

Some more info ... I am running rhel 4 u4 ... kernel 2.6.9-55.3.ELsmp

oom-kill is "out of memory killer" process initiated in redhat linux when memory usage is high.

Thanks,
Sudheendra

Last edited by sudhi_naidu; 06-12-2008 at 01:23 AM.
 
Old 06-12-2008, 02:12 AM   #3
sudhi_naidu
LQ Newbie
 
Registered: Jun 2008
Posts: 7

Original Poster
Rep: Reputation: 0
*bump*

Any Ideas?? Anyone ??

Thanks,
Sudheendra
 
Old 06-13-2008, 06:35 AM   #4
sudhi_naidu
LQ Newbie
 
Registered: Jun 2008
Posts: 7

Original Poster
Rep: Reputation: 0
I think i got it ...

you can do it by

echo 0 > /proc/sys/vm/oom-kill

0 file disabling and 1 for enabling ...

Thanks anyways...
 
Old 06-13-2008, 07:26 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,268

Rep: Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028
Mmmm - this is a *bad* solution. Regardless of what you think of the concept of the oom_killer. Have a look at this. It is poosible to protect "loved ones", but probably won't help if low memory is the problem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enabling/Disabling Wireless Radio. How? citiz3n Linux - Wireless Networking 3 05-26-2008 07:56 PM
what process is allocating memory and causing oom-kill? thormk Linux - Server 3 04-22-2008 08:40 AM
disabling 1 boot loader, and enabling other itz2000 Linux - Newbie 9 10-21-2006 07:58 AM
oom kill, need suggestions bee2643 Linux - Newbie 7 08-08-2006 02:26 PM
oom-killer: How to set priorities to kill processes guarriman Linux - Security 1 01-31-2006 09:03 AM


All times are GMT -5. The time now is 02:46 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration