On Sun, Mar 14, 2021 at 01:17:05AM +0000, Joseph Mayer wrote:

> Hi,
> 
> Apologies if I missed any earlier clarification on the mailing list of
> this question:
> 
> What should the size of my swap partition be exactly, at least, for it
> to guaranteedly be big enough to contain a whole kernel crash dump, if
> the kernel crashes?
> 
> I would presume the exact size of the RAM, or are there headings that add
> some bytes or kilobytes, or some further annotations that may take how
> much, a gigabyte extra?
> 
> Thanks,
> Joseph
> 

A crash dump needs a bit more than physical RAM. If you use the
autoallocater when creating a disklabel, it uses max 2 * physmem + 256M,
to have room for two crash dumps. See
src/sbin/disklable/editor.c:editor_allocspace().

        -Otto

Reply via email to