Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux: Kernel

git fetching

 

 

Linux kernel RSS feed   Index | Next | Previous | View Threaded


alejandro.bonilla at hp

Dec 29, 2005, 4:53 PM

Post #1 of 5 (1817 views)
Permalink
git fetching

Why is it that when I git fetch, this particular part takes a long time?

pack/pack-2dae6bb81ac4383926b1d6a646e3f73b130ba124.pack

Normally, they go pretty fast, but when a new rc or final releases comes
up, it takes a lot.

Any idea?

Thanks,

.Alejandro
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


davej at redhat

Dec 29, 2005, 5:01 PM

Post #2 of 5 (1681 views)
Permalink
Re: git fetching [In reply to]

On Thu, Dec 29, 2005 at 06:53:42PM -0600, Alejandro Bonilla wrote:
> Why is it that when I git fetch, this particular part takes a long time?
>
> pack/pack-2dae6bb81ac4383926b1d6a646e3f73b130ba124.pack
>
> Normally, they go pretty fast, but when a new rc or final releases comes
> up, it takes a lot.

That file is ~100MB. That'll take a while to download compared to the rest,
even on the fastest net connection :)

Dave

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


ryan at michonline

Dec 29, 2005, 5:17 PM

Post #3 of 5 (1670 views)
Permalink
Re: git fetching [In reply to]

Dave Jones wrote:
> On Thu, Dec 29, 2005 at 06:53:42PM -0600, Alejandro Bonilla wrote:
> > Why is it that when I git fetch, this particular part takes a long time?
> >
> > pack/pack-2dae6bb81ac4383926b1d6a646e3f73b130ba124.pack
> >
> > Normally, they go pretty fast, but when a new rc or final releases comes
> > up, it takes a lot.
>
> That file is ~100MB. That'll take a while to download compared to the rest,
> even on the fastest net connection :)

If you're carrying around a mostly current tree, you should probably not
use "rsync" (which is probably why you're seeing that pack line)

Run this:
sed -i.old -e 's/rsync/git/' .git/remotes/origin
and your pulls should go significantly faster.

(The file named "origin" might be in .git/branches/, also.)

You want the file to contain pretty much just this line:
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git

Also, out of curiosity, do:
du -sh .git/objects/ .git/objects/pack/

You shouldn't see a .git/objects/pack/ much greater than 200 meg, in
fact, on freshly cloned tree it would only be about 100 meg:

http://www.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/

--

Ryan Anderson
sometimes Pug Majere
Attachments: signature.asc (0.25 KB)


qiyong at fc-cn

Dec 29, 2005, 11:13 PM

Post #4 of 5 (1676 views)
Permalink
Re: git fetching [In reply to]

Ryan Anderson wrote:

>Dave Jones wrote:
>
>
>>On Thu, Dec 29, 2005 at 06:53:42PM -0600, Alejandro Bonilla wrote:
>> > Why is it that when I git fetch, this particular part takes a long time?
>> >
>> > pack/pack-2dae6bb81ac4383926b1d6a646e3f73b130ba124.pack
>> >
>> > Normally, they go pretty fast, but when a new rc or final releases comes
>> > up, it takes a lot.
>>
>>That file is ~100MB. That'll take a while to download compared to the rest,
>>even on the fastest net connection :)
>>
>>
>
>If you're carrying around a mostly current tree, you should probably not
>use "rsync" (which is probably why you're seeing that pack line)
>
>Run this:
> sed -i.old -e 's/rsync/git/' .git/remotes/origin
>and your pulls should go significantly faster.
>
>

I don't have the directory .git/remotes/. Here's .git/FETCH_HEAD however.

>(The file named "origin" might be in .git/branches/, also.)
>
>

Yes, here's .git/branches/origin.

-- Coywolf

>You want the file to contain pretty much just this line:
>git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
>
>Also, out of curiosity, do:
> du -sh .git/objects/ .git/objects/pack/
>
>You shouldn't see a .git/objects/pack/ much greater than 200 meg, in
>fact, on freshly cloned tree it would only be about 100 meg:
>
>http://www.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/
>
>
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


xavier.bestel at free

Dec 30, 2005, 1:42 AM

Post #5 of 5 (1654 views)
Permalink
Re: git fetching [In reply to]

On Fri, 2005-12-30 at 02:17, Ryan Anderson wrote:

> Also, out of curiosity, do:
> du -sh .git/objects/ .git/objects/pack/
>
> You shouldn't see a .git/objects/pack/ much greater than 200 meg, in
> fact, on freshly cloned tree it would only be about 100 meg:
>
> http://www.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/

[xav [at] bi:~/git/linux-2.6]$ du -sh .git/objects/ .git/objects/pack/
1019M .git/objects/
645M .git/objects/pack/

It's not freshly cloned, but it's freshly updated and contains nothing
but the upstream sources.

Xav


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Linux kernel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.