Problem with git-clone
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 quitread(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
Quoted 2 lines · Parag Warudkar
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.
Quoted 2 lines
git --version
git version 1.4.4.2
I'd upgrade your Git, the current version is 1.5.1.1.
Signature · 1 line
Shawn.
Quoted 4 lines · Shawn O. Pearce
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.
Quoted 5 lines
Quoted 3 lines
git --version
git version 1.4.4.2I'd upgrade your Git, the current version is 1.5.1.1.
Yes, on my list.
Thanks
Parag