total configured swap exceeds maximum

Conrad Meyer cem at freebsd.org
Sun May 19 15:42:30 UTC 2019


Tangent to this thread, but:

On Sun, May 19, 2019 at 5:56 AM tech-lists <tech-lists at zyxst.net> wrote:
> Then there's the thing about dump/panic. IIRC doesn't total swap have to
> be at least size_of_ram ?

It can be smaller if occasional failure is acceptable.  Minidumps are
on by default and only dump active pages.

Additionally, dumpon_flags can set "-Z" for zstd compression in 12.x+.
The numeric speed/compression level is configured with sysctl
kern.kerneldump_gzlevel (perhaps misnamed at this point, but
originally only supported gzip).  In practice, Zstd compression can
often achieve good compression at level 1 or 3, reducing the size of
swap needed to store a complete dump by a factor of maybe 3 without
significant slowdown to the dump process.

Cheers,
Conrad


More information about the freebsd-hackers mailing list