From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: "Tian, Kevin" <kevin.tian@intel.com>
Cc: "paul.eggleton@linux.intel.com" <paul.eggleton@linux.intel.com>,
"poky@pokylinux.org" <poky@pokylinux.org>
Subject: Re: about 'noexec' message
Date: Thu, 16 Dec 2010 15:19:14 +0000 [thread overview]
Message-ID: <1292512754.26558.3993.camel@rex> (raw)
In-Reply-To: <625BA99ED14B2D499DC4E29D8138F1504D5F4096A4@shsmsx502.ccr.corp.intel.com>
On Thu, 2010-12-16 at 17:48 +0800, Tian, Kevin wrote:
> >From: Tian, Kevin
> >Sent: Thursday, December 16, 2010 4:46 PM
> >
> >>From: Gary Thomas [mailto:gary@mlbassoc.com]
> >>Sent: Thursday, December 16, 2010 12:10 AM
> >>
> >>Note to Richard: I'm still seeing a ton of Noexec messages every time I rebuild
> >>a package in this tree. I thought I understood you to say they should happen
> >>at most once?
> >>
> >
> >Yes, RP's previous patch does reduce the Noexec messages a lot. However there
> >remains one problem. Current stamp file check also calculates the stamp of tasks
> >depended on. If those stamps are newer or not exist, the check return False to
> >indicate mismatched stamp.
> >
> >In 'noexec' case, some 'noexec' tasks happen to have some dependent tasks
> >skipped which thus don't generate stamp files. This makes the check always
> >failed for those 'noexec' tasks and thus you always observe the Noexec messages.
> >
> >I have a patch to fix that, and will send out soon. :-)
> >
>
> Though I managed to remove the rest 'noexec' messages by adding below in
> check_stamp_task():
>
> if 'noexec' in taskdep and taskname in taskdep['noexec']
> return True
>
> I realized there's one potential risk. Though 'noexec' task is not executed at all,
> it's considered to be a normal task which normally plays the role of the sync
> points. Ideally if there're changes on stamp file of tasks that this 'noexec' task
> depends on, we still want to generate a new stamp file for the 'noexec' task.
> That way other tasks depending on that 'noexec' task will trigger rebuild too.
>
> If we always take 'noexec' task away from the comparison, above chain effect
> disappears.
>
> Current comparison condition for stamp files is:
>
> if not t2 or t1 < t2
> iscurrent = False
>
> I'm not sure under which case a stamp file (t2) doesn't exist, and whether it's
> safe to use:
> if not t2 and not noexec or t2 and t1 < t2:
> iscurrent = False
>
> to check stamp file for 'noexec' task.
>
> Or alternative is to simply convert bb.note to bb.debug for 'noexec' message. :-)
I've looked at this and realised that scenequeue should not be trying to
skip noexec tasks as this means the stamps don't get generated. Instead,
it should just failoutright and let the secondary code in the main
runqueue deal with them at the correct point in time.
I've pushed this change, lets see if it solves the issues people have
been seeing. It certainly makes the output from bitbake more readable
again.
Cheers,
Richard
next prev parent reply other threads:[~2010-12-16 15:19 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-14 13:40 [PATCH 0/1] Fix weird rebuild issue even when sstate signature doesn't change Kevin Tian
2010-12-15 9:12 ` Richard Purdie
2010-12-15 11:12 ` Tian, Kevin
2010-12-15 16:10 ` Gary Thomas
2010-12-15 16:17 ` Paul Eggleton
2010-12-16 1:43 ` Tian, Kevin
2010-12-16 8:45 ` Tian, Kevin
2010-12-16 9:48 ` about 'noexec' message Tian, Kevin
2010-12-16 15:19 ` Richard Purdie [this message]
2010-12-17 2:48 ` Tian, Kevin
2010-12-17 4:23 ` Tian, Kevin
2010-12-20 15:04 ` Richard Purdie
2010-12-16 15:29 ` [PATCH 0/1] Fix weird rebuild issue even when sstate signature doesn't change Richard Purdie
2010-12-20 21:23 ` Richard Purdie
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=1292512754.26558.3993.camel@rex \
--to=richard.purdie@linuxfoundation.org \
--cc=kevin.tian@intel.com \
--cc=paul.eggleton@linux.intel.com \
--cc=poky@pokylinux.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.