From: Roman I Khimov <roman@khimov.ru>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH] Add locking on tasks that add package_update_index_ipk
Date: Sun, 6 Jun 2010 23:11:23 +0400 [thread overview]
Message-ID: <201006062311.28237.roman@khimov.ru> (raw)
In-Reply-To: <4C09946F.9040401@mentor.com>
[-- Attachment #1: Type: Text/Plain, Size: 1429 bytes --]
В сообщении от Суббота 05 июня 2010 04:03:59 автор Tom Rini написал:
> We add a lockfile of do_populate_sdk and do_rootfs (in rootfs_ipk) that
> is also the lockfile that package_update_index_ipk uses. With enough
> threads it is possible that one image (or meta-toolchain) is attempting
> to use the package index while another has only reached the point of
> generating the index leading to an empty index being seen later on.
Am I right that effectively it makes rootfs creation sequential? It's bad for
performance. Probably it's time to fix ipkg-make-index to not touch index
files if no new packages are found as was suggested some time ago:
http://patchwork.openembedded.org/patch/744/
But thinking about it a bit more, ipkg-make-index hack won't really fix the
issue in this case, as we can have image A with a set of packages, image B
with a similar set of packages plus additional package P and then A would do
package_update_index_ipk and enter do_rootfs, then P gets completed,
package_update_index_ipk for B is started and the package index really needs
an update, thus things can break again.
Maybe it's easier to make those indexes per-image for performance.
Well,
Acked-by: Roman I Khimov <khimov@altell.ru>
for now.
--
http://roman.khimov.ru
mailto: roman@khimov.ru
gpg --keyserver hkp://subkeys.pgp.net --recv-keys 0xE5E055C3
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
next prev parent reply other threads:[~2010-06-06 19:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-05 0:03 [PATCH] Add locking on tasks that add package_update_index_ipk Tom Rini
2010-06-05 0:06 ` Chris Larson
2010-06-06 19:11 ` Roman I Khimov [this message]
2010-06-07 15:53 ` Tom Rini
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=201006062311.28237.roman@khimov.ru \
--to=roman@khimov.ru \
--cc=openembedded-devel@lists.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox