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

Re: [PATCH 0/2] builtin/maintenance: improve heuristic for "rerere gc"

From
Thomas Bachem <mail@thomasbachem.com>
Date
Sep 3, 2026, 12:12 UTC
Message-ID
<CAA0xjtoUzHf0bGzydZ9PR=sgz=mdA=4pDDkHr5uJhv9fT9ShsA@mail.gmail.com>
In-Reply-To
<20260903-b4-pks-maintenance-rerere-gc-heuristic-v1-0-9929c45a9788@pks.im>
Hi Patrick,
On Thu, Sep 03, 2026 at 11:04:56AM +0200, Patrick Steinhardt wrote:
> as reported and discussed in [1]. Thanks!

Thanks for the quick turnaround. I built the series on 3cb9185f65, t4200 and t7900 pass, and it does what the commit message says: with the default of 512, a single stale entry in the sample is not enough and two are, and fresh entries never trigger it however many there are.

That takes the gc out of my repro, for two reasons: its 20000 entries are fresh, and their names come from a counter rather than a hash, so none starts with 17 and the sampler never sees them. With 5000 real hashes as names, all older than the cutoff, "git maintenance is-needed --auto --task=rerere-gc" reports it as needed again, so the repro in v2 will look like that.

Tested-by: Thomas Bachem <mail@thomasbachem.com>

Thanks, Tom

Previous: Patrick SteinhardtNext: Patrick Steinhardt
Message 8 of 17 in “builtin/maintenance: improve heuristic for "rerere gc"”
  1. 0/2 builtin/maintenance: improve heuristic for "rerere gc"Patrick Steinhardt, Sep 3, 2026
  2. 1/2 rerere: extract logic to determine whether entries are stalePatrick Steinhardt, Sep 3, 2026
  3. Derrick StoleeSep 3, 2026
  4. Patrick SteinhardtSep 4, 2026
  5. 2/2 builtin/maintenance: improve heuristic for "rerere gc"Patrick Steinhardt, Sep 3, 2026
  6. Derrick StoleeSep 3, 2026
  7. Patrick SteinhardtSep 4, 2026
  8. Thomas BachemSep 3, 2026
  9. 0/2 builtin/maintenance: improve heuristic for "rerere gc"Patrick Steinhardt, Sep 4, 2026
  10. 1/2 rerere: extract logic to determine whether entries are stalePatrick Steinhardt, Sep 4, 2026
  11. 2/2 builtin/maintenance: improve heuristic for "rerere gc"Patrick Steinhardt, Sep 4, 2026
  12. Derrick StoleeSep 4, 2026
  13. Junio C HamanoSep 4, 2026
  14. Junio C HamanoSep 4, 2026
  15. Thomas BachemSep 4, 2026
  16. Patrick SteinhardtSep 7, 2026
  17. Patrick SteinhardtSep 7, 2026

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.