From 062d3d056bf2b721f3db68f5c368b1c722ac8585 Mon Sep 17 00:00:00 2001 From: shodanshok Date: Tue, 4 Oct 2022 20:00:02 +0200 Subject: [PATCH] Remove ambiguity on demand vs prefetch stats reported by arc_summary arc_summary currently list prefetch stats as "demand prefetch" However, a hit/miss can be due to demand or prefetch, not both. To remove any confusion, this patch removes the "Demand" word from the affected lines. Reviewed-by: Richard Yao Reviewed-by: Alexander Motin Reviewed-by: George Melikov Signed-off-by: Gionatan Danti Closes #13985 --- cmd/arc_summary | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/arc_summary b/cmd/arc_summary index 4f275813d..9d0c2d30d 100755 --- a/cmd/arc_summary +++ b/cmd/arc_summary @@ -678,9 +678,9 @@ def section_archits(kstats_dict): print() print('Cache hits by data type:') dt_todo = (('Demand data:', arc_stats['demand_data_hits']), - ('Demand prefetch data:', arc_stats['prefetch_data_hits']), + ('Prefetch data:', arc_stats['prefetch_data_hits']), ('Demand metadata:', arc_stats['demand_metadata_hits']), - ('Demand prefetch metadata:', + ('Prefetch metadata:', arc_stats['prefetch_metadata_hits'])) for title, value in dt_todo: @@ -689,10 +689,10 @@ def section_archits(kstats_dict): print() print('Cache misses by data type:') dm_todo = (('Demand data:', arc_stats['demand_data_misses']), - ('Demand prefetch data:', + ('Prefetch data:', arc_stats['prefetch_data_misses']), ('Demand metadata:', arc_stats['demand_metadata_misses']), - ('Demand prefetch metadata:', + ('Prefetch metadata:', arc_stats['prefetch_metadata_misses'])) for title, value in dm_todo: