svn commit: r212964 - head/sys/kern

John Baldwin jhb at freebsd.org
Tue Sep 28 15:26:05 UTC 2010


On Tuesday, September 28, 2010 5:49:12 am Alexander Leidinger wrote:
> Quoting John Baldwin <jhb at freebsd.org> (from Mon, 27 Sep 2010 09:28:47 -0400):
> 
> >> savecore already has support for a 'minfree' file to prevent
> >> crashdumps filling the crashdir.  Maybe the default install should
> >> include a minfree set to (say) 512MB.
> >
> > The one problem this approach is it implements a FIFO instead of a LIFO.  I
> > want the N most recent crashdumps to be saved, not the first N.
> 
> Check the size in the shell script before, remove older ones ("ls -1t  
> | grep pattern | tail +<N+1>" gives you possible candidates).

Yes, but the point is that you want that logic in savecore as an alternate to
the current minfree logic.

-- 
John Baldwin


More information about the svn-src-head mailing list