Bug 237664 - [patch] systat -zarc to display cumulative rate and round down large numbers by SI units
Summary: [patch] systat -zarc to display cumulative rate and round down large numbers ...
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords: patch
Depends on: 213310
Blocks:
  Show dependency treegraph
 
Reported: 2019-04-30 03:37 UTC by ota
Modified: 2019-05-01 22:22 UTC (History)
1 user (show)

See Also:


Attachments
systat -zarc improved (8.02 KB, patch)
2019-04-30 03:37 UTC, ota
no flags Details | Diff
systat -zarc improved 2 (8.59 KB, patch)
2019-05-01 07:02 UTC, ota
no flags Details | Diff
systat -zarc improved 3 (8.59 KB, patch)
2019-05-01 07:07 UTC, ota
no flags Details | Diff
systat -zarc improved 4 (9.56 KB, patch)
2019-05-01 22:22 UTC, ota
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ota 2019-04-30 03:37:24 UTC
Created attachment 204106 [details]
systat -zarc improved

Update to display cumulative rate and also make numebrs easier to read.

== OLD screen == 
                       Total     MFU     MRU    Anon     Hdr   L2Hdr   Other
     ZFS ARC            813M    555M    111M     81K   9821K      0K    137M

                                rate    hits  misses   total hits total misses
     arcstats                  : 89%    6714     761     36912905      3781817
     arcstats.demand_data      :  0%       0       0      6825292      1204922
     arcstats.demand_metadata  : 89%    6715     761     29924478      2508183
     arcstats.prefetch_data    :  0%       0       0            0            0
     arcstats.prefetch_metadata:  0%       0       0       163138        68712
     zfetchstats               :  0%       0       0            0            0
     arcstats.l2               :  0%       0       0            0            0
     vdev_cache_stats          :  0%       0       0            0            0






Disks  ada0   da0   cd0 pass0 pass1 pass2
KB/t   0.50  0.00  0.00  0.00  0.00  0.00
tps       0     0     0     0     0     0
MB/s   0.00  0.00  0.00  0.00  0.00  0.00
%busy     0     0     0     0     0     0

== NEW screen == 

                       Total     MFU     MRU    Anon     Hdr   L2Hdr   Other
     ZFS ARC            814M    556M    111M   32768   9823K       0    137M

                                Rate   Hits Misses | Total Rate   Hits Misses
     arcstats                  : 88%  41279   5260 |        90% 37209k  3809k
     arcstats.demand_data      :100%   4200      0 |        85%  6833k  1205k
     arcstats.demand_metadata  : 87%  36709   5260 |        92% 30213k  2535k
     arcstats.prefetch_data    :  0%      0      0 |         0%      0      0
     arcstats.prefetch_metadata:100%    370      0 |        70%   164k  68919
     zfetchstats               :  0%      0      0 |         0%      0      0
     arcstats.l2               :  0%      0      0 |         0%      0      0
     vdev_cache_stats          :  0%      0      0 |         0%      0      0






Disks  ada0   da0   cd0 pass0 pass1 pass2
KB/t   0.00  0.00  0.00  0.00  0.00  0.00
tps       0     0     0     0     0     0
MB/s   0.00  0.00  0.00  0.00  0.00  0.00
%busy     0     0     0     0     0     0
Comment 1 ota 2019-05-01 07:02:38 UTC
Created attachment 204133 [details]
systat -zarc improved 2

Fixed style.
Comment 2 ota 2019-05-01 07:07:37 UTC
Created attachment 204134 [details]
systat -zarc improved 3

Fixed another style.
Comment 3 ota 2019-05-01 22:22:18 UTC
Created attachment 204155 [details]
systat -zarc improved 4

Avoid wnd as function argument name as it is also a global variable name.
Few more style fixes.