From: Richard Purdie <rpurdie@rpsys.net>
To: OE-Devel <openembedded-devel@openembedded.org>
Subject: [Fwd: [poky] Packaged Staging Improvements]
Date: Thu, 11 Jun 2009 16:12:56 +0100 [thread overview]
Message-ID: <1244733177.6018.35.camel@dax.rpnet.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 65 bytes --]
Forwarding this as there is problem some interest here too...
[-- Attachment #2: Forwarded message - [poky] Packaged Staging Improvements --]
[-- Type: message/rfc822, Size: 4244 bytes --]
From: Richard Purdie <richard@openedhand.com>
To: poky@o-hand.com
Subject: [poky] Packaged Staging Improvements
Date: Thu, 11 Jun 2009 15:58:22 +0100
Message-ID: <1244732302.6018.32.camel@dax.rpnet.com>
When packaged staging was written there was a performance bottleneck
introduced which I always wanted to fix at some point. I've just started
the ball rolling with this commit in Poky:
http://git.pokylinux.org/cgit.cgi/poky/commit/?id=5a4c688958a7dc1258575c0f6c3bd1af165b2585
and related commits from about that time.
The idea is that instead of do_stage looking like:
1. Take staging lock
2. Take snapshot of staging files
3. Run real staging function
4. Take snapshot of staging files, see what changed
5. Save changed files for staging package
6. Release staging lock
It looks like:
1. Run real staging function to a DESTDIR
2. Take staging lock
3. Install files into staging from DESTDIR
4. Save files from DESTDIR for staging package
5. Release staging lock
which removes the need for the snapshot and reduces the time the lock is
held. This speedup currently only works for packages which have a
do_stage just calling autotools_stage_all so an aim would be to increase
the number of packages we have using this function only.
I noticed one thing stopping this from happening in many cases which was
"inherit pkgconfig" which changes do_stage. The do_stage_append from
pkgconfig.bbclass shouldn't be needed for any sane package using uses
autotools_stage_all. I also noticed that:
* pkgconfig.bbclass does an "inherit base" which is totally pointless
as base is *always* inherited
* After the sysroot support addition to pkgconfig, the do_install
mangling in pkgconfig.bbclass in OE shouldn't be needed. If it is,
code should be patched. Poky doesn't have this but I'll mention to
the OE people.
Patches improving the do_stage functions welcome and hopefully this will
give a significant speedup to builds which people can enjoy.
Cheers,
Richard
--
To unsubscribe send a mail to poky+unsubscribe@o-hand.com
next reply other threads:[~2009-06-11 15:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-11 15:12 Richard Purdie [this message]
2009-06-11 16:27 ` [Fwd: [poky] Packaged Staging Improvements] Michael 'Mickey' Lauer
2009-06-11 16:38 ` Christopher Larson
2009-06-11 17:46 ` 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=1244733177.6018.35.camel@dax.rpnet.com \
--to=rpurdie@rpsys.net \
--cc=openembedded-devel@lists.openembedded.org \
--cc=openembedded-devel@openembedded.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.