Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Oct 2008 13:23:17 -0700
From:      Doug Barton <dougb@FreeBSD.org>
To:        Stephen Montgomery-Smith <stephen@math.missouri.edu>
Cc:        Eitan Adler <eitanadlerlist@gmail.com>, freebsd-ports@freebsd.org
Subject:   Re: speed up ports install
Message-ID:  <48FB9735.7020106@FreeBSD.org>
In-Reply-To: <48FB5E59.1000702@math.missouri.edu>
References:  <48FB344E.9040904@gmail.com> <48FB5E59.1000702@math.missouri.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Stephen Montgomery-Smith wrote:
> Eitan Adler wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> I have a simple idea to make use the threads without any possibility of
>> conflicts.  I am sure there will be someone to point out a negative, but
>> I don't see any.
>> When you do "make install" launch a "make fetch-recursive" thread at the
>> same time.  That way you don't need to wait for the files to
>> install->fetch the next one->install it->fetch the next one...
>> For those who don't want that you could get the old behavior with "make
>> onlyinstall".  I currently do this with a "make" wrapper script and I
>> find installation to be faster.
> 
> I quite often so this also.  But I do find I have to watch it, because
> sometimes the two make threads try to download the files at the same
> time.  And that tends to screw things up.

ports-mgmt/portmaster already has solutions to both of these problems.
It only launches background fetches for files related to ports that
need upgrading, and it has collision detection built in so if a second
port tries to d/l the same sources the background fetch will exit.

Eitan is right however, having the sources ready when it's time to
build the port does speed up the overall process quite a bit.


hth,

Doug

-- 

    This .signature sanitized for your protection




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48FB9735.7020106>