All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: "Barros Pena, Belen" <belen.barros.pena@intel.com>,
	"Smith, Elliot" <elliot.smith@intel.com>,
	"toaster@yoctoproject.org" <toaster@yoctoproject.org>
Subject: Re: [PATCH 0/5] Fix task buildstats gathering
Date: Mon, 22 Feb 2016 11:12:48 +0000	[thread overview]
Message-ID: <1456139568.28376.187.camel@linuxfoundation.org> (raw)
In-Reply-To: <D2F08E5E.74667%belen.barros.pena@intel.com>

On Mon, 2016-02-22 at 10:25 +0000, Barros Pena, Belen wrote:
> I am not sure what you'd consider a 'short running' task, so here are
> a few examples:
> 
> Recipe			task			time (secs)	
> CPU usage
> db			do_unpack		1.29		
> 144.34%
> linux-libc-headers 	do_unpack		9.81		
> 134.64%
> 
> linux-yocto 		do_patch		16.40		
> 141.12%
> 
> rpm-native		do_patch		4.84		
> 117.13%
> gcc-cross-i586		do_configure		3.25	
> 	125.24%
> 
> gcc-cross-initial-i586 	do_configure		3.27	
> 	120.50%
> 
> glibc-locale		do_populate_sysroot	2.80		
> 192.74%
> 
> flex			do_populate_sysroot	1.98		
> 157.74%

I was thinking roughly "under 3 seconds", so some of these are higher
that I'd have expected. Could you share the parent utime/stime and
cumulative utime/stime for these please, just so we can get a better
idea of what was going on there.


> And what if we look at the other side of the data? What does a value 
> of 7.32% mean, like the one we get for netbase do_compile?
>
> So, in the example of linux-yocto do_compile_kernelmodules, would we
> show
> '24'? And for netbase do_compile? '0.07'?

Yes. 0.07 means it didn't really do much in parallel at all and wasn't
using much of a single processor. 

> Would it be just easier to show resource usage times, since they are
> somehow a standard measure that users might be more likely to
> recognise?
> So we could show either:
> 
> * Child rusage ru_utime + Child rusage ru_stime
> * or we split CPU usage into 2 columns, one for ru_utime and the
> other for
> ru_stime

Personally, I see a lot of value in showing these numbers separately.
As my question above kind of indicates, you really need several of the
numbers to understand exactly what may have been going on within the
task and there isn't one number you can show which tells you
everything.

This is a bit of an aside, but another "missing" piece of information
is "what was going on in the system at the same time as this task?". 
This is the kind of information that the bootchart graph shows really
well. If we could click on something and see which other tasks were
running at the time this task was, that would be information we can't
currently easily obtain.

That data is there, we know the start and end times of each of the
tasks, so something can compute which ones were running at time X, but
its not something that anything is currently doing as we don't have an
easy way to display that on the commandline.

Cheers,

Richard


  reply	other threads:[~2016-02-22 11:13 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-19 14:49 [PATCH 0/5] Fix task buildstats gathering Elliot Smith
2016-02-19 14:49 ` [PATCH 1/5] toaster.bbclass: improve how we gather buildstats for Toaster Elliot Smith
2016-02-19 14:49 ` [PATCH 2/5] toaster: elapsed time for a task is calculated in toaster.bbclass Elliot Smith
2016-02-19 14:49 ` [PATCH 3/5] toaster: when updating task stats, task must exist Elliot Smith
2016-02-19 14:49 ` [PATCH 4/5] toaster: use a more straightforward query to find tasks to update Elliot Smith
2016-02-19 14:49 ` [PATCH 5/5] toaster: clarify the units used for buildstats Elliot Smith
2016-02-20 18:51 ` [PATCH 0/5] Fix task buildstats gathering Barros Pena, Belen
2016-02-21 11:04   ` Richard Purdie
2016-02-22 10:25     ` Barros Pena, Belen
2016-02-22 11:12       ` Richard Purdie [this message]
2016-02-22 12:25         ` Barros Pena, Belen
2016-02-22 16:51           ` Smith, Elliot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1456139568.28376.187.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=belen.barros.pena@intel.com \
    --cc=elliot.smith@intel.com \
    --cc=toaster@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.