* Dualing downloads
@ 2016-03-10 13:21 Gary Thomas
2016-03-10 13:51 ` Martin Jansa
0 siblings, 1 reply; 3+ messages in thread
From: Gary Thomas @ 2016-03-10 13:21 UTC (permalink / raw)
To: yocto
If I have a package X that depends on X-native and they build
from the same sources, doesn't the fetch step duplicate effort
if the sources need to be downloaded from scratch? I just saw
this [appear to] happen and it's not clear if the sources were
downloaded once or twice.
I this is the case, perhaps if X depends on X-native then X.fetch
should depend on X-native.fetch so then download happens only once?
Or is that too hard to detect?
For many packages (and fast network links) this probably isn't an
issue, but I could imagine some very large packages simply wasting
network bandwidth.
Note: I'm happy if I'm wrong about this, it just jumped out at me.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Dualing downloads
2016-03-10 13:21 Dualing downloads Gary Thomas
@ 2016-03-10 13:51 ` Martin Jansa
2016-03-10 13:51 ` Gary Thomas
0 siblings, 1 reply; 3+ messages in thread
From: Martin Jansa @ 2016-03-10 13:51 UTC (permalink / raw)
To: Gary Thomas; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 1444 bytes --]
On Thu, Mar 10, 2016 at 02:21:42PM +0100, Gary Thomas wrote:
> If I have a package X that depends on X-native and they build
> from the same sources, doesn't the fetch step duplicate effort
> if the sources need to be downloaded from scratch? I just saw
> this [appear to] happen and it's not clear if the sources were
> downloaded once or twice.
The first one should create the lock file and second fetch task should
just reuse the already downloaded source.
Otherwise sharing whole downloads directory between multiple builders
wouldn't work as well.
> I this is the case, perhaps if X depends on X-native then X.fetch
> should depend on X-native.fetch so then download happens only once?
> Or is that too hard to detect?
>
> For many packages (and fast network links) this probably isn't an
> issue, but I could imagine some very large packages simply wasting
> network bandwidth.
>
> Note: I'm happy if I'm wrong about this, it just jumped out at me.
>
> --
> ------------------------------------------------------------
> Gary Thomas | Consulting for the
> MLB Associates | Embedded world
> ------------------------------------------------------------
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Dualing downloads
2016-03-10 13:51 ` Martin Jansa
@ 2016-03-10 13:51 ` Gary Thomas
0 siblings, 0 replies; 3+ messages in thread
From: Gary Thomas @ 2016-03-10 13:51 UTC (permalink / raw)
To: Martin Jansa; +Cc: yocto
On 2016-03-10 14:51, Martin Jansa wrote:
> On Thu, Mar 10, 2016 at 02:21:42PM +0100, Gary Thomas wrote:
>> If I have a package X that depends on X-native and they build
>> from the same sources, doesn't the fetch step duplicate effort
>> if the sources need to be downloaded from scratch? I just saw
>> this [appear to] happen and it's not clear if the sources were
>> downloaded once or twice.
>
> The first one should create the lock file and second fetch task should
> just reuse the already downloaded source.
>
> Otherwise sharing whole downloads directory between multiple builders
> wouldn't work as well.
>
That's great, thanks
>> I this is the case, perhaps if X depends on X-native then X.fetch
>> should depend on X-native.fetch so then download happens only once?
>> Or is that too hard to detect?
>>
>> For many packages (and fast network links) this probably isn't an
>> issue, but I could imagine some very large packages simply wasting
>> network bandwidth.
>>
>> Note: I'm happy if I'm wrong about this, it just jumped out at me.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-03-10 13:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-10 13:21 Dualing downloads Gary Thomas
2016-03-10 13:51 ` Martin Jansa
2016-03-10 13:51 ` Gary Thomas
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.