Kernel dump Zstd compression can be enabled by adding '-Z' to dumpon_flags
in rc.conf(5). savecore(8) will automatically save kernel zstd dumps with a
.zst extension. Zstd compression level can be configured with the
sysctl/tunable kern.kerneldump_zstdlevel. Note that setting the sysctl at
runtime does not immediately change the compression level that will be used
at dump time. To update that, run "service dumpon restart".
Support is also added for user core dumps compressed with Zstd. User
Zstd-compressed cores can be enabled via the sysctl/tunable
kern.compress_user_cores. If your kernel is configured with both GZIO and
ZSTDIO options, set sysctl/tunable kern.compress_user_cores_zstd to "1" to
preferentially compress userspace cores with Zstd instead of gzip. The Zstd
compression level can be configured with the sysctl/tunable
kern.compress_user_cores_zstdlevel.
For both kernel and userspace core dump compression, the default Zstd level
is arbitrarily chosen as 6.
This revision adds the ZSTDIO option to AMD64 GENERIC by default. GZIO is
still a non-default option.