HomeFreeBSD

Don't count embedded bps in read stats

Description

Don't count embedded bps in read stats

Currently, ZFS tracks statistics about calls to arc_read()
via the /proc/spl/kstat/zfs/<pool>/reads file for debugging.
Unfortunately, this file currently counts embedded bps as
disk reads since they are technically processed by the ZIO
layer. This pollutes the log since the ARC will never cache
embedded bps. This patch corrects this issue by preventing
the logging of embedded bp reads.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #7334

Details

Provenance
Tom Caputi <tcaputi@datto.com>Authored on Mar 24 2018, 4:35 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Mar 24 2018, 4:35 AM
Parents
rG387b6856d6d6: OpenZFS 9193 - bootcfg -C doesn't work
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG157ef7f6a527: Don't count embedded bps in read stats (authored by Tom Caputi <tcaputi@datto.com>).Mar 24 2018, 4:35 AM