All of lore.kernel.org
 help / color / mirror / Atom feed
* linux-yocto fetch bottleneck
@ 2014-03-21 21:27 Jate S
  2014-03-21 21:33 ` Gary Thomas
  0 siblings, 1 reply; 5+ messages in thread
From: Jate S @ 2014-03-21 21:27 UTC (permalink / raw)
  To: yocto

I am running into a bottleneck with the linux-yocto recipe on dora
1.5.1. The fetch retrieves git2_git.yoctoproject.org.git.tar.gz, but
then it hits a bottleneck when it must do a git fetch to update to the
required references. The git server does not have high bandwdith.

One workaround that I've found is to archive the git repository and
replace the tar.gz in the downloads directory. The recipe then finds
the required references.

Would BB_GENERATE_MIRROR_TARBALLS actually take care of this? Any
other recommendations?


- Jate S.


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

* Re: linux-yocto fetch bottleneck
  2014-03-21 21:27 linux-yocto fetch bottleneck Jate S
@ 2014-03-21 21:33 ` Gary Thomas
       [not found]   ` <CAPphmgbHhHMRTAGtXMsHfbHR6FuQa7MODGW_UQY22xCO2Z38MQ@mail.gmail.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Gary Thomas @ 2014-03-21 21:33 UTC (permalink / raw)
  To: yocto

On 2014-03-21 15:27, Jate S wrote:
> I am running into a bottleneck with the linux-yocto recipe on dora
> 1.5.1. The fetch retrieves git2_git.yoctoproject.org.git.tar.gz, but
> then it hits a bottleneck when it must do a git fetch to update to the
> required references. The git server does not have high bandwdith.
> 
> One workaround that I've found is to archive the git repository and
> replace the tar.gz in the downloads directory. The recipe then finds
> the required references.
> 
> Would BB_GENERATE_MIRROR_TARBALLS actually take care of this? Any
> other recommendations?

Yes, that's exactly what BB_GENERATE_MIRROR_TARBALLS does.  The updated
tarball will end up in your downloads directory.  If you use any sort of
local mirror, you'll want to push the new tarball to it for the next time.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


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

* Re: linux-yocto fetch bottleneck
       [not found]   ` <CAPphmgbHhHMRTAGtXMsHfbHR6FuQa7MODGW_UQY22xCO2Z38MQ@mail.gmail.com>
@ 2014-03-21 22:04     ` Gary Thomas
  2014-03-24 23:18       ` Jate S
  0 siblings, 1 reply; 5+ messages in thread
From: Gary Thomas @ 2014-03-21 22:04 UTC (permalink / raw)
  To: Jate S; +Cc: Yocto Project

On 2014-03-21 15:54, Jate S wrote:
> The documentation has warnings of space usage. Will it start using
> lots of space? If so, can I use it on a per mirror basis?

Yes, the tarballs can be quite large, but they are incredibly useful
with a local mirror.  Especially when you consider that updating a GIT
checkout, e.g. the Linux kernel. can take a *really* long time.

> I am using a local mirror, so maybe the space usage will not be a problem.

The space needed will not be terribly different than what you've already
encountered without generating the tarballs.

n.b. it's polite to keep replies on the mailing list so that everyone benefits.

> On Fri, Mar 21, 2014 at 5:33 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>> On 2014-03-21 15:27, Jate S wrote:
>>> I am running into a bottleneck with the linux-yocto recipe on dora
>>> 1.5.1. The fetch retrieves git2_git.yoctoproject.org.git.tar.gz, but
>>> then it hits a bottleneck when it must do a git fetch to update to the
>>> required references. The git server does not have high bandwdith.
>>>
>>> One workaround that I've found is to archive the git repository and
>>> replace the tar.gz in the downloads directory. The recipe then finds
>>> the required references.
>>>
>>> Would BB_GENERATE_MIRROR_TARBALLS actually take care of this? Any
>>> other recommendations?
>>
>> Yes, that's exactly what BB_GENERATE_MIRROR_TARBALLS does.  The updated
>> tarball will end up in your downloads directory.  If you use any sort of
>> local mirror, you'll want to push the new tarball to it for the next time.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


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

* Re: linux-yocto fetch bottleneck
  2014-03-21 22:04     ` Gary Thomas
@ 2014-03-24 23:18       ` Jate S
  2014-03-24 23:25         ` Gary Thomas
  0 siblings, 1 reply; 5+ messages in thread
From: Jate S @ 2014-03-24 23:18 UTC (permalink / raw)
  To: Gary Thomas; +Cc: Yocto Project

What is the name of the mirror tarball that's created? I am trying to
see if it worked. I saw no log messages stating "Creating tarball of
git repository".


On Fri, Mar 21, 2014 at 6:04 PM, Gary Thomas <gary@mlbassoc.com> wrote:
> On 2014-03-21 15:54, Jate S wrote:
>> The documentation has warnings of space usage. Will it start using
>> lots of space? If so, can I use it on a per mirror basis?
>
> Yes, the tarballs can be quite large, but they are incredibly useful
> with a local mirror.  Especially when you consider that updating a GIT
> checkout, e.g. the Linux kernel. can take a *really* long time.
>
>> I am using a local mirror, so maybe the space usage will not be a problem.
>
> The space needed will not be terribly different than what you've already
> encountered without generating the tarballs.
>
> n.b. it's polite to keep replies on the mailing list so that everyone benefits.
>
>> On Fri, Mar 21, 2014 at 5:33 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>>> On 2014-03-21 15:27, Jate S wrote:
>>>> I am running into a bottleneck with the linux-yocto recipe on dora
>>>> 1.5.1. The fetch retrieves git2_git.yoctoproject.org.git.tar.gz, but
>>>> then it hits a bottleneck when it must do a git fetch to update to the
>>>> required references. The git server does not have high bandwdith.
>>>>
>>>> One workaround that I've found is to archive the git repository and
>>>> replace the tar.gz in the downloads directory. The recipe then finds
>>>> the required references.
>>>>
>>>> Would BB_GENERATE_MIRROR_TARBALLS actually take care of this? Any
>>>> other recommendations?
>>>
>>> Yes, that's exactly what BB_GENERATE_MIRROR_TARBALLS does.  The updated
>>> tarball will end up in your downloads directory.  If you use any sort of
>>> local mirror, you'll want to push the new tarball to it for the next time.
>
> --
> ------------------------------------------------------------
> Gary Thomas                 |  Consulting for the
> MLB Associates              |    Embedded world
> ------------------------------------------------------------


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

* Re: linux-yocto fetch bottleneck
  2014-03-24 23:18       ` Jate S
@ 2014-03-24 23:25         ` Gary Thomas
  0 siblings, 0 replies; 5+ messages in thread
From: Gary Thomas @ 2014-03-24 23:25 UTC (permalink / raw)
  To: Jate S; +Cc: Yocto Project

On 2014-03-24 17:18, Jate S wrote:
> What is the name of the mirror tarball that's created? I am trying to
> see if it worked. I saw no log messages stating "Creating tarball of
> git repository".

It will look something like this (for the opkg-utils_git recipe)
  downloads/git2_git.yoctoproject.org.opkg-utils.tar.gz

You should then  arrange to move/copy any of these tarballs to your mirror
so you benefit from this the next time around (when building in a new/different
build tree)

> On Fri, Mar 21, 2014 at 6:04 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>> On 2014-03-21 15:54, Jate S wrote:
>>> The documentation has warnings of space usage. Will it start using
>>> lots of space? If so, can I use it on a per mirror basis?
>>
>> Yes, the tarballs can be quite large, but they are incredibly useful
>> with a local mirror.  Especially when you consider that updating a GIT
>> checkout, e.g. the Linux kernel. can take a *really* long time.
>>
>>> I am using a local mirror, so maybe the space usage will not be a problem.
>>
>> The space needed will not be terribly different than what you've already
>> encountered without generating the tarballs.
>>
>> n.b. it's polite to keep replies on the mailing list so that everyone benefits.
>>
>>> On Fri, Mar 21, 2014 at 5:33 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>>>> On 2014-03-21 15:27, Jate S wrote:
>>>>> I am running into a bottleneck with the linux-yocto recipe on dora
>>>>> 1.5.1. The fetch retrieves git2_git.yoctoproject.org.git.tar.gz, but
>>>>> then it hits a bottleneck when it must do a git fetch to update to the
>>>>> required references. The git server does not have high bandwdith.
>>>>>
>>>>> One workaround that I've found is to archive the git repository and
>>>>> replace the tar.gz in the downloads directory. The recipe then finds
>>>>> the required references.
>>>>>
>>>>> Would BB_GENERATE_MIRROR_TARBALLS actually take care of this? Any
>>>>> other recommendations?
>>>>
>>>> Yes, that's exactly what BB_GENERATE_MIRROR_TARBALLS does.  The updated
>>>> tarball will end up in your downloads directory.  If you use any sort of
>>>> local mirror, you'll want to push the new tarball to it for the next time.
>>
>> --
>> ------------------------------------------------------------
>> Gary Thomas                 |  Consulting for the
>> MLB Associates              |    Embedded world
>> ------------------------------------------------------------

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


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

end of thread, other threads:[~2014-03-24 23:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-21 21:27 linux-yocto fetch bottleneck Jate S
2014-03-21 21:33 ` Gary Thomas
     [not found]   ` <CAPphmgbHhHMRTAGtXMsHfbHR6FuQa7MODGW_UQY22xCO2Z38MQ@mail.gmail.com>
2014-03-21 22:04     ` Gary Thomas
2014-03-24 23:18       ` Jate S
2014-03-24 23:25         ` 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.