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

Re: Preserve/Prune Old Pack Files

From
MFMartin Fick <mfick@codeaurora.org>
Date
Jan 9, 2017, 16:20 UTC
Message-ID
<3341131.K6hMDMB8iT@mfick1-lnx>
In-Reply-To
<20170109105545.gchfklcuzwhlfbtf@sigill.intra.peff.net>
On Monday, January 09, 2017 05:55:45 AM Jeff King wrote:
> On Mon, Jan 09, 2017 at 04:01:19PM +0900, Mike Hommey 
wrote:
Show 9 quoted lines
> > > That's _way_ more complicated than your problem, and
> > > as I said, I do not have a finished solution. But it
> > > seems like they touch on a similar concept (a
> > > post-delete holding area for objects). So I thought
> > > I'd mention it in case if spurs any brilliance.
> > 
> > Something that is kind-of in the same family of problems
> > is the "loosening" or objects on repacks, before they
> > can be pruned.
...
Show 14 quoted lines
> Yes, this can be a problem. The repack is smart enough not
> to write out objects which would just get pruned
> immediately, but since the grace period is 2 weeks, that
> can include a lot of objects (especially with history
> rewriting as you note). It would be possible to write
> those loose objects to a "cruft" pack, but there are some
> management issues around the cruft pack. You do not want
> to keep repacking them into a new cruft pack at each
> repack, since then they would never expire. So you need
> some way of marking the pack as cruft, letting it age
> out, and then deleting it after the grace period expires.
> 
> I don't think it would be _that_ hard, but AFAIK nobody
> has ever made patches.
FYI, jgit does this,
-Martin
-- 
The Qualcomm Innovation Center, Inc. is a member of Code 
Aurora Forum, hosted by The Linux Foundation
Previous: Jeff KingNext: Martin Fick
Message 5 of 7 in “Re: Preserve/Prune Old Pack Files”
  1. Martin FickJan 4, 2017
  2. Jeff KingJan 9, 2017
  3. Mike HommeyJan 9, 2017
  4. Jeff KingJan 9, 2017
  5. Martin FickJan 9, 2017
  6. Martin FickJan 9, 2017
  7. Jeff KingJan 10, 2017

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.