From owner-freebsd-current@FreeBSD.ORG Wed Nov 16 00:06:58 2005 Return-Path: X-Original-To: freebsd-current@FreeBSD.ORG Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 823B716A44D for ; Wed, 16 Nov 2005 00:06:58 +0000 (GMT) (envelope-from sobomax@portaone.com) Received: from www.portaone.com (web.portaone.com [195.70.151.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id B2DBC43D45 for ; Wed, 16 Nov 2005 00:06:57 +0000 (GMT) (envelope-from sobomax@portaone.com) Received: from [192.168.0.96] (dell.portaone.com [70.68.0.213]) (authenticated bits=0) by www.portaone.com (8.12.11/8.12.11) with ESMTP id jAG06fCn051378 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 16 Nov 2005 01:06:45 +0100 (CET) (envelope-from sobomax@portaone.com) Message-ID: <437A780C.8070609@portaone.com> Date: Tue, 15 Nov 2005 16:06:36 -0800 From: Maxim Sobolev Organization: Porta Software Ltd User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jens Schweikhardt References: <200511141702.45491.nb_root@videotron.ca> <200511150542.34910.nb_root@videotron.ca> <4379BCEB.6030806@acidy.com> <200511150611.31743.nb_root@videotron.ca> <20051115183647.GA1783@schweikhardt.net> <20051115211418.GE1783@schweikhardt.net> In-Reply-To: <20051115211418.GE1783@schweikhardt.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.86.2/1176/Tue Nov 15 21:47:39 2005 on www.portaone.com X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.0.0 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on www.portaone.com Cc: Steve Hodgson , freebsd-current@FreeBSD.ORG, Nicolas Blais Subject: Re: Using ccache for build{world, kernel} X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Maxim.Sobolev@portaone.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Nov 2005 00:06:58 -0000 I have better patch which extends detection mechanism, so that along with size/mtime checksum of the compiler binary is stored as well. Since compiler binary linked from the same sources/objects will have the same checksum it allows ccache to be used OOB with buildworld. Do you have any interest in putting it into the port? http://www.portaone.com/~sobomax/ccache.buildworld -Maxim Jens Schweikhardt wrote: > Folks, > > # Put this in /usr/ports/devel/ccache/files/patch-nohash-size-mtime and > # reinstall the port. Then export CCACHE_NOHASH_SIZE_MTIME=y during your > # makes for buildworld and buildkernel. This melts my buildworld time > # from 2700s (real@~100%CPU) to under 1000s and buildkernel from 800s > # to 250s, so you gain about a factor 3 for ab-initio builds. Sweet! > # > # > # --- ccache.c.orig Mon Oct 31 17:38:21 2005 > # +++ ccache.c Mon Oct 31 17:52:31 2005 > # @@ -331,8 +331,10 @@ > # hash_string(str_basename(args->argv[0])); > # } > # > # - hash_int(st.st_size); > # - hash_int(st.st_mtime); > # + if (!getenv("CCACHE_NOHASH_SIZE_MTIME")) { > # + hash_int(st.st_size); > # + hash_int(st.st_mtime); > # + } > [Rest of patch snipped ...] > > I just asked the devel/ccache maintainer to commit this patch and he > promptly did (Thanks Michael Johnson, aka ahze!). So you only need this > unless your ports tree is current as of now. > > Regards, > > Jens