Re: combo client/server gkrellm

Bill Wilson <[email protected]>
Newsgroups gmane.comp.gnome.apps.gkrellm
Message-ID <[email protected]>
On Wed, 22 Aug 2007 15:04:37 -0500
"Glen W. Mabey" <[email protected]> wrote:

> Okay, great.  I got the C code to compile and it's spitting out lines
> like this:
> 
> connecting to mp10Hostname: mp10 Data type: <cpu> Data: 0 77688 0 1998 118389011
> Hostname: mp10 Data type: <cpu> Data: 1 53981 0 1551 118350779
> Hostname: mp10 Data type: <cpu> Data: 2 69766 0 1539 118399001
> Hostname: mp10 Data type: <cpu> Data: 3 94128 0 1868 118311306
> 
> 
> so I think that's all working right.  So, what is the format of the data
> line for the CPU?  The first field has got to be the CPU number, but
> how are the rest defined?

The collection of scanf() lines at the bottom of that C file gives a pretty
good idea of what most of the data represents for the different monitors.
For the CPU, it's (time values in CPU clock ticks):

CPU number, user time , nice time, sys time, idle time

A lot of the data (CPU, disk, and net mainly) is cumulative.  So you have
to subtract the previous reading from the current to get the values for
whatever time interval you are sampling.

And don't forget to look at the output using the -d 0x1000 flag to
a client gkrellm run.

Bill

_______________________________________________
Gkrellm mailing list
[email protected]
http://lists.jutley.org/cgi-bin/mailman/listinfo/gkrellm
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.