From owner-freebsd-questions@FreeBSD.ORG Fri Jan 9 16:53:49 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B3831065676 for ; Fri, 9 Jan 2009 16:53:49 +0000 (UTC) (envelope-from krad@snaffler.net) Received: from mk-filter-1-a-1.mail.uk.tiscali.com (mk-filter-1-a-1.mail.uk.tiscali.com [212.74.100.52]) by mx1.freebsd.org (Postfix) with ESMTP id 1CAFE8FC1F for ; Fri, 9 Jan 2009 16:53:48 +0000 (UTC) (envelope-from krad@snaffler.net) X-Trace: 128267306/mk-filter-1.mail.uk.tiscali.com/B2C/$b2c-TRUSTED/b2c-IMPLICITLY_TRUSTED/212.74.112.53/None/krad@snaffler.net X-SBRS: None X-RemoteIP: 212.74.112.53 X-IP-MAIL-FROM: krad@snaffler.net X-MUA: Thunderbird 2.0.0.17 (X11/20081023) X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhYBADQQZ0nUSnA1/2dsb2JhbAAI0FiFbw X-IronPort-AV: E=Sophos;i="4.37,239,1231113600"; d="scan'208";a="128267306" Received: from e1-1.ns500-1.ts.milt.as9105.net (HELO [10.44.24.37]) ([212.74.112.53]) by smtp.tiscali.co.uk with ESMTP; 09 Jan 2009 16:53:47 +0000 Message-ID: <49678108.2020701@snaffler.net> Date: Fri, 09 Jan 2009 16:53:28 +0000 From: "chris.scott" User-Agent: Thunderbird 2.0.0.17 (X11/20081023) MIME-Version: 1.0 To: PstreeM China References: <2c66535d0901082253k5b8ff098w73234a1944929929@mail.gmail.com> <20090109105458.I8836@wojtek.tensor.gdynia.pl> <49672373.3020704@snaffler.net> <2c66535d0901090340y473ce9dcj74ae2a44e5cc0789@mail.gmail.com> In-Reply-To: <2c66535d0901090340y473ce9dcj74ae2a44e5cc0789@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Wojciech Puchar , Free BSD Questions list Subject: Re: how to use the MFS ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jan 2009 16:53:49 -0000 cd /usr/ports as normal have a look at man mount_unionfs your basically stacking fs on top of each other writes goto the tmpfs as its at the top of the stack its not persistent over boots mind PstreeM China wrote: > i think the option WRKDIRPREFIX is a good idea , and i whill test the > methon unionfs. > > but i want to know , after i mount the unionfs , like this :#mount -t > unionfs /usr/ports /usr/ports.real > the /usr/ports is memery FS, what can i used to install software ?? > go to the dir : /usr/ports/**/** to install , > or go to dir dir : /usr/ports.real/*/* to install ?? > > thank all!! > > On Fri, Jan 9, 2009 at 6:14 PM, chris.scott > wrote: > > Wojciech Puchar wrote: > > hi all: > > i want to know ,how to compile better speed during the > installation of > Ports , use the memery filesystem(MFS) .. > > during make world , mount the md0 to /usr/obj , but > what can i do for > > > better use tmpfs > > the port ? > > > rm -rf /usr/ports/ > mkdir /usr/ports > mount -t tmpfs tmpfs /usr/ports > portsnap extract > > now build > _______________________________________________ > freebsd-questions@freebsd.org > mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org > " > > quicker to do > > > mv /usr/ports /usr/ports.real > > mkdir /usr/ports > mount -t tmpfs tmpfs /usr/ports > mount -t unionfs -o noatime /usr/ports /usr/ports.real > > > of cause tmpfs can actually start using disk space unlike a md > device so if you eat up to much ram with the compiles it will slow > down > > >