Re: cpu usage display conky vs. top

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Suvayu Ali <fatkasuvayu+linux@xxxxxxxxx> writes:

> On Thu, Jul 18, 2013 at 05:13:12PM +0200, lee wrote:
>> Hi,
>> 
>> does anyone know what conky displays as CPU usage for a process?  The
>> values are different in conky and top, for example, top might show 11.6
>> for a process while conky says 3.01.
>
> Not on my system.  The polling times are a bit different I think, so I
> see same ballpark numbers: 2.53 vs 2.4, etc.

Yes, top has 3 seconds update interval by default, and I have conky at
10 seconds.  I wish I knew what the effect of that actually is,
i. e. will it display averages for the last 10 seconds, or does it
always display what it is seeing at the very moment the information is
displayed?

> Maybe you could fiddle with these two:
>
>   cpu_avg_samples 2

Do you know what this actually does?  Google hasn't been helpful at all
with it.

It didn't seem to change anything.  The documentation only says "The
number of samples to average for CPU monitoring.".

Afaik, the cpu load is read from /proc/stat.  Does conky read this file
more often per update interval when you increase cpu_avg_samples?

>   update_interval 1.0

Even with an update interval of one second in both conky and top, there
is no correlation between the cpu usage for the process.  With
'cpu_avg_samples 4', conky shows something between 0.5 and 1.10 for a
process that is around 3% in top.


BTW, conky also ignores an update interval specified for mail checking.
I specified an hour and it updates every 10 seconds.  Maybe I'll write
my own monitor so I do know what it does, or stay with xosview ...


-- 
Fedora release 19 (Schrödinger’s Cat)
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux