From owner-freebsd-current@FreeBSD.ORG Tue Mar 21 13:45:47 2006 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 CAB6C16A423 for ; Tue, 21 Mar 2006 13:45:47 +0000 (UTC) (envelope-from buhnux@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CD2C43D53 for ; Tue, 21 Mar 2006 13:45:45 +0000 (GMT) (envelope-from buhnux@gmail.com) Received: by zproxy.gmail.com with SMTP id n1so2260323nzf for ; Tue, 21 Mar 2006 05:45:44 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=GWJjpQLegMO2HfT5RjsmWHIhugdB1B8sggBvFqGMe+YYeYu7XsjzlRiqO3kr7w7moES82K4EdfL7pU6GAQl25CE7d6mFGAHPSwUzpfosovoOSs9nBBl3dq3DtE01tAQH43A8o/DjYnqlk6G6wfrWr6FlOdi8YO5kyHtnBJcENpE= Received: by 10.36.46.19 with SMTP id t19mr1589466nzt; Tue, 21 Mar 2006 05:45:41 -0800 (PST) Received: by 10.36.103.2 with HTTP; Tue, 21 Mar 2006 05:45:41 -0800 (PST) Message-ID: Date: Tue, 21 Mar 2006 08:45:41 -0500 From: "michael johnson" To: "Alex Dupre" In-Reply-To: <441FFF0C.4010107@FreeBSD.org> MIME-Version: 1.0 References: <441FFF0C.4010107@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-current@freebsd.org, ahze@freebsd.org, freebsd-ports@freebsd.org Subject: Re: Using ccache with make world X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ahze@ahze.net List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Mar 2006 13:45:47 -0000 On 3/21/06, Alex Dupre wrote: > > Short summary: > > I made a patch to ccache port so that we can actually and effectively > use ccache when making buildworld and buildkernel. The patch can be > found at: http://www.alexdupre.com/ccache.diff > Read the ccache-freebsd-howto.txt file before using ccache. > > Long description: > > As you know, until now, building FreeBSD with ccache spotted several > issues because of the complex "make world" process; in particular it > changes the default path and build a new compiler with different header > files and this avoids any effective use of ccache. Some workarounds grew > up, but they fix only a subset of the problems, creating (sooner or > later) issues elsewhere. This patch tries to fix (or at least minimize) > all the problems, implementing a mixture of floating ideas collected > from various threads. For an implementation overview, I recommend to > read the simple patch, because explaining it will be more complex for me > :-) > > Benchmarks: I think everything looks good, but is there not some overhead by using a shell script in world-cc and world-c++? I'm not sure that there would be a better way of doing what you want than what you have now though. Just booted into a new world/kernel, compiled (and installed) for the > first time with ccache. /usr/obj is empty. > > # ccache -s > cache directory /usr/.ccache > cache hit 932 > cache miss 16144 > called for link 755 > multiple source files 1 > compile failed 107 > preprocessor error 35 > not a C/C++ file 1550 > autoconf compile/link 807 > unsupported compiler option 546 > no input file 116 > files in cache 32288 > cache size 219.7 Mbytes > max cache size 976.6 Mbytes > > # time make buildworld > [...] > 547.504u 206.484s 18:02.28 69.6% 2792+1865k 38436+7220io 6874pf+0w > > # ccache -s > cache directory /usr/.ccache > cache hit 13027 > cache miss 16265 > called for link 1311 > multiple source files 2 > compile failed 107 > preprocessor error 35 > not a C/C++ file 2759 > autoconf compile/link 807 > unsupported compiler option 546 > no input file 117 > files in cache 32530 > cache size 220.0 Mbytes > max cache size 976.6 Mbytes > > # time make buildkernel > [...] > 125.756u 47.537s 5:03.57 57.0% 2664+1990k 13871+4882io 715pf+0w > > # ccache -s > cache directory /usr/.ccache > cache hit 15070 > cache miss 16268 > called for link 1314 > multiple source files 2 > compile failed 107 > preprocessor error 35 > not a C/C++ file 2763 > autoconf compile/link 807 > unsupported compiler option 552 > no input file 117 > files in cache 32536 > cache size 220.2 Mbytes > max cache size 976.6 Mbytes > > -- > Alex Dupre > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" >