HomeFreeBSD

Prevent zevent list from consuming all of kernel memory

Description

Prevent zevent list from consuming all of kernel memory

There are a couple changes included here. The first is to introduce
a cap on the size the ZED will grow the zevent list to. One million
entries is more than enough for most use cases, and if you are
overflowing that value, the problem needs to be addressed another
way. The value is also tunable, for those who want the limit to be
higher or lower.

The other change is to add a kernel module parameter that allows
snapshot creation/deletion to be exempted from the history logging;
for most workloads, having these things logged is valuable, but for
some workloads it produces large quantities of log spam and isn't
especially helpful.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Paul Dagnelie <pcd@delphix.com>
Issue #13374
Closes #13753

Details

Provenance
pcd_delphix.comAuthored on Aug 22 2022, 7:36 PM
GitHub <noreply@github.com>Committed on Aug 22 2022, 7:36 PM
Parents
rGd22dd77c4d45: contrib: dracut: zfs-snapshot-bootfs: exit status fix
Branches
Unknown
Tags
Unknown