Problem with git-clone

3 messages, 2 authors, 2016-06-15 · open the first message on its own page

Problem with git-clone

From: Parag Warudkar <hidden>
Date: 2016-06-15 22:43:06

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

Re: Problem with git-clone

From: Shawn O. Pearce <hidden>
Date: 2016-06-15 22:43:06

Parag Warudkar [off-list ref] 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.

Re: Problem with git-clone

From: Parag Warudkar <hidden>
Date: 2016-06-15 22:43:06

On 4/21/07, Shawn O. Pearce [off-list ref] 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.
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help