Max kernel dump size

cronfy cronfy at gmail.com
Mon Dec 28 16:27:18 UTC 2009


> > How can I calculate max kernel dump size? I want to create my swap
> partition
> > as small as possible, just to fit kernel dump needs.
>
> I'm not sure you really can.  You'll definitely have enough if you allow
> a bit more than you have memory, but these days that's going to be
> overkill most of the time.
>
>
Yes, at this time I use SWAP = RAM + 1G formula. And yes, this is an
overkill especially for expensive SAS drives. I've noticed that my kernel
dumps do not exceed 2-3.5G usually.

Maybe I can collect stats for amount of Active memory used and assume that
kernel dump will not get larger than, say, Active memory + 50%?



-- 
// cronfy


More information about the freebsd-questions mailing list