Re: GENERIC make buildkernel error / fails - posix_fadvise

看板FB_stable作者時間14年前 (2012/01/14 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串12/20 (看更多)
On Thu, 12 Jan 2012 21:37:27 -0600, Joe Ennis <joe@whiskey7.net> wrote: > On Thu, 12 Jan 2012 19:11:54 -0800 > Garrett Cooper <yanegomi@gmail.com> wrote: > >> On Thu, Jan 12, 2012 at 5:52 PM, Doug Barton <dougb@freebsd.org> >> 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 _______________________________________________ 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"
文章代碼(AID): #1F475XRE (FB_stable)
討論串 (同標題文章)
完整討論串 (本文為第 12 之 20 篇):
文章代碼(AID): #1F475XRE (FB_stable)