From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 19 20:21:12 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1776C16A41F for ; Thu, 19 Jan 2006 20:21:12 +0000 (GMT) (envelope-from ashok.shrestha@gmail.com) Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F8A843D49 for ; Thu, 19 Jan 2006 20:21:11 +0000 (GMT) (envelope-from ashok.shrestha@gmail.com) Received: by uproxy.gmail.com with SMTP id o2so39023uge for ; Thu, 19 Jan 2006 12:21:09 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=l72OH3lSeTK0wRgY5fyC5eNN5eeQ2RLXORJ072kk6BkeHVR/qx9NDD2GJsSU4/+wh+hiXcxV1hzN6M5Pryi3MJmoCpVvHXYZKhLnbWm3hxUq/7grcP7ZgsTdSXeMQ4LpZ+hE5byOMLSErvGlcClUFiNxyt9qFMau06zgp0PEMpE= Received: by 10.48.14.12 with SMTP id 12mr79696nfn; Thu, 19 Jan 2006 12:15:08 -0800 (PST) Received: by 10.49.20.18 with HTTP; Thu, 19 Jan 2006 12:15:08 -0800 (PST) Message-ID: <79e2026f0601191215p117d78ebjbee2c4b710075154@mail.gmail.com> Date: Thu, 19 Jan 2006 15:15:08 -0500 From: Ashok Shrestha To: Wesley Shields In-Reply-To: <20060119175224.GA71633@csh.rit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <79e2026f0601142345x1a9269bdl3153d1bb110be08d@mail.gmail.com> <86ek34d35f.fsf@xps.des.no> <17359.49899.183831.844670@bhuda.mired.org> <86k6cww445.fsf@xps.des.no> <20060119175224.GA71633@csh.rit.edu> Cc: Dag-Erling Sm?rgrav , Brandon Flowers , Mike Meyer , freebsd-hackers@freebsd.org Subject: Re: speed up port compiling using RAM (tmpfs) ??? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jan 2006 20:21:12 -0000 I mounted part of RAM as such: mdmfs -s 500m md /mnt Then put WRKDIRPREFIX=3D/path/to/md in /etc/make.conf. It substantially reduces compile time by about 5-10 times. Thanx to all ur replies. -Ashok Shrestha On 1/19/06, Wesley Shields wrote: > On Thu, Jan 19, 2006 at 05:54:02PM +0100, Dag-Erling Sm?rgrav wrote: > > Mike Meyer writes: > > > Will using a swap-backed disk change anything? > > > > Not really. > > > > > How about the best way to configure things to use two disks for the > > > compile? > > > > I'm not sure what you are trying to achieve. Unlike the base system, > > the ports tree does not use separate source and object directories. > > I think he is trying to get at a scenario where WRKDIR is on a seperate > disk from the one /usr/ports is on. > > To answer his question, assuming this is what he is going, for why not > just add a new physical disk to the system per the handbook, and set > WRKDIR to be where ever that disk is mounted. > > -- WXS > -- Ashok Shrestha