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

Re: [BUG?] gc and impatience

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Aug 5, 2013, 17:34 UTC
Message-ID
<CALkWK0=djXdPMOvk8359nOs=rGLbBepxyXnpELfWs+wjjN7YZw@mail.gmail.com>
In-Reply-To
<1rpxs5pa827iefbyduyodlc7.1375495435629@email.android.com>
Martin Fick wrote:
> https://gerrit-review.googlesource.com/#/c/35215/
Very cool. Of what I understood:

So, the problem is that my .git/objects/pack is polluted with little packs everytime I fetch (or push, if you're the server), and this is problematic from the perspective of a overtly (naively) aggressive gc that hammers out all fragmentation. So, on the first run, the little packfiles I have are all "consolidated" into big packfiles; you also write .keep files to say that "don't gc these big packs we just generated". In subsequent runs, the little packfiles from the fetch are absorbed into a pack that is immune to gc. You're also using a size heuristic, to consolidate similarly sized packfiles. You also have a --ratio to tweak the ratio of sizes.

I've checked it in and started using it; so yeah: I'll chew on it for a few weeks.

Thanks.
Next: Martin Fick
Message 1 of 3 in “Re: [BUG?] gc and impatience”
  1. Ramkumar RamachandraAug 5, 2013
  2. Martin FickAug 5, 2013
  3. Ramkumar RamachandraAug 6, 2013

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.