diff options
author | shodanshok <[email protected]> | 2022-10-04 20:00:02 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2022-11-01 12:35:05 -0700 |
commit | 820edcbf9111ece4140e806047aa54aa4b9460d9 (patch) | |
tree | bdfa34271d5bc921287a6070182b94b885b8f79d /cmd | |
parent | 37763ea2a67871ffce452df225b5b71733b8e2a1 (diff) |
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 <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Signed-off-by: Gionatan Danti <[email protected]>
Closes #13985
Diffstat (limited to 'cmd')
-rwxr-xr-x | cmd/arc_summary/arc_summary3 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/arc_summary/arc_summary3 b/cmd/arc_summary/arc_summary3 index 7b28012ed..301c485b3 100755 --- a/cmd/arc_summary/arc_summary3 +++ b/cmd/arc_summary/arc_summary3 @@ -686,9 +686,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: @@ -697,10 +697,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: |