From owner-freebsd-questions@FreeBSD.ORG Thu Jan 24 20:32:19 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B15C16A468 for ; Thu, 24 Jan 2008 20:32:19 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.245]) by mx1.freebsd.org (Postfix) with ESMTP id 2650A13C4D1 for ; Thu, 24 Jan 2008 20:32:18 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: by an-out-0708.google.com with SMTP id c14so100516anc.13 for ; Thu, 24 Jan 2008 12:32:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=4pWOjrh0AP14W1YSst540o8oOo0fWaR4XpTlY0EYXPE=; b=Q25SOajQYipz2kFwZo418vR1nHoIfQHle5JgOzKfSQs9872iTzLfAxCVU2onsnlQAYS0pbeg6bsDJvcQM+LKSPTNWSc0XHbzOF21+LNuEFacA2pD0qPpJUJmCB0o/Y4E9wOlyY/dLw2ScdW+/LFzwRJvrnIvjdmNAUgnlNudwBY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=S3W/TA9WYjPegkZhSkjlxIUS0bdIqnMo4VylsudVEu8Mo3XSWMkkQviFDzHWYtyYBq855lmH5mdY0U0Ezh5BLi8Hnh6trVURNcvKI7RnYE9FEihKYqWkbSUtor+v7Gd9IgU6bH0neFrjbwPqmM3vl31Iyy4NiVkH7eotzhcxYPc= Received: by 10.101.1.7 with SMTP id d7mr2310470ani.91.1201206738048; Thu, 24 Jan 2008 12:32:18 -0800 (PST) Received: by 10.100.254.9 with HTTP; Thu, 24 Jan 2008 12:32:18 -0800 (PST) Message-ID: <26ddd1750801241232l51792bf3ydc02e17e4be49d6e@mail.gmail.com> Date: Thu, 24 Jan 2008 15:32:18 -0500 From: "Maxim Khitrov" To: "Aryeh M. Friedman" In-Reply-To: <4798F1D0.3090009@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4798F1D0.3090009@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: speeding up buildworld/kernel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jan 2008 20:32:19 -0000 On Jan 24, 2008 3:15 PM, Aryeh M. Friedman wrote: > I update my sources at least once a day and do buildworld/kernel just > as often... It seems some stuff that needs not be recompiled is on > every single run for example gcc and kerbos. I have NO_CLEAN in > /etc/make.conf is there anything else I can do to speed stuff up... > for ref here is my /etc/make.conf: > > CPUTYPE?=nocona > KERNCONF=MONSTER > NO_CLEAN= > NO_LPR= > # added by use.perl 2008-01-17 11:48:48 > PERL_VER=5.8.8 > PERL_VERSION=5.8.8 > > - -- > Aryeh M. Friedman > FloSoft Systems, Java Tool Developers > Developer, not business, friendly > http://www.flosoft-systems.com I might be wrong, but NO_CLEAN seems like a bad idea except in special circumstances. Install ccache, but make sure you set CCACHE_HASH_COMPILER environment variable to 1. That will make sure that the cache stays valid if the compiler executable is overwritten by an identical copy (as it would be on installworld). When the compiler changes the cache will be repopulated on the next rebuild. - Max