HomeFreeBSD

ztest: reduce gangblock creation

Description

ztest: reduce gangblock creation

In order to validate the gang block code ztest is configured to
artificially force a fraction of large blocks to be written as
gang blocks. The default setting chosen for this was to
write 25% of all blocks 32k or larger using gang blocks.

The confluence of an unrealistically large number of gang blocks,
the aggressive fault injection done by ztest, and the split
segment reconstruction logic introduced by device removal has
resulted in the following type of failure:

  zdb -bccsv -G -d ... exit code 3

Specifically, zdb was unable to open the pool because it was
unable to reconstruct a damaged block. Manual investigation
of multiple failures clearly showed that the block could be
reconstructed. However, due to the large number of damaged
segments (>35) it could not be done in the allotted time.

Furthermore, the large number of gang blocks was determined
to be the reason for the unrealistically large number of
damaged segments. In order to make this situation less
likely, this change both increases the forced gang block
size to 64k and reduces the frequency to 3% of blocks.

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Tom Caputi <tcaputi@datto.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #8080

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Nov 5 2018, 7:53 PM
GitHub <noreply@github.com>Committed on Nov 5 2018, 7:53 PM
Parents
rGe89f1295d4fa: Add libzutil for libzfs or libzpool consumers
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG09b85f2dedfa: ztest: reduce gangblock creation (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Nov 5 2018, 7:53 PM