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 03-27-2005, 04:30 PM   #1
cdavidson
Member
 
Registered: Jan 2004
Location: Mississippi
Distribution: Gentoo 2006.1, openSuSe 10.2
Posts: 43

Rep: Reputation: 15
Question What's hogging all my memory?


I've got FC3 running on a Dell Optiplex GX260, P4 2.4GHz, 768MB memory. I know that this should more than suffice for running just about any OS, but since I recently installed FC3, I've noticed that I don't have as much free memory as I should. This is the output of free:

total used free shared buffers cached
Mem: 767264 754404 12860 0 188052 182688
-/+ buffers/cache: 383664 383600
Swap: 1540088 224 1539864

This was taken with Firefox, Evolution, and a Terminal running. I've been trying to investigate and find out what is hogging the memory but when I issue a ps ax | more, there is not a column for %MEM (or something similar) displayed. How can I find out what is taking all the resources? Thanks in advance...
 
Old 03-27-2005, 04:32 PM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Linux will often show all the memory as being in use, that's just the way it works.
 
Old 03-27-2005, 04:35 PM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
Most of the memory is being used by disk cache, and will be given to any program that needs it.
 
Old 03-27-2005, 05:44 PM   #4
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 47
there is a program in kde called ksysguard that is like the task manager in windows
 
Old 03-27-2005, 09:59 PM   #5
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
You can use the "top" command (no quotes) to display the processes that are consuming the most resources.

Also, this article does a great job explaining the basics of Linux Memory Management, and why so much RAM seems to be in use all the time. -- J.W.
 
Old 03-29-2005, 03:15 PM   #6
runlevel0
Member
 
Registered: Mar 2005
Location: Hilversum/Holland
Distribution: Debian GNU/Linux 5.0 (“Lenny”)
Posts: 290

Rep: Reputation: 31
Re: What's hogging all my memory?

Quote:
Originally posted by cdavidson
I've been trying to investigate and find out what is hogging the memory but when I issue a ps ax | more, there is not a column for %MEM (or something similar) displayed. How can I find out what is taking all the resources? Thanks in advance...
There is an easy way to see if a process is hogging mem: fire up top in an xterm and watch the mem% column.
If you want a bit less output press 'i' to filter out all the idle processes.

If you find a culprit of mem-hogging you can kill it with "k" and the PID.

Top is IMHO a must-know, one of those simple and powerful console based apps which makes the difference.

Last edited by runlevel0; 03-29-2005 at 03:34 PM.
 
  


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
bittorrent hogging the bandwidth PawnsharK Linux - Software 0 05-23-2004 10:17 AM
kde's aRts is hogging /dev/dsp LavaDevil94 Linux - Software 6 12-07-2003 10:06 AM
esd is hogging soundcard dbkluck Debian 1 09-14-2003 01:30 AM
Suse 8.2 and Susewatcher... hogging resources? Pandemonium Linux - Software 6 07-19-2003 03:34 AM
freenet hogging resources wapcaplet Linux - Software 0 03-25-2003 10:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:47 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