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:58 UTC
Message-ID
<alpine.LFD.0.999.0711092254130.15101@woody.linux-foundation.org>
In-Reply-To
<DF65F7E4-448A-4726-8B42-642776155A8F@vicaya.com>
On Fri, 9 Nov 2007, Luke Lu wrote:
Show 6 quoted lines
> 
> mmap(2), which git uses by default, is subject to vm limits (typically <2GB),
> regardless of large file support. file `which git` will probably tell you that
> it's a Mach-O executable i386 instead of x86_64. In order to get 64 bit
> binaries on Mactel boxes, you'll need the -m64 flag for gcc. I suspect that
> compiling with NO_MMAP option work as well.

Even with NO_MMAP, git will still want to read in source files in their entirety (just with regular reads). So you'll still be VM size-limited: the mmap() will just be replaced with a malloc+read in order to avoid some broken windows mmap() behaviour.

But hearing whether -m64 makes a difference would be interesting. I'm hoping OS X is LP64, not some insane half-way thing like Vista is.

		Linus
Previous: Luke LuNext: David Brown
Message 5 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.