git and multiple cores
I'm using git 1.6.1.3 and it seems to be limited to a single core. Given that I've seen cases where the cpu has been basically pinned for minutes on end (initial clone of a repository, for instance) has there been any discussion of taking advantage of multiple cores?
Chris
Quoted 5 lines · Chris Friesen
I'm using git 1.6.1.3 and it seems to be limited to a single core. Given that I've seen cases where the cpu has been basically pinned for minutes on end (initial clone of a repository, for instance) has there been any discussion of taking advantage of multiple cores?
Sounds like you're mostly concerned about packing.
The good news is, your version of git already has a threaded packer. You just need to enable it. See "pack.threads" in "git help config".
1.6.2 and newer use multiple threads by default.
Peter Harris
Quoted 7 lines · Peter Harris
Quoted 5 lines · Chris Friesen
I'm using git 1.6.1.3 and it seems to be limited to a single core. Given that I've seen cases where the cpu has been basically pinned for minutes on end (initial clone of a repository, for instance) has there been any discussion of taking advantage of multiple cores?
Quoted 6 lines
Sounds like you're mostly concerned about packing.
The good news is, your version of git already has a threaded packer. You just need to enable it. See "pack.threads" in "git help config".
1.6.2 and newer use multiple threads by default.
True, but he was talking about initial clone, which on the client side is git-index-pack. Which is not threaded.
Signature · 1 line
Shawn.
Quoted 10 lines · Shawn O. Pearce
Quoted 9 lines · Peter Harris
Quoted 5 lines · Chris Friesen
I'm using git 1.6.1.3 and it seems to be limited to a single core. Given that I've seen cases where the cpu has been basically pinned for minutes on end (initial clone of a repository, for instance) has there been any discussion of taking advantage of multiple cores?
Sounds like you're mostly concerned about packing.
Quoted 7 lines
Quoted 4 lines
The good news is, your version of git already has a threaded packer. You just need to enable it. See "pack.threads" in "git help config".
1.6.2 and newer use multiple threads by default.
True, but he was talking about initial clone, which on the client side is git-index-pack. Which is not threaded.
Ah. I thought he was talking about the server side. My mistake.
Peter Harris
Quoted 16 lines · Peter Harris
Quoted 14 lines · Shawn O. Pearce
Quoted 12 lines · Peter Harris
Quoted 4 lines · Chris Friesen
I'm using git 1.6.1.3 and it seems to be limited to a single core. Given that I've seen cases where the cpu has been basically pinned for minutes on end (initial clone of a repository, for instance) has there been any discussion of taking advantage of multiple cores?
Sounds like you're mostly concerned about packing.
The good news is, your version of git already has a threaded packer. You just need to enable it. See "pack.threads" in "git help config".
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
1.6.2 and newer use multiple threads by default.
True, but he was talking about initial clone, which on the client side is git-index-pack. Which is not threaded.
Ah. I thought he was talking about the server side. My mistake.
Sorry, I wasn't clear. I was talking about the client side, although the server side information is useful to have.
I have a 4-way machine as a client, and it just seemed odd that git could only use one core.
Chris
Quoted 7 lines · Chris Friesen
Quoted 6 lines · Peter Harris
Quoted 2 lines · Shawn O. Pearce
True, but he was talking about initial clone, which on the client side is git-index-pack. Which is not threaded.
Quoted 7 lines
Quoted 1 line
Ah. I thought he was talking about the server side. My mistake.
Sorry, I wasn't clear. I was talking about the client side, although the server side information is useful to have.
I have a 4-way machine as a client, and it just seemed odd that git could only use one core.
It can use them all when repacking or pushing. But on a clone or fetch your client machine deals with incoming data using index-pack which is much more trickier to thread.
Nicolas