Re: what is the unit for usr_cpu and sys_cpu in fio3.16? Inbox x

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

 



Hi,

On Fri, 10 Apr 2020 at 04:34, Shridhar Sahukar
<shridhar.sahukar2@xxxxxxxxx> wrote:
>
> Hello,
>
> I have a bunch of benchmark results from fio-3.16 in json format and I
> am unable to find the units for sys_cpu and usr_cpu fields.
>
> For example, the output shows
>
> "sys_cpu": 1.560156
> "usr_cpu": 0.420997
>
> Is this in seconds?

No it should be a percentage (of the total run time). From
https://github.com/axboe/fio/blob/839f607b5771081e96942977a1ff9f1b24b77bca/stat.c#L1089
:

usr_cpu = (double) ts->usr_time * 100 / runt;

-- 
Sitsofe | http://sucs.org/~sits/



[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux