HomeFreeBSD

Fix dbufstats_001_pos

Description

Fix dbufstats_001_pos

Implement a new helper within_tolerance to test if a value
is within range of a target.

Because the dbufstats and dbufs kstat file are being read
at slightly different times, it is possible for stats to be
slightly off. Use within_tolerance to determine if the value
is "close enough" to the target.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Closes #7239
Closes #7266

Details

Provenance
Giuseppe Di Natale <dinatale2@users.noreply.github.com>Authored on Mar 7 2018, 5:53 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Mar 7 2018, 5:53 PM
Parents
rG639b18944a6a: Allow to limit zed's syslog chattiness
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGa07ad5884715: Fix dbufstats_001_pos (authored by Giuseppe Di Natale <dinatale2@users.noreply.github.com>).Mar 7 2018, 5:53 PM