* what is the unit for usr_cpu and sys_cpu in fio3.16? Inbox x
@ 2020-04-10 3:33 Shridhar Sahukar
2020-04-10 7:27 ` Sitsofe Wheeler
0 siblings, 1 reply; 3+ messages in thread
From: Shridhar Sahukar @ 2020-04-10 3:33 UTC (permalink / raw)
To: fio
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?
Thanks,
Shridhar
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: what is the unit for usr_cpu and sys_cpu in fio3.16? Inbox x
2020-04-10 3:33 what is the unit for usr_cpu and sys_cpu in fio3.16? Inbox x Shridhar Sahukar
@ 2020-04-10 7:27 ` Sitsofe Wheeler
2020-04-10 18:55 ` Shridhar Sahukar
0 siblings, 1 reply; 3+ messages in thread
From: Sitsofe Wheeler @ 2020-04-10 7:27 UTC (permalink / raw)
To: Shridhar Sahukar; +Cc: fio
Hi,
On Fri, 10 Apr 2020 at 04:34, Shridhar Sahukar
<shridhar.sahukar2@gmail.com> 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/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: what is the unit for usr_cpu and sys_cpu in fio3.16? Inbox x
2020-04-10 7:27 ` Sitsofe Wheeler
@ 2020-04-10 18:55 ` Shridhar Sahukar
0 siblings, 0 replies; 3+ messages in thread
From: Shridhar Sahukar @ 2020-04-10 18:55 UTC (permalink / raw)
To: Sitsofe Wheeler; +Cc: fio
Hi,
Thanks for the quick response.
In the trial run where I got values "sys_cpu": 1.560156 and "usr_cpu":
0.420997, the total run time was 10mins, so does it mean that fio used
about ~2% CPU (or 12 seconds) - user and system combined?
Is it 2% of one single Core? Or 2% of all the CPU available?
Regards,
Shridhar
On Fri, 10 Apr 2020 at 00:27, Sitsofe Wheeler <sitsofe@gmail.com> wrote:
>
> Hi,
>
> On Fri, 10 Apr 2020 at 04:34, Shridhar Sahukar
> <shridhar.sahukar2@gmail.com> 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/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-04-10 18:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-10 3:33 what is the unit for usr_cpu and sys_cpu in fio3.16? Inbox x Shridhar Sahukar
2020-04-10 7:27 ` Sitsofe Wheeler
2020-04-10 18:55 ` Shridhar Sahukar
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.