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 06-24-2004, 10:29 AM   #1
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
Gkrellm and CPU/memory usage reporting


I'm a bit confused about how memory usage is showing up in gkrellm. I know Linux uses cache, I'm not talking about that. I'm talking about the actual application part.

Gkrellm reports: 528MB
System Monitor reports: 273MB
Info Center reports: ~528MB
free reports about: 529MB

It looks like gkrellm is pretty close but why is System Monitor reporting so low?

I also notice sometimes that gkrellm reports little CPU activity when it is banging away. I can hear the fan running. I only here that when the CPU is running at full speed. System Monitor shows it banging away at 100%. I notice this a lot when running f-prot. It shows it running for a bit, then it slowing down, then going back up to full speed again. System Monitor shows it banging away at full speed all the time. It acts like the permissions on the files it scans makes a difference.

Why am I getting all these different values for CPU and memory?

Any ideas? Anybody else notice this? Am I the only one.

Gkrellm is 2.2.1 and KDE 3.2.2 by the way.

Need more info?

 
Old 06-24-2004, 04:24 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"Why am I getting all these different values for CPU and memory?"

Here is a thread that discusses what the memory usage reports actually mean:

http://www.linuxquestions.org/questi...threadid=91829

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 06-24-2004, 04:37 PM   #3
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
the above thread should explain things clearly

if you want gkrellm to show the buffers/cache, go into the configuration and under memory, check off "show krells for buffer and cache"; it will show two more krells in the memory meter

as for cpu usage... depends on what kernel you're using; on a 2.4.x kernel, you should see constant cpu usage when you're using an intense program; on 2.6.x, because it polls 1000 times a second, there will be down times reported (because the cpu is never exactly constant)

also, i doubt you can hear your cpu... that is definitely your harddrive; even when you are copying large/many files from one disk to another, cpu usage may be very limited and the harddisks will be grinding away
 
Old 06-24-2004, 10:11 PM   #4
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058

Original Poster
Blog Entries: 2

Rep: Reputation: 79
My CPU fan is temp controlled. When the CPU is under heavy load, I can hear the FAN running, not the CPU itself. My hearing is not that good.

I know about the cache part of the memory. I am talking about the application memory itself, not the cache. Maybe some just compute it differently.

I see the point on the CPU thing. But Gkrellm shows it almost idle while System Monitor shows a constant 100%. It is a big difference and a constant difference. It's like it doesn't see certain processes for some reason. I LOVE gkrellm, I'm just curious about the reporting.

I have it showing the krells already. I like seeing it cache all the stuff that is frequently used. With 1GB, it takes a while to fill up.

Oh well. What ever.

 
Old 06-24-2004, 10:45 PM   #5
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
I'm no expert on this but i think memory usage has evolved while we are still thinking old school...
think of all user and kernel space memory now as virtual memory accept for the memory tables where the
pages for each process is mapped to RAM -- this gives each and every process access to the entire ram
accept what is used up by the tables themselves..
this is then proccessed by the CPU's MMU and it's own internal cache
lots of different stuff can be mapped to the same point in the RAM all at once......
 
Old 06-24-2004, 11:09 PM   #6
Rudwardt
LQ Newbie
 
Registered: May 2004
Location: Germany
Distribution: Debian
Posts: 22

Rep: Reputation: 15
About the CPU-Usage...
With Kernel 2.6 a new CPU Stat was introduced called IOWait. You can see it when using top for instance, it's 'wa'. IOWait is exactly what it's name suggests: the time percentage spend waiting for (Disk)I/O.
So, if GKrellm runs on a 2.6 Kernel, it simply subtracts the the IOWait from the CPU-Usage to give a more accurate feedback if the CPU is really working or just polling/waiting (which also eats CPU, but no work, apart from data-transfer, is done).

So if you check with the disk-IO chart, you should notice that if there is a lot of data transfered, CPU-Usage drops and vice versa. With your f-prot example that would be loading the file: CPU drops, Disk raises - scanning the file: the other way round.
__
Rud
 
Old 06-25-2004, 01:42 AM   #7
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058

Original Poster
Blog Entries: 2

Rep: Reputation: 79
That makes sense. It's sort of working but really waiting on the data to work with. Basically telling the hard drive to hurry the heck up. That I can see. The kernel is sort of keeping the CPU going while it waits for the drive.

Things are getting better and making sense now. I use 2.6.6 to by the way.

Much better.

 
  


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
Logging CPU / Memory Usage bastien Fedora 1 05-07-2005 09:16 PM
getting realtime info on memory usage-cpu and harddrive usage steering Linux - Newbie 5 03-03-2005 08:43 PM
CPU and memory usage suguname Linux - Newbie 3 02-01-2005 01:45 PM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 04:45 AM
Controlling CPU usage & memory usage Saravana babu Linux - Software 0 02-18-2004 05:55 AM

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

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