From owner-freebsd-questions@FreeBSD.ORG Sat Sep 13 00:08:12 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8BE7F744 for ; Sat, 13 Sep 2014 00:08:12 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 37D5FD87 for ; Sat, 13 Sep 2014 00:08:11 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.9/8.14.9) with ESMTP id s8D089TT045579 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 12 Sep 2014 18:08:09 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.9/8.14.9/Submit) with ESMTP id s8D089MV045576; Fri, 12 Sep 2014 18:08:09 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Fri, 12 Sep 2014 18:08:09 -0600 (MDT) From: Warren Block To: Andrew Berg Subject: Re: Request Validation of my Experience in buildworld In-Reply-To: <54135C19.8080701@my.hennepintech.edu> Message-ID: References: <54135498.8080202@comcast.net> <54135C19.8080701@my.hennepintech.edu> User-Agent: Alpine 2.11 (BSF 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Fri, 12 Sep 2014 18:08:09 -0600 (MDT) Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Sep 2014 00:08:12 -0000 On Fri, 12 Sep 2014, Andrew Berg wrote: > On 2014.09.12 15:16, Dave Babb wrote: >> The WRKDIRPREFIX (from a answer I received in this mailing list), is so >> that my ports and kernel are built in ram and not to the SSD until they >> are complete. I have /usr/obj mounted in tmpfs.....I have 32Gb of >> ram....of which I only used 7% of tmpfs during any of the experiences >> below...... > ... >> Another dramatic drop in resources and another increase in performance. >> >> This experience was had across a desktop, and repeated on a ASUS laptop. >> >> Is this type of improvement typical? > Yes. Putting your WRKDIR in RAM eliminates the biggest bottleneck and puts > almost everything on the CPU, which is quite fast. You can use ccache to cache > objects and make future builds even faster by not rebuilding anything > unnecessarily. ccache does not help much or at all with Clang. Using NO_CLEAN can be even more effective, as long as /usr/obj is kept around.