# Problem with git-clone

3 messages from 2007-04-21 to 2007-04-22. Participants: Parag Warudkar, Shawn O. Pearce.
Thread: https://gitlist.dev/t/7769

## Parag Warudkar, 2007-04-21 17:15

Subject: Problem with git-clone
Message-ID: <loom.20070421T190848-931@post.gmane.org>
URL: https://gitlist.dev/e/loom.20070421T190848-931%40post.gmane.org

```
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, 2007-04-22 01:17

Subject: Re: Problem with git-clone
Message-ID: <20070422011743.GE17480@spearce.org>
URL: https://gitlist.dev/e/20070422011743.GE17480%40spearce.org
In-Reply-To: <loom.20070421T190848-931@post.gmane.org>

```
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, 2007-04-22 02:35

Subject: Re: Problem with git-clone
Message-ID: <82e4877d0704211935i396c54c8ld279527039edff40@mail.gmail.com>
URL: https://gitlist.dev/e/82e4877d0704211935i396c54c8ld279527039edff40%40mail.gmail.com
In-Reply-To: <20070422011743.GE17480@spearce.org>

```
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.

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

```
