LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-28-2005, 03:22 PM   #1
time112852
Member
 
Registered: Aug 2003
Location: Pennsylvania, USA
Distribution: Gentoo 2.6.30
Posts: 92

Rep: Reputation: 15
memory low ??


I have web server that is a 850Mhz celeron (i didnt need anything powerful) with 256mb of RAM, a 40gb hdd and a 160gb hdd. When I boot the computer up from a cold start and i log in using ssh and do a cat /proc/meminfo, it says that the computer has 128mb of free ram but then after about a day it will drop down to 4mb of available memory. What could be eating up the available ram? Would apache be doing it? here is a log of dmesg and ps aux.

dmesg log

ps aux log


Is there anything i could get rid of to speed up the server and free up some ram?

Last edited by time112852; 09-28-2005 at 03:24 PM.
 
Old 09-28-2005, 03:25 PM   #2
debianmike
Member
 
Registered: Sep 2005
Posts: 115

Rep: Reputation: 15
look into top and free and ps -ef|more.....that will tell you what is using what memory.

Specifically, in top look at the +/- buffers "free" column...that will tell you how much ram is actually availible.
 
Old 09-28-2005, 03:29 PM   #3
time112852
Member
 
Registered: Aug 2003
Location: Pennsylvania, USA
Distribution: Gentoo 2.6.30
Posts: 92

Original Poster
Rep: Reputation: 15
top and free are both telling me that i have 4200kb of free memory out of 256712kb
 
Old 09-28-2005, 03:45 PM   #4
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
i only have 8MB free.




how much swap is used? if none or small amountt, you are okay. linux uses memory differently than windows. nothing to worry about.
 
Old 09-28-2005, 04:08 PM   #5
objorkum
Member
 
Registered: Aug 2003
Location: Norway
Distribution: Slackware 10.0
Posts: 231

Rep: Reputation: 30
Use this command:

Code:
free -m
The numbers you should care about is "-/+ buffers/cache"

It's normal that things get cached.

Unused RAM is wasted RAM, and that's how GNU/Linux thinks too.
 
Old 09-28-2005, 06:16 PM   #6
time112852
Member
 
Registered: Aug 2003
Location: Pennsylvania, USA
Distribution: Gentoo 2.6.30
Posts: 92

Original Poster
Rep: Reputation: 15
but using up a lot of ram slows the machine down greatly doesnt it?
 
Old 09-28-2005, 07:48 PM   #7
time112852
Member
 
Registered: Aug 2003
Location: Pennsylvania, USA
Distribution: Gentoo 2.6.30
Posts: 92

Original Poster
Rep: Reputation: 15
i just checked...none of my swap is being used..so i guess everything is ok right?
 
Old 09-28-2005, 09:04 PM   #8
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
Quote:
Originally posted by time112852
but using up a lot of ram slows the machine down greatly doesnt it?
the entire memory sub system in Linux is virual as in it's not actually using all that physical RAM
you are thinking about RAM like you are using that other legacy 1983 system.

we hear this so much i think they need to do away with proc and sys memory reporting altogether
 
Old 09-28-2005, 09:12 PM   #9
time112852
Member
 
Registered: Aug 2003
Location: Pennsylvania, USA
Distribution: Gentoo 2.6.30
Posts: 92

Original Poster
Rep: Reputation: 15
i must be thinking about how windows works...and how much windows sucks at memory usage.

Im not a newbie with linux but i'm by far not an expert...i never understood how linux utilizes memory.

So what do you mean the entire subsystem in linux is virtual? When it reports that it's using up that amount of ram it isnt using it at all and it's actually using up virtual memory? why would it report it in the swap memory usage?
 
  


Reply



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
low memory requirements super_teds Linux - Distributions 4 06-20-2005 11:49 PM
How to monitor low memory? Fredy71 Linux - General 9 12-23-2004 10:05 AM
Low memory laptop -Dice Linux - Newbie 4 05-11-2004 05:36 PM
Low memory configuration?? Mercutio701 Linux - Newbie 4 02-07-2004 12:16 PM
RedHat 7.1, Low Memory BigBrother Linux - Software 7 07-11-2001 10:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:25 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
Open Source Consulting | Domain Registration