Received: from [194.106.48.114] (helo=tim.rpsys.net ident=0) by linuxtogo.org with esmtp (Exim 4.69) (envelope-from ) id 1JVtjj-0003g2-1h for openembedded-devel@openembedded.org; Sun, 02 Mar 2008 20:20:42 +0100 Received: from localhost (localhost [127.0.0.1]) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id m22JJXk8003283 for ; Sun, 2 Mar 2008 19:19:33 GMT Received: from tim.rpsys.net ([127.0.0.1]) by localhost (tim.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03003-06 for ; Sun, 2 Mar 2008 19:19:29 +0000 (GMT) Received: from [192.168.1.3] (dax.rpnet.com [192.168.1.3]) (authenticated bits=0) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id m22JJSBb003277 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 2 Mar 2008 19:19:28 GMT From: Richard Purdie To: openembedded-devel@openembedded.org In-Reply-To: References: Date: Sun, 02 Mar 2008 19:19:28 +0000 Message-Id: <1204485568.8223.39.camel@dax.rpnet.com> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 X-Virus-Scanned: amavisd-new at rpsys.net X-SA-Exim-Connect-IP: 194.106.48.114 X-SA-Exim-Mail-From: rpurdie@rpsys.net X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on serenity X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=RDNS_NONE autolearn=no version=3.2.3 X-SA-Exim-Version: 4.2.1 (built Tue, 21 Aug 2007 23:39:36 +0000) X-SA-Exim-Scanned: Yes (on linuxtogo.org) Subject: Re: Multiple bitbake and a shared DL_DIR location - race conditions? X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Mar 2008 19:20:44 -0000 Content-Type: text/plain Content-Transfer-Encoding: 7bit On Sun, 2008-03-02 at 19:52 +0100, Leon Woestenberg wrote: > Hello Koen, > > > | I would like to allow the builds to overlap in time, at least make > > | sure the builds are robust to this, but I doubt this is possible at > > | all. > > | > > | Are there any race conditions with the current approach? > > | > > | I.e. what if two fetch tasks from concurrent instances of bitbake > > | decide to download a package? > > > > Isn't that what the .lock files are supposed to do? If you have multiple > > bitbake threads (in one bitbake instance) it has to solve the same problem. > > > Maybe, I did not fully understand how the go() function in > "lib/bb/fetch/__init__.py" could handle this case: > > Suppose at time T one bitbake instance #1 is downloading/fetching > package A, and bitbake instance #2 at time T would like to fetch the > same package, what will #2 do? > > Will it wait for the lock to be released, then check? Yes, it should but see my comment about scm checkouts too. Ultimately I'd like bitbake to have more awareness of locks and take it into account when scheduling tasks. In reality I'll settle for it working without races at the moment ;-). Cheers, Richard