All of lore.kernel.org
 help / color / mirror / Atom feed
* [Fwd: [poky] Packaged Staging Improvements]
@ 2009-06-11 15:12 Richard Purdie
  2009-06-11 16:27 ` Michael 'Mickey' Lauer
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2009-06-11 15:12 UTC (permalink / raw)
  To: OE-Devel

[-- 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


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

end of thread, other threads:[~2009-06-11 17:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-11 15:12 [Fwd: [poky] Packaged Staging Improvements] Richard Purdie
2009-06-11 16:27 ` Michael 'Mickey' Lauer
2009-06-11 16:38   ` Christopher Larson
2009-06-11 17:46     ` Richard Purdie

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.