All of lore.kernel.org
 help / color / mirror / Atom feed
* git fetching
@ 2005-12-30  0:53 Alejandro Bonilla
  2005-12-30  1:01 ` Dave Jones
  0 siblings, 1 reply; 5+ messages in thread
From: Alejandro Bonilla @ 2005-12-30  0:53 UTC (permalink / raw)
  To: Linux Kernel Mailing List

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

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

* Re: git fetching
  2005-12-30  0:53 git fetching Alejandro Bonilla
@ 2005-12-30  1:01 ` Dave Jones
  2005-12-30  1:17   ` Ryan Anderson
  0 siblings, 1 reply; 5+ messages in thread
From: Dave Jones @ 2005-12-30  1:01 UTC (permalink / raw)
  To: Alejandro Bonilla; +Cc: Linux Kernel Mailing List

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


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

* Re: git fetching
  2005-12-30  1:01 ` Dave Jones
@ 2005-12-30  1:17   ` Ryan Anderson
  2005-12-30  7:13     ` Qi Yong
  2005-12-30  9:42     ` Xavier Bestel
  0 siblings, 2 replies; 5+ messages in thread
From: Ryan Anderson @ 2005-12-30  1:17 UTC (permalink / raw)
  To: Alejandro Bonilla; +Cc: Dave Jones, Linux Kernel Mailing List

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

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

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]

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

* Re: git fetching
  2005-12-30  1:17   ` Ryan Anderson
@ 2005-12-30  7:13     ` Qi Yong
  2005-12-30  9:42     ` Xavier Bestel
  1 sibling, 0 replies; 5+ messages in thread
From: Qi Yong @ 2005-12-30  7:13 UTC (permalink / raw)
  To: Ryan Anderson; +Cc: Alejandro Bonilla, Dave Jones, Linux Kernel Mailing List

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/
>
>  
>


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

* Re: git fetching
  2005-12-30  1:17   ` Ryan Anderson
  2005-12-30  7:13     ` Qi Yong
@ 2005-12-30  9:42     ` Xavier Bestel
  1 sibling, 0 replies; 5+ messages in thread
From: Xavier Bestel @ 2005-12-30  9:42 UTC (permalink / raw)
  To: Ryan Anderson; +Cc: Alejandro Bonilla, Dave Jones, Linux Kernel Mailing List

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@bip:~/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



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

end of thread, other threads:[~2005-12-30  9:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-30  0:53 git fetching Alejandro Bonilla
2005-12-30  1:01 ` Dave Jones
2005-12-30  1:17   ` Ryan Anderson
2005-12-30  7:13     ` Qi Yong
2005-12-30  9:42     ` Xavier Bestel

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.