All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] Fix task buildstats gathering
@ 2016-02-19 14:49 Elliot Smith
  2016-02-19 14:49 ` [PATCH 1/5] toaster.bbclass: improve how we gather buildstats for Toaster Elliot Smith
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Elliot Smith @ 2016-02-19 14:49 UTC (permalink / raw)
  To: toaster

Our buildstats gathering for tasks (CPU usage, Disk IO etc.) is broken, partly because of changes to how the data is organised in the buildstats files, and partly because tasks aren't being updated correctly anyway.

Clean up the code which collects the buildstats (it had lots of duplication), collect the stats from the new stat file format (some line leaders had changed), and correctly identify the Task objects to update in BuildInfoHelper.

To test:

1. Remove the content of the directories which cache tasks to see the best effects (I usually delete buildstats, tmp, sstate-cache, and cache, just to be safe).

2. Run a build against a local Yocto (as one patch is for toaster.bbclass).

3. When the build finishes, view the "Tasks" page for the build and enable the "Disk IO" and "CPU usage" columns. Note that some CPU usage percentages are > 100, as discussed in bug 8842.

Changes since c0fe43b (toaster-next) are in
git://git.yoctoproject.org/poky-contrib, elliot/toaster/build_data-8842
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=elliot/toaster/build_data-8842

Related bug: https://bugzilla.yoctoproject.org/show_bug.cgi?id=8842

NOTE: The first commit in this patch series is for oe-core.

Elliot Smith (5):
  toaster.bbclass: improve how we gather buildstats for Toaster
  toaster: elapsed time for a task is calculated in toaster.bbclass
  toaster: when updating task stats, task must exist
  toaster: use a more straightforward query to find tasks to update
  toaster: clarify the units used for buildstats

 bitbake/lib/bb/ui/buildinfohelper.py    | 49 +++++++--------------
 bitbake/lib/toaster/orm/models.py       |  7 +++
 bitbake/lib/toaster/toastergui/views.py |  4 +-
 meta/classes/toaster.bbclass            | 76 ++++++++++++++++++++++-----------
 4 files changed, 77 insertions(+), 59 deletions(-)

--
Elliot Smith
Software Engineer
Intel OTC

---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-02-22 16:51 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2016-02-22 12:25         ` Barros Pena, Belen
2016-02-22 16:51           ` Smith, Elliot

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.