All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Chris Larson <clarson@kergoth.com>
Cc: bitbake-devel <bitbake-devel@lists.openembedded.org>
Subject: Re: [PATCH] knotty: Fold knotty2 into knotty and make it the default
Date: Wed, 15 Aug 2012 22:52:36 +0100	[thread overview]
Message-ID: <1345067556.14667.34.camel@ted> (raw)
In-Reply-To: <CABcZANmPSnoyQ4PDcEsE=4EErgpNekAG919Bj+-vFwqAq0BCmA@mail.gmail.com>

On Wed, 2012-08-15 at 12:20 -0700, Chris Larson wrote:
> On Wed, Aug 15, 2012 at 9:50 AM, Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
> > There is no good reason knotty2 shouldn't be the default now. If you need
> > the old behaviour, just pipe the output through cat as non-interactive
> > terminals get the old output.
> >
> > Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> 
> I'm 100% in favor of this series, for what it's worth. I've been using
> knotty2 as my default BITBAKE_UI for months, just ignoring the minor
> bugs. The reduction in unnecessary output makes it *much* easier to
> spot *real* problems.

Agreed, that is one of the intents.

> That said, I think we should look into prefixing some of our log
> messages — some of them don't make it clear what task/recipe emitted
> them, making it difficult to isolate their cause. But of course, that
> was an issue with knotty as well, but it was slightly easier to narrow
> down the cause based on where it stood between the task
> started/completed messages :). Would you be open to potentially
> injecting a log message filter which adds task context informastion,
> in the code which forks the tasks? Then the formatter would have to do
> a hasattr() to check for that and add it to the format, but it'd mean
> we *always* know what task log messages are coming from.

Obviously such a change needs to be carefully considered but yes, I
think knowing where a message has come from is important and I'm in
favour of doing something. I'm slightly surprised there isn't something
in the message already.

Thinking about this more, I think we did add in the pid or at least
looked at doing so, with the assumption that the UI code could have
information about what that pid represents and be able to supplement the
data. I think the graphical UIs might use that to put the messages into
different "buckets" in the graphical task display.

The immediate reaction is "lets just add all the data to the event"
which I can certainly understand. My big worry is the pushing up the
size of each event to something that damages performance, particularly
if we so start using remote UIs. This is why the uihelper code exists,
effectively to maintain a UI side cache of the data rather than
pickle/unpickling the same thing many times.

As a side note, I do want to get handlers only receiving the events they
care about with server side filtering too. That is starting to show up
on profiles of some workloads.

Also, we currently use the word "package" in the old knotty output, I
want to change that to "recipe" as its confusing and we should be
consistent about our terminology. I guess I should propose a patch :)

Cheers,

Richard







      reply	other threads:[~2012-08-15 22:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-15 16:50 [PATCH] knotty: Fold knotty2 into knotty and make it the default Richard Purdie
2012-08-15 16:56 ` Jason Wessel
2012-08-15 17:03   ` Richard Purdie
2012-08-15 19:20 ` Chris Larson
2012-08-15 21:52   ` Richard Purdie [this message]

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=1345067556.14667.34.camel@ted \
    --to=richard.purdie@linuxfoundation.org \
    --cc=bitbake-devel@lists.openembedded.org \
    --cc=clarson@kergoth.com \
    /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.