Date: Tue, 28 Sep 2010 09:37:25 -0400 From: John Baldwin <jhb@freebsd.org> To: Alexander Leidinger <Alexander@leidinger.net> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, freebsd-arch@freebsd.org Subject: Re: svn commit: r212964 - head/sys/kern Message-ID: <201009280937.25619.jhb@freebsd.org> In-Reply-To: <20100928114912.17443a2o7j71kpaw@webmail.leidinger.net> References: <201009211507.o8LF7iVv097676@svn.freebsd.org> <201009270928.47232.jhb@freebsd.org> <20100928114912.17443a2o7j71kpaw@webmail.leidinger.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday, September 28, 2010 5:49:12 am Alexander Leidinger wrote:
> Quoting John Baldwin <jhb@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009280937.25619.jhb>
