LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 06-13-2006, 01:52 PM   #1
LinuxGeek
Member
 
Registered: Jun 2002
Posts: 302

Rep: Reputation: 31
What happens when your system runs of RAM and swap?


I was wondering what happens if your system runs out of RAM and swap. Does the system hang or does the kernel kill the least used process or perhaps something else happens? I'm considering the scenario in which there is no buffer or caches because the processes themselves are taking up all the RAM and swap.
 
Old 06-13-2006, 03:04 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,813
Blog Entries: 54

Rep: Reputation: 2987Reputation: 2987Reputation: 2987Reputation: 2987Reputation: 2987Reputation: 2987Reputation: 2987Reputation: 2987Reputation: 2987Reputation: 2987Reputation: 2987
Does the system hang or does the kernel kill the least used process or perhaps something else happens?
Your kernel will invoke the dreaded OOM killer which will kill about anything it sees fit.

(* Look, there's a onehundred percent chance Something Else happens as well, so that's no question. The question is if it's synchronicity or not.)


I'm considering the scenario in which there is no buffer or caches because the processes themselves are taking up all the RAM and swap.
I use Monit to guard against that. If any process exceeds it's boundaries it's taken out in the field and shot. Of course Monit can do much more.
 
Old 06-16-2006, 03:56 PM   #3
LinuxGeek
Member
 
Registered: Jun 2002
Posts: 302

Original Poster
Rep: Reputation: 31
Thanks a lot for your reply unSpawn. I was considering using Monit myself. Just as a side note, do you believe monit is reliable enough to use in an enterprise environment running e-Commerce sites with Oracle RAC? Thanks for your help
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
190M of ram used when nothing runs Mufasa Linux - Software 7 11-19-2004 01:32 PM
Not using RAM and Swap much ? ruwach Linux - Hardware 2 06-11-2004 08:26 AM
No SWAP but all RAM!! hari_seldon99 Linux - General 3 01-13-2004 11:48 AM
why swap should be twice of RAM? whitefox Slackware 17 04-19-2003 03:51 PM
Swap and RAM ? mikeshn Linux - General 1 09-18-2002 10:33 PM


All times are GMT -5. The time now is 06:08 PM.

Main Menu
Advertisement
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