LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-13-2003, 09:47 PM   #1
chanys
LQ Newbie
 
Registered: Mar 2003
Posts: 11

Rep: Reputation: 0
"top" command memory question


Hi,

I run the command "top" and was wondering why so much memory is used. Following is a snapshot :
---------------------------------------------------
11:43am up 4 days, 1:29, 4 users, load average: 0.00, 0.00, 0.05
59 processes: 58 sleeping, 1 running, 0 zombie, 0 stopped
CPU0 states: 0.0% user, 0.0% system, 0.0% nice, 100.0% idle
CPU1 states: 0.0% user, 0.0% system, 0.0% nice, 100.0% idle
Mem: 2064172K av, 2048696K used, 15476K free, 0K shrd, 362856K buff
Swap: 2040244K av, 0K used, 2040244K free 1530488K cached

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
32408 gdm 15 0 17084 16M 6100 S 0.0 0.8 0:01 gdmgreeter
957 root 5 -10 137M 9980 2556 S < 0.0 0.4 24:10 X
-----------------------------------------------------

I've used the "M" option to sort the processes in order of memory usage. My Question is : why is (2064172K av, 2048696K used)? What could account for this large memory usage?

Thanks for any comments!
YS.
 
Old 03-13-2003, 09:52 PM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Its X that causes this. If you boot to runlevel 3 and run the top command you'll see a big difference.
 
Old 03-14-2003, 01:05 AM   #3
carlywarly
Member
 
Registered: Feb 2003
Location: Sunny Southport, again.
Distribution: PCLinuxOS 0.93 and 0.92, Vector sometimes
Posts: 825

Rep: Reputation: 30
Linux accounts for this "usage". Much of that memory is not being used, it is cached or shared - have a look at this thread on this often-asked question -

http://www.linuxquestions.org/questi...ight=ram+usage

 
Old 03-14-2003, 09:35 AM   #4
arnold
Member
 
Registered: Dec 2002
Posts: 226

Rep: Reputation: 30
you have 2GB ram? Is this your desktop or a server?
 
Old 03-14-2003, 08:01 PM   #5
chanys
LQ Newbie
 
Registered: Mar 2003
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks, crash_again. I've tried wat you suggested. And... yes the pc has 2 GB ram. It's used as a linux server where we can ssh to run stuff for research.
 
  


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
Where to download precompiled bash binaries, such as "time" and "top"? elinuxqs Linux - Newbie 12 11-14-2005 08:36 PM
Starting an xterm window that is "always on top" on command line azilkie Fedora 1 10-07-2005 09:17 PM
"Doubt in Implementing top command " manikantha Programming 1 09-24-2004 07:20 AM
How to make sense out of "top" command manofwax Linux - General 6 08-10-2004 11:59 AM
question re output of "top" slackist Linux - Newbie 2 04-12-2004 08:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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