[RFC][PATCH] Track time spent in each command
Pavel Shilovsky
piastryyy at gmail.com
Tue Mar 26 19:06:41 UTC 2019
вт, 26 мар. 2019 г. в 11:55, Steve French <smfrench at gmail.com>:
>
> How about this updated patch - note how I now display min/max
> (although min in this case will always be zero since jiffies are
> pretty coarse granularity - maybe would be more helpful to run this
> example over a slow link, or I could just make the patch simpler and
> not save the minimum time for each command). Note that the new stats
> begin with the line "Total time spent processing by command ..."
>
>
>
>
> $ cat /proc/fs/cifs/Stats
> Resources in use
> CIFS Session: 1
> Share (unique mount targets): 3
> SMB Request/Response Buffer: 1 Pool size: 5
> SMB Small Req/Resp Buffer: 1 Pool size: 30
> Total Large 38854 Small 1039857 Allocations
> Operations (MIDs): 0
>
> 0 session 0 share reconnects
> Total vfs operations: 272653 maximum at one time: 3
>
> Total time spent processing by command. Time units are jiffies (250 per second)
> SMB3 CMD Number Total Time Fastest Slowest
> -------- ------ ---------- ------- -------
> 0 1 1 1 1
> 1 2 1 0 1
> 2 0 0 0 0
> 3 6 1 0 1
> 4 3 0 0 0
> 5 95353 5163 0 12
> 6 95314 3012 0 1
> 7 2 2 1 1
> 8 4263 57 0 1
> 9 1101 33 0 1
> 10 0 0 0 0
> 11 16 0 0 0
> 12 0 0 0 0
> 13 0 0 0 0
> 14 121 37 0 1
> 15 0 0 0 0
> 16 56357 1100 0 1
> 17 16703 1089 0 1
> 18 0 0 0 0
Looks good. Probably "SMB3 CMD" should be just "CMD" and extra tabs
are needed for proper indentation.
--
Best regards,
Pavel Shilovsky
More information about the samba-technical
mailing list