From 9352d8c00402d2b10c0a2f547445dadda3bb0062 Mon Sep 17 00:00:00 2001 From: George Amanakis Date: Mon, 17 Aug 2020 14:04:06 -0400 Subject: [PATCH] Fix reporting of L2ARC writes in arc_summary3 arc_summary3 reports L2ARC writes in bytes. However, the related arc_stat is reported as hits. arc_summary2 report this correctly. Reviewed-by: George Melikov Reviewed-by: Brian Behlendorf Reviewed-by: Ryan Moeller Signed-off-by: George Amanakis Closes #10717 --- cmd/arc_summary/arc_summary3 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/arc_summary/arc_summary3 b/cmd/arc_summary/arc_summary3 index 1b11b2c220..c920b8e539 100755 --- a/cmd/arc_summary/arc_summary3 +++ b/cmd/arc_summary/arc_summary3 @@ -755,13 +755,13 @@ def section_l2arc(kstats_dict): prt_i2('Done ratio:', f_perc(arc_stats['l2_writes_done'], arc_stats['l2_writes_sent']), - f_bytes(arc_stats['l2_writes_done'])) + f_hits(arc_stats['l2_writes_done'])) prt_i2('Error ratio:', f_perc(arc_stats['l2_writes_error'], arc_stats['l2_writes_sent']), - f_bytes(arc_stats['l2_writes_error'])) + f_hits(arc_stats['l2_writes_error'])) else: - prt_i2('Writes sent:', '100 %', f_bytes(arc_stats['l2_writes_sent'])) + prt_i2('Writes sent:', '100 %', f_hits(arc_stats['l2_writes_sent'])) print() print('L2ARC evicts:')