All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rich Pixley <rich.pixley@palm.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: sharing DL_DIR?
Date: Wed, 22 Feb 2012 16:47:38 -0800	[thread overview]
Message-ID: <4F458CAA.7040107@palm.com> (raw)
In-Reply-To: <E9FAD6E1E68141CCA2CF166F1762B320@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2698 bytes --]

What happens if two separate bitbake invocations both simultaneously 
attempt to download the same file?

--rich

On 2/22/12 15:41 , Christopher Larson wrote:
> I share it as well. I don't see locks being a big issue for most 
> things, as the worst case is a re-download, not use of a corrupt or 
> incomplete file, due to the completion stamps.
>
> -- 
> Christopher Larson
>
> On Wednesday, February 22, 2012 at 4:39 PM, Tom King wrote:
>
>> I have a single downloads directory with symlinks for every target 
>> build I have to that directory.  As long as I have the source already 
>> in there I don't fetch  it again
>>
>> Tom
>>
>> On Wed, Feb 22, 2012 at 1:33 PM, Rich Pixley <rich.pixley@palm.com 
>> <mailto:rich.pixley@palm.com>> wrote:
>>> Is it reasonable to expect to share DL_DIR between multiple builds?
>>>
>>> That is, are downloads properly locked so that multiple concurrent 
>>> downloads of the same file won't collide?  And if so, are they NFS 
>>> safe locks?
>>>
>>> Or must each build download it's own copies of every component?
>>>
>>> I ask because our, (Palm), branch has been, but it's a bit of a 
>>> nuisance to pick a suitable locking mechanism that is both 
>>> functional and performant.
>>>
>>>   * Flock/lockf aren't reliably supported in heterogeneous environments.
>>>   * The old lockfiles don't work over NFS. Lock directories
>>>     apparently do, but trying to clean these up after interruptions
>>>     or failures is a losing battle so if we do use these, we end up
>>>     with orphan locks periodically.
>>>   * With NFS as a possibility, we can't assume any kernel local IPC
>>>     mechanism, so sysV ipc is out.
>>>   * It seems like a pretty huge overhead to try to create any sort
>>>     of zeroconf overhead.
>>>
>>> Our solution so far has been to use NFS lock directories for 
>>> multiple machine builds and flock/lockf for single machine builds.  
>>> This mostly works, though it's not ideal, and it's significantly 
>>> faster than downloading/copying all of the component source multiple 
>>> times even over local mirrors.
>>>
>>> --rich
>>>
>>> _______________________________________________
>>> Openembedded-core mailing list
>>> Openembedded-core@lists.openembedded.org 
>>> <mailto:Openembedded-core@lists.openembedded.org>
>>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>>>
>>
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org 
>> <mailto:Openembedded-core@lists.openembedded.org>
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>

[-- Attachment #2: Type: text/html, Size: 5775 bytes --]

  reply	other threads:[~2012-02-23  0:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-22 23:33 sharing DL_DIR? Rich Pixley
2012-02-22 23:39 ` Tom King
2012-02-22 23:41   ` Christopher Larson
2012-02-23  0:47     ` Rich Pixley [this message]
2012-02-23 10:16       ` Richard Purdie
2012-02-23 19:21         ` Rich Pixley
2012-02-23 20:11           ` Richard Purdie
2012-02-23 20:36             ` Rich Pixley
2012-02-23 20:41               ` Richard Purdie
2012-02-22 23:41 ` Saul Wold
2012-02-23  0:50   ` Rich Pixley

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=4F458CAA.7040107@palm.com \
    --to=rich.pixley@palm.com \
    --cc=openembedded-core@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 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.