git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-local-pull

From
JGJeff Garzik <jgarzik@pobox.com>
Date
Jun 27, 2005, 05:31 UTC
Message-ID
<42BF8F2D.1070808@pobox.com>
In-Reply-To
<Pine.LNX.4.58.0506262213220.19755@ppc970.osdl.org>
Linus Torvalds wrote:
Show 24 quoted lines
> 
> On Sun, 26 Jun 2005, David S. Miller wrote:
> 
>>I tried to start using git-clone-script to clone repositories
>>locally.  It crunches on the disk for a couple of seconds,
>>that's fine, but then I notice the disk activity stop and
>>git-local-pull becomes cpu bound and grows to 80MB in size
>>over the course of 5 minutes.
> 
> 
> Try adding "-l" to the git-local-pull command line, to make it do 
> hardlinks by default (and fall back to a copy if that fails).
> 
> 
>>Is this a side effect of the new pack/unpack stuff?
> 
> 
> Nope, nothing uses that yet. 
> 
> I think the 80MB is just because it built up the object relationship for 
> the whole kernel db there. I don't know what the 5 minutes of CPU are, 
> though, it should just be copying stuff (and at 250MB in and 250MB out, 
> that's a lot of stuff to copy, but it shouldn't be five minutes worth, 
> especially if it's all cached and you see a pegged CPU).

FWIW, I notice that git-diff-tree uses >100MB of RAM, on a large git-pull-script run. It's generating the diffstat output, AFAICS.

	Jeff
Previous: Linus TorvaldsNext: Linus Torvalds
Message 3 of 4 in “git-local-pull”
  1. David S. MillerJun 27, 2005
  2. Linus TorvaldsJun 27, 2005
  3. Jeff GarzikJun 27, 2005
  4. Linus TorvaldsJun 27, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.