From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 19 23:06:07 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 2958E16A41F for ; Thu, 19 Jan 2006 23:06:07 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id C22D343D49 for ; Thu, 19 Jan 2006 23:06:06 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 926CD1A3C1B; Thu, 19 Jan 2006 15:06:06 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 704EE54A44; Thu, 19 Jan 2006 18:06:05 -0500 (EST) Date: Thu, 19 Jan 2006 18:06:05 -0500 From: Kris Kennaway To: Gary Thorpe Message-ID: <20060119230604.GA98670@xor.obsecurity.org> 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> <79e2026f0601191215p117d78ebjbee2c4b710075154@mail.gmail.com> <43D0139A.1040601@myrealbox.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="C7zPtVaVf+AK4Oqc" Content-Disposition: inline In-Reply-To: <43D0139A.1040601@myrealbox.com> User-Agent: Mutt/1.4.2.1i Cc: Wesley Shields , Ashok Shrestha , Brandon Flowers , Mike Meyer , freebsd-hackers@freebsd.org, Dag-Erling Sm?rgrav 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 23:06:07 -0000 --C7zPtVaVf+AK4Oqc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 19, 2006 at 05:32:58PM -0500, Gary Thorpe wrote: > Ashok Shrestha wrote: > >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 >=20 > An alternative is to try using the "-pipe" flag with GCC: this=20 > eliminates the need to use some temporary files by using a unix pipe for= =20 > IPC. Setting another flag "-j 2" will allow 2 jobs to be done at the=20 > same time and should eliminate (by hiding) the I/O delays (this slows=20 > down the CPU slightly because of more task switches, but even with one=20 > job there are still lots of generated tasks). -j is not safe to use with port builds since many ported software contain race conditions in the build. Kris --C7zPtVaVf+AK4Oqc Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFD0BtcWry0BWjoQKURAu+3AKDE0S5hMyJ7hfqRklEk7ZKQFgNGPwCdFME1 qC/z3ZSqOMysnT6L87cG79Q= =vsyI -----END PGP SIGNATURE----- --C7zPtVaVf+AK4Oqc--