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

Re: git packs

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Nov 10, 2007, 06:53 UTC
Message-ID
<alpine.LFD.0.999.0711092244080.15101@woody.linux-foundation.org>
In-Reply-To
<alpine.LFD.0.999.0711092211250.15101@woody.linux-foundation.org>
On Fri, 9 Nov 2007, Linus Torvalds wrote:
Show 7 quoted lines
> 
> That said, I have worked with a 3GB pack-file (one of the KDE trial 
> repos). That worked fine. But git does tend to want a *lot* of memory for 
> really big repositories, so I suspect that if you actually work with 2GB+ 
> pack-files, you'll be wanting a 64-bit environment just because you'll be 
> wanting more than 2GB of physical RAM in order to be able to access it 
> efficiently.

Just double-checked. Yes, sirree. You definitely want 4GB+ if you are cloning a 3GB git pack-file. The "git-pack-objects" phase not only is going to walk all over the pack-file, it's going to add its own memory footprint on top of that just keeping track of all the objects.

So I doubt 2GB+ pack-files are all that practical on 32-bit hosts. At least not with the kind of performance behaviour *I* would accept.

(Of course, since git packs things pretty damn well, it would need to be a really really big project to be a 2GB+ pack-file, or just contain a lot of generally large non-deltable binary data file - one scenario where git definitely doesn't work wonderfully well, although I doubt many other SCM's do either..)

			Linus
Previous: Linus TorvaldsNext: bob
Message 8 of 19 in “git packs”
  1. bobNov 10, 2007
  2. Nicolas PitreNov 10, 2007
  3. bobNov 10, 2007
  4. Luke LuNov 10, 2007
  5. Linus TorvaldsNov 10, 2007
  6. David BrownNov 10, 2007
  7. Linus TorvaldsNov 10, 2007
  8. Linus TorvaldsNov 10, 2007
  9. bobNov 10, 2007
  10. Nicolas PitreNov 11, 2007
  11. bobNov 12, 2007
  12. Nicolas PitreNov 12, 2007
  13. bobNov 12, 2007
  14. bobNov 10, 2007
  15. David BrownNov 10, 2007
  16. bobNov 10, 2007
  17. Derek FawcusNov 11, 2007
  18. bobNov 11, 2007
  19. Martin LanghoffNov 12, 2007

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.