LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-08-2003, 07:30 PM   #1
pistonhonda
LQ Newbie
 
Registered: Nov 2003
Posts: 9

Rep: Reputation: 0
Question re: 'top' and mem usage...


I've got a brand spanking new install of RH9 and I installed the Ximian desktop. I've noticed that things seem to run sort of slow (i.e., I click to open a new Term window, and it takes 2-3 seconds to come up, etc)

I ran 'top' to see what my resources looked like, and this was the output at the top:

19:24:38 up 56 min, 1 user, load average: 0.17, 0.14, 0.10
67 processes: 63 sleeping, 4 running, 0 zombie, 0 stopped
CPU states: 1.3% user 0.7% system 0.0% nice 0.0% iowait 97.8% idle
Mem: 255372k av, 249892k used, 5480k free, 0k shrd, 20220k buff
183344k actv, 0k in_d, 2948k in_c
Swap: 522104k av, 2236k used, 519868k free 118120k cached

So, it looks like I only have 5M of memory free? I'm barely running anything on top of X (one browser session and the terminal window)... Is this normal to only have such a small amount of memory free? Is this likely why things seem slow to me?
 
Old 11-08-2003, 07:51 PM   #2
Nu-Bee
Member
 
Registered: Dec 2002
Location: USA
Distribution: Mandrake 9.2
Posts: 269

Rep: Reputation: 30
Re: Question re: 'top' and mem usage...

Quote:
Originally posted by pistonhonda
I've got a brand spanking new install of RH9 and I installed the Ximian desktop. I've noticed that things seem to run sort of slow (i.e., I click to open a new Term window, and it takes 2-3 seconds to come up, etc)

I ran 'top' to see what my resources looked like, and this was the output at the top:

19:24:38 up 56 min, 1 user, load average: 0.17, 0.14, 0.10
67 processes: 63 sleeping, 4 running, 0 zombie, 0 stopped
CPU states: 1.3% user 0.7% system 0.0% nice 0.0% iowait 97.8% idle
Mem: 255372k av, 249892k used, 5480k free, 0k shrd, 20220k buff
183344k actv, 0k in_d, 2948k in_c
Swap: 522104k av, 2236k used, 519868k free 118120k cached

So, it looks like I only have 5M of memory free? I'm barely running anything on top of X (one browser session and the terminal window)... Is this normal to only have such a small amount of memory free? Is this likely why things seem slow to me?
I have Opera open with 9 windows. I have Pan open. I have Konsole open running one terminal and 2 Midnight Commander sessions.

Here is my output:

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
12512 root 17 0 1012 1012 792 R 1.0 0.4 0:00.87 top
2517 joseph 12 0 7788 7728 5408 S 0.3 3.0 1:59.29 gkrellm
top - 19:50:39 up 9:52, 1 user, load average: 0.01, 0.03, 0.06
Tasks: 104 total, 1 running, 103 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.9% user, 1.6% system, 0.0% nice, 97.5% idle
Mem: 255820k total, 247700k used, 8120k free, 12368k buffers
Swap: 305192k total, 67216k used, 237976k free, 98600k cached

And BTW, nothing slow here.

Last edited by Nu-Bee; 11-08-2003 at 07:53 PM.
 
Old 11-08-2003, 08:05 PM   #3
pistonhonda
LQ Newbie
 
Registered: Nov 2003
Posts: 9

Original Poster
Rep: Reputation: 0
So you're saying that it's perfectly normal to have very little memory "free"?
 
Old 11-08-2003, 08:11 PM   #4
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Yes, the "free" memory is unused memory. Unlike Windows, Linux displays in-RAM cache and buffers as used while Windows displays them as free.

Håkan
 
Old 11-08-2003, 10:38 PM   #5
pistonhonda
LQ Newbie
 
Registered: Nov 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks!
 
Old 11-16-2003, 02:10 AM   #6
hct224
Member
 
Registered: Jun 2003
Distribution: Redhat
Posts: 87

Rep: Reputation: 15
Does anyone can give more detail on top command(ie. top -r; top -m...). I type top --help but it does not have any thing.
 
Old 11-16-2003, 03:12 AM   #7
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
'man top' 'info top' 'google top'
 
  


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
mem usage in Sarge/Debian hasanito Debian 2 10-04-2004 03:46 PM
Lowering Mem usage DropHit Red Hat 2 12-20-2003 11:36 PM
XWindosw - 1G (and more) mem usage!! drand Linux - General 2 12-02-2003 01:28 PM
High Mem Usage miketheninja Linux - General 2 11-05-2003 05:26 PM
post your mem usage... zeky Linux - General 36 12-10-2002 01:41 AM


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