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

Re: git slow unless piped to cat

From
Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Date
Aug 28, 2019, 10:24 UTC
Message-ID
<20190828102417.un2hjuizfmu3n7ya@pengutronix.de>
In-Reply-To
<CAGyf7-EaumF+oZFUhNtifrCvqBr1DjcFh8rgQMswcpwip3Bx7w@mail.gmail.com>
Hello,
On Tue, Aug 27, 2019 at 02:38:57PM -0700, Bryan Turner wrote:
Show 22 quoted lines
> On Tue, Aug 27, 2019 at 2:32 PM Uwe Kleine-König
> <u.kleine-koenig@pengutronix.de> wrote:
> >
> > On Tue, Aug 27, 2019 at 02:59:30PM -0400, Jeff King wrote:
> > > On Tue, Aug 27, 2019 at 12:04:27PM +0200, Uwe Kleine-König wrote:
> > >
> > > to see the loose ones. If there are a lot, try:
> > >
> > >   git pack-refs --prune --all
> > >
> > > (or just "git gc", which does this).
> >
> > This is a daily updated mirror that is also incrementally backed up. I
> > repack from time to time, but hesitate to do this regularily as each
> > time I repack the next backup run is "expensive" and I get many small
> > packs. I did this now anyhow.
> 
> Just noting that Jeff didn't suggest a repack; he suggested a
> pack-refs. This should have little, if any impact on your backup
> processing, because all it's going to do is rewrite the "packed-refs"
> file and delete loose refs. It doesn't modify any files under objects/
> at all.

Ah, right. That also explains why I still had a few loose objects. I cut-n-pasted the command, so I did as suggested, just thought it was something different.

Thanks Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Previous: Bryan Turner
Message 13 of 13 in “git slow unless piped to cat”
  1. Uwe Kleine-KönigAug 27, 2019
  2. SZEDER GáborAug 27, 2019
  3. Uwe Kleine-KönigAug 27, 2019
  4. Philipp ZabelAug 27, 2019
  5. SZEDER GáborAug 27, 2019
  6. Uwe Kleine-KönigAug 27, 2019
  7. SZEDER GáborAug 27, 2019
  8. Uwe Kleine-KönigAug 27, 2019
  9. Michal SuchánekAug 27, 2019
  10. Jeff KingAug 27, 2019
  11. Uwe Kleine-KönigAug 27, 2019
  12. Bryan TurnerAug 27, 2019
  13. Uwe Kleine-KönigAug 28, 2019

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.