diff options
author | Steve French <stfrench@microsoft.com> | 2018-08-04 05:24:34 -0500 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2018-08-07 14:30:59 -0500 |
commit | 468d677954c0d94fec59275d91222257fe8b4416 (patch) | |
tree | 447717951ad83b14eb46b9ebb2a2a3d053380144 /tools | |
parent | a5c62f4833c2c8e6e0f35367b99b717b78f5c029 (diff) | |
download | linux-stable-468d677954c0d94fec59275d91222257fe8b4416.tar.gz linux-stable-468d677954c0d94fec59275d91222257fe8b4416.tar.bz2 linux-stable-468d677954c0d94fec59275d91222257fe8b4416.zip |
smb3: display stats counters for number of slow commands
When CONFIG_CIFS_STATS2 is enabled keep counters for slow
commands (ie server took longer than 1 second to respond)
by SMB2/SMB3 command code. This can help in diagnosing
whether performance problems are on server (instead of
client) and which commands are causing the problem.
Sample output (the new lines contain words "slow responses ...")
$ cat /proc/fs/cifs/Stats
Resources in use
CIFS Session: 1
Share (unique mount targets): 2
SMB Request/Response Buffer: 1 Pool size: 5
SMB Small Req/Resp Buffer: 1 Pool size: 30
Total Large 10 Small 490 Allocations
Operations (MIDs): 0
0 session 0 share reconnects
Total vfs operations: 67 maximum at one time: 2
4 slow responses from localhost for command 5
1 slow responses from localhost for command 6
1 slow responses from localhost for command 14
1 slow responses from localhost for command 16
1) \\localhost\test
SMBs: 243
Bytes read: 1024000 Bytes written: 104857600
TreeConnects: 1 total 0 failed
TreeDisconnects: 0 total 0 failed
Creates: 40 total 0 failed
Closes: 39 total 0 failed
...
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions