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

Re: git bisect on multiple cores

From
Karl Hasselström <kha@treskal.com>
Date
Apr 9, 2008, 08:27 UTC
Message-ID
<20080409082700.GA24195@diana.vm.bytemark.co.uk>
In-Reply-To
<vpq63ure9j6.fsf@bauges.imag.fr>
On 2008-04-09 10:07:25 +0200, Matthieu Moy wrote:
Show 14 quoted lines
> Karl Hasselström <kha@treskal.com> writes:
>
> > Adding parallelism to a binary search scales very badly -- I'd say
> > about logarithmically, but I haven't thought hard about it. If
> > it's possible to use the extra cores to speed up the build+test
> > cycle, that's vastly preferable.
>
> Probably logarithmically with the number of cores. But for
> reasonable machines, this number is relatively low, so the log is
> not so costly. For a binary search, using just 2 cores, you can try
> the next in the list in case of a "git bisect good" for example, and
> if the hypothesis is true, you've just gained a factor 2 (assuming
> it happens 50% of times, that should be a 50% speedup). Similarly,
> you should get a factor 2 with 3 cores.

Yeah. But to get a factor 3, you need 7 cores; and for 4, you need 15. It goes downhill from there. If your build+test cycle is parallelizable at all, I don't think you'll find those numbers hard to beat.

(There's also the fact that testing several revisions at once assumes that the whole build+test cycle is automated, or at least most of it. Otherwise you need more people as well as more cores.)

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Previous: Matthieu Moy
Message 8 of 8 in “git bisect on multiple cores”
  1. A BApr 8, 2008
  2. David SymondsApr 8, 2008
  3. Junio C HamanoApr 8, 2008
  4. Christian CouderApr 9, 2008
  5. Christian CouderApr 9, 2008
  6. Karl HasselströmApr 9, 2008
  7. Matthieu MoyApr 9, 2008
  8. Karl HasselströmApr 9, 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.