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

Re: THREADED_DELTA_SEARCH

From
Nicolas Pitre <nico@cam.org>
Date
Jul 10, 2008, 16:21 UTC
Message-ID
<alpine.LFD.1.10.0807101212000.12484@xanadu.home>
In-Reply-To
<7vy749pxbe.fsf@gitster.siamese.dyndns.org>
On Thu, 10 Jul 2008, Junio C Hamano wrote:
Show 19 quoted lines
> Pierre Habouzit <madcoder@debian.org> writes:
> 
> >   I'm using it in production for quite a long time now, and I wonder if
> > there is any specific reason why it's not default. Debian activated it
> > by default too a couple of weeks ago, which means that it's in
> > production on quite a large scale, and there are no issues reported
> > either. Would a patch making it default be accepted ? It's quite handy
> > given that SMP machines are really pervasive nowadays…
> 
> There were two issues, IIRC.
> 
>  (1) resulting pack could be suboptimal, due to delta-chain getting cut
>      betweeen the worker thread boundary.
> 
>  (2) exploding memory use, suspected to be due to malloc pool
>      fragmentation under multithreading.
> 
> The former was only an issue with early iterations of the code and the
> current code has much improved behaviour on this point,
I would say it is even negligible.
> but I do not
> recall the latter issue has been addressed.

Well, for "standard" repositories such as the Linux kernel, things always worked just fine. And commit eac12e2d is apparently helping a lot with the remaining odd cases. And if someone has problems due to this then a simple 'git config --global pack.threads 1' would restore the non threaded behavior.

Nicolas
Previous: Junio C HamanoNext: Alex Riesen
Message 7 of 13 in “THREADED_DELTA_SEARCH”
  1. Pierre HabouzitJul 10, 2008
  2. Johannes SixtJul 10, 2008
  3. Andreas EricssonJul 10, 2008
  4. Jakub NarebskiJul 10, 2008
  5. Pierre HabouzitJul 10, 2008
  6. Junio C HamanoJul 10, 2008
  7. Nicolas PitreJul 10, 2008
  8. Alex RiesenJul 10, 2008
  9. Nicolas PitreJul 10, 2008
  10. Alex RiesenJul 10, 2008
  11. Nicolas PitreJul 10, 2008
  12. Alex RiesenJul 10, 2008
  13. Pierre HabouzitJul 11, 2008

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.