How to choose the size of swap?

Martin Simmons martin at lispworks.com
Tue Dec 7 16:02:10 UTC 2010


>>>>> On Tue, 07 Dec 2010 15:45:51 +0200, Andriy Gapon said:
> 
> on 07/12/2010 14:09 Martin Simmons said the following:
> >>>>>> On Mon, 6 Dec 2010 13:42:23 -0800, Jeremy Chadwick said:
> >>
> >> And don't forget that (by default) you'll need a /var filesystem that
> >> has enough physical room to hold the dump.  You can change this using
> >> the "dumpdir" option in rc.conf(5) if your existing /var isn't large
> >> enough.  Just make sure to copy /var/crash to /wherever, and make sure
> >> the file/dir permissions are correct + minfree file exists.
> > 
> > Is that working from swap-based dumps now?  Last time I looked, the boot
> > sequence enables swap before the dump is copied, so it is lost.
> 
> The sequence is that, but the dump should not be destroyed unless the swap gets
> actually used during that period.

Cool, I'm glad it works sometimes!  I had a problem with it in 7.2, but I
can't repeat it now in an 8.0 VM.

__Martin


More information about the freebsd-fs mailing list