From owner-freebsd-current@FreeBSD.ORG Tue Nov 15 21:14:33 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 BA40016A41F for ; Tue, 15 Nov 2005 21:14:33 +0000 (GMT) (envelope-from schweikh@schweikhardt.net) Received: from bremen.shuttle.de (bremen.shuttle.de [194.95.249.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4426843D45 for ; Tue, 15 Nov 2005 21:14:32 +0000 (GMT) (envelope-from schweikh@schweikhardt.net) Received: by bremen.shuttle.de (Postfix, from userid 10) id C9D833B953; Tue, 15 Nov 2005 22:14:31 +0100 (CET) Received: from hal9000.schweikhardt.net (localhost [127.0.0.1]) by hal9000.schweikhardt.net (8.13.4/8.13.4) with ESMTP id jAFLEIxL025779; Tue, 15 Nov 2005 22:14:18 +0100 (CET) (envelope-from schweikh@hal9000.schweikhardt.net) Received: (from schweikh@localhost) by hal9000.schweikhardt.net (8.13.4/8.13.4/Submit) id jAFLEIIq025778; Tue, 15 Nov 2005 22:14:18 +0100 (CET) (envelope-from schweikh) Date: Tue, 15 Nov 2005 22:14:18 +0100 From: Jens Schweikhardt To: Nicolas Blais Message-ID: <20051115211418.GE1783@schweikhardt.net> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051115183647.GA1783@schweikhardt.net> User-Agent: Mutt/1.5.11 Cc: Steve Hodgson , freebsd-current@freebsd.org Subject: Re: Using ccache for build{world, kernel} (was: can't compile -CURRENT since 2 days ago) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Nov 2005 21:14:33 -0000 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 -- Jens Schweikhardt http://www.schweikhardt.net/ SIGSIG -- signature too long (core dumped)