threads / discuss / 7769

Problem with git-clone

Subject: Problem with git-clone

## tl;dr

3 messages between Apr 21, 2007 and Apr 22, 2007.

replies: 2people: 2as markdown or json

Parag Warudkar· Apr 21, 2007, 17:15 UTC · lore

I have a reproducible problem with git-index-pack getting stuck. Is this a known problem fixed in one of the later releases?

git --version git version 1.4.4.2

git-clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
linux-2.6-wk
remote: Generating pack...
remote: Done counting 445435 objects.
remote: Deltifying 445435 objects.
remote:  100% (445435/445435) done
Indexing 445435 objects.
   0% (194/445435) done

It stays there for ever. If I attach to all the git-* processes using strace here is what it shows -

 strace -p 9055  # This is git-index-pack
Process 9055 attached - interrupt to quit
read(0, 0x8063ba0, 4096)                = ? ERESTARTSYS (To be restarted)
--- SIGALRM (Alarm clock) @ 0 (0) ---
sigreturn()                             = ? (mask now [])
read(0, 0x8063ba0, 4096)                = ? ERESTARTSYS (To be restarted)
--- SIGALRM (Alarm clock) @ 0 (0) ---
sigreturn()                             = ? (mask now [])
read(0,  <unfinished ...>
Process 9055 detached
 strace -p 9054 # This is git-fetch-pack
Process 9054 attached - interrupt to quit
read(3,  <unfinished ...>
Process 9054 detached
paragw@paragw-desktop:~$ strace -p 9053 #git-fetch-pack
Process 9053 attached - interrupt to quit
waitpid(9055,  <unfinished ...>
Process 9053 detached
paragw@paragw-desktop:~$ strace -p 9046 # This is git-clone
Process 9046 attached - interrupt to quit
wait4(-1,  <unfinished ...>
Process 9046 detached
Shawn O. Pearce· Apr 22, 2007, 01:17 UTC · re: Parag Warudkar · lore

Re: Problem with git-clone

Parag Warudkar <parag.warudkar@gmail.com> wrote:
> I have a reproducible problem with git-index-pack getting stuck. 
> Is this a known problem fixed in one of the later releases? 
Are you on Mac OS X?  We found that earlier versions of index-pack on
that platform ran poorly unless we used pread().  A change was made
in 1.5.0 to switch to pread for all platforms, which significantly
improved performance.
 
> git --version
> git version 1.4.4.2
I'd upgrade your Git, the current version is 1.5.1.1.
-- 
Shawn.
Parag Warudkar· Apr 22, 2007, 02:35 UTC · re: Shawn O. Pearce · lore

Re: Problem with git-clone

On 4/21/07, Shawn O. Pearce <spearce@spearce.org> wrote:
> Are you on Mac OS X?  We found that earlier versions of index-pack on
> that platform ran poorly unless we used pread().  A change was made
> in 1.5.0 to switch to pread for all platforms, which significantly
> improved performance.

Nope, I am on Linux. But I did some more debugging and found that my router is the culprit - it has ACK errors in the logs and things start working fine if I switch to another router.

Show 5 quoted lines
>
> > git --version
> > git version 1.4.4.2
>
> I'd upgrade your Git, the current version is 1.5.1.1.
Yes, on my list.

Thanks Parag

← back to recent threads