Re: problem with sar/sadf version 11.2.0

"Ken McDonell" <[email protected]> Tue, 17 Jan 2017 17:17:35 +1100
Newsgroups gmane.comp.sysutils.pcp
Message-ID <[email protected]>
On 17/01/17 15:00, Nathan Scott wrote:
> Hi Ken,
>
> ----- Original Message -----
>> [...]
>>
>> Bad case _one_ of these has to be wrong!
>>
>> kenj@bozo:~/src/pcp/qa/sadist$ sadf -x sa-sysstat-11.2.0 5 3 -- -A | grep
>> 'cpu number="all"'
>> 					<cpu number="all" usr="0.79" nice="0.00" sys="0.30" iowait="0.03"
>> 					steal="0.00" irq="0.00" soft="0.02" guest="2.78" gnice="0.00"
>> 					idle="96.08"/>
>> 					<cpu number="all" usr="0.54" nice="0.00" sys="0.27" iowait="0.05"
>> 					steal="0.00" irq="0.00" soft="0.00" guest="2.24" gnice="0.00"
>> 					idle="96.90"/>
>> 					<cpu number="all" usr="1.37" nice="0.00" sys="0.49" iowait="0.52"
>> 					steal="0.00" irq="0.00" soft="0.00" guest="4.42" gnice="0.00"
>> 					idle="93.21"/>
>> kenj@bozo:~/src/pcp/qa/sadist$ sar -u -f sa-sysstat-11.2.0 5 3Linux
>> 4.4.0-57-generic (bozo) 	05/01/17 	_x86_64_	(12 CPU)
>>
>> 07:17:19        CPU     %user     %nice   %system   %iowait    %steal
>> %idle
>> 07:17:24        all      3.57      0.00      0.32      0.03      0.00
>> 96.08
>> 07:17:29        all      2.78      0.00      0.27      0.05      0.00
>> 96.90
>> 07:17:34        all      5.79      0.00      0.49      0.52      0.00
>> 93.21
>> Average:        all      4.05      0.00      0.36      0.20      0.00
>> 95.39
>
>
> The difference in the latter output appears to be the guest CPU time numbers - it looks
> like the sadf output has the usr/guest values separated out, and in the sar output they
> are summed?  e.g. the %user from second matches usr+guest in the first:
>
> (gdb) p 2.78 + 0.79
> $1 = 3.5699999999999994
>
> I think the "-u [ALL]" option might be the way to get sar to keep 'em separated, from a
> read of the man page (not sure if thats supported for all sar versions though).

Thanks Nathan.

Expect a change to qa/370 to be incoming tomorrow ... 8^)



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links:

You receive all messages sent to this group.

View/Reply Online (#14984): https://groups.io/g/pcp/message/14984
View All Messages In Topic (3): https://groups.io/g/pcp/topic/4200663
Mute This Topic: https://groups.io/mt/4200663?uid=174580
New Topic: https://groups.io/g/pcp/post
-=-=-
pcp mailing list
[email protected]
https://groups.io/g/pcp/messages
-=-=-
Change Your Subscription: https://groups.io/g/pcp/editsub?uid=174580
Group Home: https://groups.io/g/pcp
Contact Group Owner: [email protected]
Terms of Service: https://groups.io/static/tos
Unsubscribe: https://groups.io/g/pcp/leave/354243/563757577/xyzzy
-=-=-=-=-=-=-=-=-=-=-=-