From owner-freebsd-stable@FreeBSD.ORG Fri Jan 13 14:52:15 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 5FCA91065670 for ; Fri, 13 Jan 2012 14:52:15 +0000 (UTC) (envelope-from andre@drenet.info) Received: from mail-tul01m020-f182.google.com (mail-tul01m020-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1F7D88FC08 for ; Fri, 13 Jan 2012 14:52:14 +0000 (UTC) Received: by obbta17 with SMTP id ta17so3528788obb.13 for ; Fri, 13 Jan 2012 06:52:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=drenet.info; s=google; h=content-type:to:subject:references:date:mime-version :content-transfer-encoding:from:message-id:in-reply-to:user-agent; bh=ouX3woVEqu7t2nceOzy9B6OcPMT2I+kAS29kBWUuPGI=; b=S1YU2bJioUB8aY05ufkqkduq76RWuIIIcKBeqi2AeFYzmNHTo43OGPFgPQLolGMkTK 2Hv6TzNPa1fLKDfYclFnwKUuDciVICmmDsb9FxwRw7waO+EoZLlsWu0NvG/CDxCrIP9D ce2EDSWPo5wFV1vSXEWj3KEvqJFSC01a21oyU= Received: by 10.182.7.42 with SMTP id g10mr1112852oba.7.1326466334316; Fri, 13 Jan 2012 06:52:14 -0800 (PST) Received: from desktop.drenet.local (c-98-199-43-85.hsd1.tx.comcast.net. [98.199.43.85]) by mx.google.com with ESMTPS id b3sm8696603obp.6.2012.01.13.06.52.12 (version=SSLv3 cipher=OTHER); Fri, 13 Jan 2012 06:52:13 -0800 (PST) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: freebsd-stable@freebsd.org, "Joe Ennis" References: <20120111161110.4258969c.rpclark@tds.net> <20120112200843.2a348d2f.rpclark@tds.net> <4F0F8E6F.8000909@FreeBSD.org> <20120112193727.4ef16e5a@tsunami.lan> Date: Fri, 13 Jan 2012 08:52:12 -0600 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Andre Goree" Message-ID: In-Reply-To: <20120112193727.4ef16e5a@tsunami.lan> User-Agent: Opera Mail/11.60 (FreeBSD) Cc: 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 14:52:15 -0000 On Thu, 12 Jan 2012 21:37:27 -0600, Joe Ennis wrote: > 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}/* >> Thanks of the tip! Should this be run from inside /usr/src or does it matter? >> +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, That's a nifty little tip. I may try that next time. -- Andre Goree andre@drenet.info