Re: GENERIC make buildkernel error / fails - posix_fadvise

2012-01-22 Thread Doug Barton
On 01/22/2012 11:00, clift...@volcano.org wrote: > On 12.01.2012 15:52, 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}/* > > If I could just

Re: GENERIC make buildkernel error / fails - posix_fadvise

2012-01-22 Thread Jilles Tjoelker
On Sun, Jan 22, 2012 at 01:00:46PM -0600, clift...@volcano.org wrote: > On 12.01.2012 15:52, 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}/

Re: GENERIC make buildkernel error / fails - posix_fadvise

2012-01-22 Thread cliftonr
On 22.01.2012 13:16, Matthew Seaman wrote: On 22/01/2012 19:00, clift...@volcano.org wrote: If rm had an option to take files from standard input, or if there's another program I'm not aware of which does this, it could serve as the right-hand side of this. xargs(1) -- generic solution to taki

Re: GENERIC make buildkernel error / fails - posix_fadvise

2012-01-22 Thread Matthew Seaman
On 22/01/2012 19:00, clift...@volcano.org wrote: > If rm had an option to take files from standard input, or if > there's another program I'm not aware of which does this, it > could serve as the right-hand side of this. xargs(1) -- generic solution to taking a list of command arguments from a fil

Re: GENERIC make buildkernel error / fails - posix_fadvise

2012-01-22 Thread cliftonr
On 12.01.2012 15:52, 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}/* If I could just add one thing here, for those who might be tempted to immediately cut and

Re: GENERIC make buildkernel error / fails - posix_fadvise

2012-01-15 Thread Rob Clark
On Sat, 14 Jan 2012 23:37:50 -0800 Jeremy Chadwick wrote: > On Sun, Jan 15, 2012 at 02:24:41AM -0500, Rob Clark wrote: > > On Thu, 12 Jan 2012 08:15:50 -0500 > > John Baldwin wrote: > > > > > On Wednesday, January 11, 2012 4:11:10 pm Rob Clark wrote: > > > > System: Dell 600sc > > > > Currently

Re: GENERIC make buildkernel error / fails - posix_fadvise

2012-01-14 Thread Jeremy Chadwick
On Sun, Jan 15, 2012 at 02:24:41AM -0500, Rob Clark wrote: > On Thu, 12 Jan 2012 08:15:50 -0500 > John Baldwin wrote: > > > On Wednesday, January 11, 2012 4:11:10 pm Rob Clark wrote: > > > System: Dell 600sc > > > Currently running: 8.2-RELEASE > > > > > > In attempting to update this system to

Re: GENERIC make buildkernel error / fails - posix_fadvise

2012-01-14 Thread Rob Clark
On Thu, 12 Jan 2012 08:15:50 -0500 John Baldwin wrote: > On Wednesday, January 11, 2012 4:11:10 pm Rob Clark wrote: > > System: Dell 600sc > > Currently running: 8.2-RELEASE > > > > In attempting to update this system to 8-STABLE I did > > what I usually do to update a system (see below). > > ma

Re: GENERIC make buildkernel error / fails - posix_fadvise

2012-01-13 Thread Andre Goree
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 ||

Re: GENERIC make buildkernel error / fails - posix_fadvise

2012-01-12 Thread Doug Barton
On 01/12/2012 20:10, Garrett Cooper wrote: > When I did > stuff in parallel (have 8 regular cores, 8 SMT cores), the process > took less than an hour to complete. Sounds like you should get to work figuring out how to optimize rm to take advantage of this. :) Doug -- You can observe a

Re: GENERIC make buildkernel error / fails - posix_fadvise

2012-01-12 Thread Garrett Cooper
On Thu, Jan 12, 2012 at 7:23 PM, Stephen Montgomery-Smith wrote: > On 01/12/2012 09:11 PM, Garrett Cooper wrote: > >> +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). > > > I have always wo

Re: GENERIC make buildkernel error / fails - posix_fadvise

2012-01-12 Thread Joe Ennis
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/

Re: GENERIC make buildkernel error / fails - posix_fadvise

2012-01-12 Thread Stephen Montgomery-Smith
On 01/12/2012 09:11 PM, Garrett Cooper wrote: +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). I have always wondered about that! I thought that the main bottleneck in "rm -r" might be dele

Re: GENERIC make buildkernel error / fails - posix_fadvise

2012-01-12 Thread Garrett Cooper
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

Re: GENERIC make buildkernel error / fails - posix_fadvise

2012-01-12 Thread Doug Barton
>> 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}/* -- You can observe a lot just by watching. -- Yogi Berra Breadth of IT experience, and depth of knowledg

Re: GENERIC make buildkernel error / fails - posix_fadvise

2012-01-12 Thread Rob Clark
On Thu, 12 Jan 2012 08:15:50 -0500 John Baldwin wrote: > On Wednesday, January 11, 2012 4:11:10 pm Rob Clark wrote: > > System: Dell 600sc > > Currently running: 8.2-RELEASE > > > > In attempting to update this system to 8-STABLE I did > > what I usually do to update a system (see below). > > ma

Re: GENERIC make buildkernel error / fails - posix_fadvise

2012-01-12 Thread Rob Clark
On Wed, 11 Jan 2012 21:52:28 -0600 Andre Goree wrote: > On Wed, Jan 11, 2012 at 3:11 PM, Rob Clark wrote: > > > System: Dell 600sc > > Currently running: 8.2-RELEASE > > > > In attempting to update this system to 8-STABLE I did > > what I usually do to update a system (see below). > > make buil

Re: GENERIC make buildkernel error / fails - posix_fadvise

2012-01-12 Thread John Baldwin
On Wednesday, January 11, 2012 4:11:10 pm Rob Clark wrote: > System: Dell 600sc > Currently running: 8.2-RELEASE > > In attempting to update this system to 8-STABLE I did > what I usually do to update a system (see below). > make buildworld completes successfully, but make > buildkernel does not.

Re: GENERIC make buildkernel error / fails - posix_fadvise

2012-01-11 Thread Andre Goree
On Wed, Jan 11, 2012 at 3:11 PM, Rob Clark wrote: > System: Dell 600sc > Currently running: 8.2-RELEASE > > In attempting to update this system to 8-STABLE I did > what I usually do to update a system (see below). > make buildworld completes successfully, but make > buildkernel does not. I usuall