From owner-freebsd-stable@FreeBSD.ORG Wed Feb 12 01:21:44 2014 Return-Path: Delivered-To: freebsd-stable@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 5AACE40D for ; Wed, 12 Feb 2014 01:21:44 +0000 (UTC) Received: from ozzie.tundraware.com (ozzie.tundraware.com [75.145.138.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1B2EF192F for ; Wed, 12 Feb 2014 01:21:43 +0000 (UTC) Received: from [192.168.0.2] (viper.tundraware.com [192.168.0.2]) (authenticated bits=0) by ozzie.tundraware.com (8.14.8/8.14.8) with ESMTP id s1C1LZsL004401 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Tue, 11 Feb 2014 19:21:35 -0600 (CST) (envelope-from tundra@tundraware.com) Message-ID: <52FACC9F.3000009@tundraware.com> Date: Tue, 11 Feb 2014 19:21:35 -0600 From: Tim Daneliuk User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: freebsd-stable@freebsd.org Subject: Re: And Here I Thought buildworld/makeworld Was IO Bound References: <52F84AF8.8050007@tundraware.com> <52F96B27.4090509@tundraware.com> <52FA70DA.7050601@tundraware.com> <52FA9CB3.4060609@halplant.com> In-Reply-To: <52FA9CB3.4060609@halplant.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (ozzie.tundraware.com [75.145.138.73]); Tue, 11 Feb 2014 19:21:35 -0600 (CST) X-TundraWare-MailScanner-Information: Please contact the ISP for more information X-TundraWare-MailScanner-ID: s1C1LZsL004401 X-TundraWare-MailScanner: Found to be clean X-TundraWare-MailScanner-From: tundra@tundraware.com X-Spam-Status: No X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Feb 2014 01:21:44 -0000 On 02/11/2014 03:57 PM, Andrew J. Caines wrote: > On 02/11/2014 01:50 PM, Tim Daneliuk wrote: >> does buildworld/kernel even use /tmp or otherwise access tmpfs? It >> seems to produce temporary output somewhere deep in /usr/obj. Is >> there a way to get it to use tmpfs or write it's output to /tmp >> instead? > > I've been using a mfs for /usr/obj and WRKDIRPREFIX for ports for years. > > md /usr/obj mfs rw,async,noatime,noauto,-s6g 0 0 > md /var/work mfs rw,async,noatime,noauto,-s2g 0 0 > > Makes cleanup quick and easy, too. > > Final Results: I did a number of different timings including symlinking /usr/obj to /tmp/obj when /tmp is a tmfs as well as mounting /usr/obj on an md as suggested above. In all cases, the time to do the buildworld/kernels was about the same. So, I conclude the following: When running on an SSD, at least the one I am using, the performance is bounded by CPU, not disk. Many thanks to all who took the time to answer my stupid questions ... ---------------------------------------------------------------------------- Tim Daneliuk tundra@tundraware.com PGP Key: http://www.tundraware.com/PGP/