LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-23-2006, 03:52 PM   #1
jrd
LQ Newbie
 
Registered: Dec 2001
Location: Philippines
Distribution: Slackware 10.2 / Zenwalk 2.4
Posts: 10

Rep: Reputation: 0
Post Linux memory management


Can anybody point me to anything i can read about how Linux manages the memory? ..how to set which apps it kills in very low memory instances. are there memory quotas(like disk quotas)?
 
Old 04-23-2006, 04:35 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
This Google search describes the behavior of the Out Of Memory Killer in Linux.
 
Old 04-23-2006, 06:01 PM   #3
jrd
LQ Newbie
 
Registered: Dec 2001
Location: Philippines
Distribution: Slackware 10.2 / Zenwalk 2.4
Posts: 10

Original Poster
Rep: Reputation: 0
now on the right track

aaahh, ic. was not using the right keywords in my search.
thank you.
 
Old 04-23-2006, 06:59 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,840

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
Begs the question "why do you care ???".

If the oom killer is being invoked you have bigger problems to chase. Simple (quick) fix is give it more swap - sure it's slow, but beats being killed.
If the issue recurs, fix the *real* problem - the memory consumption.
 
Old 04-24-2006, 12:56 PM   #5
jrd
LQ Newbie
 
Registered: Dec 2001
Location: Philippines
Distribution: Slackware 10.2 / Zenwalk 2.4
Posts: 10

Original Poster
Rep: Reputation: 0
curiosity. plain and simple.

right. i set aside swap space and added the right line to /etc/fstab but forgot to do a mkswap ..and, careless me, i didnt do a free to check.

i used up my memory to the brim the other day, and of the 5 apps i was running at that time, the one the i would have picked if i had the choice, died. i got curious as to how linux chooses what to kill.

im not a technical person, really, but a reading few more pages of how a tool works never hurt anybody.
 
Old 04-24-2006, 06:51 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,840

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
Quote:
Originally Posted by jrd
im not a technical person, really, but a reading few more pages of how a tool works never hurt anybody.
I have no argument with that - happy to encourage it.
Hopefully you found a link to the linux-mm article. Short and current; should help. Although the code itself is not that involved, and can be read fairly comfortably if you feel so inclined.
 
  


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
[Help!]linux,memory management,c/c++ kefeng.chen Programming 15 12-16-2006 07:43 PM
Advanced Linux memory management? ideasman Linux - Software 4 02-14-2006 01:18 AM
Regarding Memory management in Linux alfredhitchcock Programming 4 09-07-2004 04:20 AM
Linux Memory Management beatlelane Red Hat 5 10-04-2003 01:39 AM
linux memory management kb8doa Linux - Newbie 1 06-18-2003 11:36 AM


All times are GMT -5. The time now is 12:59 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration