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

Re: Reducing the memory footprint

From
Brian Downing <bdowning@lavos.net>
Date
Nov 10, 2007, 00:53 UTC
Message-ID
<20071110005327.GH6212@lavos.net>
In-Reply-To
<9e4733910711091538h260fbcd2s5783f01e7db4b19a@mail.gmail.com>
On Fri, Nov 09, 2007 at 06:38:00PM -0500, Jon Smirl wrote:
Show 10 quoted lines
> I'm using this config file:
> 
> [pack]
>         windowMemory = 1M
>         deltaCacheSize = 1M
> 
> And I have NO_MMAP compiled in.
> 
> git is still using over 200MB of memory or address space, my process
> gets killed either way.

I'm assuming it's dying on repacking since you included the pack parameters.

How big is your biggest object? Even with pack.windowMemory, it still keeps the last object around to try and delta against (in other words, the window only shrinks to size 1), which means you have to have room for it and its delta index.

-bcd
Previous: Jon SmirlNext: Jon Smirl
Message 2 of 4 in “Reducing the memory footprint”
  1. Jon SmirlNov 9, 2007
  2. Brian DowningNov 10, 2007
  3. Jon SmirlNov 10, 2007
  4. Jon SmirlNov 10, 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.