From owner-freebsd-stable@FreeBSD.ORG Fri Jan 13 04:01:12 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 494A9106566B for ; Fri, 13 Jan 2012 04:01:12 +0000 (UTC) (envelope-from joe@whiskey7.net) Received: from gateway01.websitewelcome.com (gateway01.websitewelcome.com [69.41.247.19]) by mx1.freebsd.org (Postfix) with ESMTP id 11E448FC18 for ; Fri, 13 Jan 2012 04:01:12 +0000 (UTC) Received: by gateway01.websitewelcome.com (Postfix, from userid 5007) id 14CDF39113E70; Thu, 12 Jan 2012 21:38:17 -0600 (CST) Received: from gator397.hostgator.com (gator397.hostgator.com [184.173.196.239]) by gateway01.websitewelcome.com (Postfix) with ESMTP id 0A7AC39113E49 for ; Thu, 12 Jan 2012 21:38:17 -0600 (CST) Received: from [75.106.202.10] (port=62289 helo=tsunami.lan) by gator397.hostgator.com with smtp (Exim 4.69) (envelope-from ) id 1RlXy2-0007nw-N2 for freebsd-stable@freebsd.org; Thu, 12 Jan 2012 21:38:16 -0600 Date: Thu, 12 Jan 2012 19:37:27 -0800 From: Joe Ennis To: freebsd-stable@freebsd.org Message-ID: <20120112193727.4ef16e5a@tsunami.lan> In-Reply-To: References: <20120111161110.4258969c.rpclark@tds.net> <20120112200843.2a348d2f.rpclark@tds.net> <4F0F8E6F.8000909@FreeBSD.org> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator397.hostgator.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - whiskey7.net X-BWhitelist: no X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-106-202-10.cust.wildblue.net (tsunami.lan) [75.106.202.10]:62289 X-Source-Auth: jce X-Email-Count: 1 X-Source-Cap: amNlO2pjZTtnYXRvcjM5Ny5ob3N0Z2F0b3IuY29t Subject: Re: GENERIC make buildkernel error / fails - posix_fadvise X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jan 2012 04:01:12 -0000 On Thu, 12 Jan 2012 19:11:54 -0800 Garrett Cooper wrote: > On Thu, Jan 12, 2012 at 5:52 PM, Doug Barton > wrote: > > > >>> chflags -R noschg /usr/obj/usr > >>> rm -rf /usr/obj/usr > > > > It's much faster to do: > > > > /bin/rm -rf ${obj}/* 2> /dev/null || /bin/chflags -R 0 ${obj}/* && > > /bin/rm -rf ${obj}/* > > +1. And it's faster yet when you can run parallel copies of rm on > different portions of the directory tree (e.g. xargs, find [..] -exec) > as rm is O(n). > Cheers, > -Garrett > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to > "freebsd-stable-unsubscribe@freebsd.org" What I've been doing just before I do a make buildworld/buildkernel is: mdmfs -s2g md1 /usr/obj on a clean /usr/obj . If I need to recompile before a boot, just umount and recreate. Provides a little performance boost too. Regards, -- joe