Re: cpu usage display conky vs. top

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

 



Mateusz Marzantowicz <mmarzantowicz@xxxxxxxxxxx> writes:

> On 19.07.2013 12:32, lee wrote:
>> 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.
>>
>> 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 ...
>>
>>
>
> Answer for all your questions is in conky's source code. In file
> src/linux.cc, there is a function called get_cpu_count which grabs data
> from /proc/stat . After this function you'll find several other
> functions that open /proc/stat .

Did you find an explanation for why it displays different numbers than
top does or why it ignores the update interval for checking mail?  I
thought it probably uses the same data sources for this information and
didn't really want to look at the source code.


-- 
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