HomeFreeBSD

Fix the ZFS checksum error histograms with larger record sizes

Description

Fix the ZFS checksum error histograms with larger record sizes

My analysis in PR #14716 was incorrect. Each histogram bucket contains
the number of incorrect bits, by position in a 64-bit word, over the
entire record. 8-bit buckets can overflow for record sizes above 2k.
To forestall that, saturate each bucket at 255. That should still get
the point across: either all bits are equally wrong, or just a couple
are.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alan Somers <asomers@gmail.com>
Sponsored-by: Axcient
Closes #15049

Details

Provenance
asomersAuthored on Jul 14 2023, 11:13 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jul 21 2023, 11:35 PM
Parents
rG56ed389a575a: Fix raw receive with different indirect block size.
Branches
Unknown
Tags
Unknown