Comparing the output of /proc/fs/cifs/Stats vs. the output of the similar Windows data available via "net statistics workstation" I noticed only a few minor things that Windows displays that we don't in Linux
"Network errors"
"Hung sessions"
"Failed sessions"
which is more granular than simply "session reconnects" (from /proc/fs/cifs/Stats)
$ 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
Operations (MIDs): 0
0 session 0 share reconnects
Total vfs operations: 98 maximum at one time: 2
1) \\localhost\test
SMBs: 220
Bytes read: 502092 Bytes written: 31457286
TreeConnects: 1 total 0 failed
TreeDisconnects: 0 total 0 failed
Creates: 53 total 3 failed
Closes: 49 total 0 failed
Flushes: 0 total 0 failed
Reads: 17 total 0 failed
Writes: 31 total 0 failed
Locks: 0 total 0 failed
IOCTLs: 2 total 1 failed
QueryDirectories: 30 total 15 failed
ChangeNotifies: 0 total 0 failed
QueryInfos: 33 total 0 failed
SetInfos: 4 total 0 failed
OplockBreaks: 0 sent 0 failed
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
Operations (MIDs): 0
0 session 0 share reconnects
Total vfs operations: 98 maximum at one time: 2
1) \\localhost\test
SMBs: 220
Bytes read: 502092 Bytes written: 31457286
TreeConnects: 1 total 0 failed
TreeDisconnects: 0 total 0 failed
Creates: 53 total 3 failed
Closes: 49 total 0 failed
Flushes: 0 total 0 failed
Reads: 17 total 0 failed
Writes: 31 total 0 failed
Locks: 0 total 0 failed
IOCTLs: 2 total 1 failed
QueryDirectories: 30 total 15 failed
ChangeNotifies: 0 total 0 failed
QueryInfos: 33 total 0 failed
SetInfos: 4 total 0 failed
OplockBreaks: 0 sent 0 failed
There are other statistics that can be dumped in Windows redirector, but those seem to be the most visible (those available via "net statistics workstation"). Any other suggested statistics?
Here is the current output (with CONFIG_CIFS_STATS2 disabled)
$ 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
Operations (MIDs): 0
0 session 0 share reconnects
Total vfs operations: 98 maximum at one time: 2
1) \\localhost\test
SMBs: 220
Bytes read: 502092 Bytes written: 31457286
TreeConnects: 1 total 0 failed
TreeDisconnects: 0 total 0 failed
Creates: 53 total 3 failed
Closes: 49 total 0 failed
Flushes: 0 total 0 failed
Reads: 17 total 0 failed
Writes: 31 total 0 failed
Locks: 0 total 0 failed
IOCTLs: 2 total 1 failed
QueryDirectories: 30 total 15 failed
ChangeNotifies: 0 total 0 failed
QueryInfos: 33 total 0 failed
SetInfos: 4 total 0 failed
OplockBreaks: 0 sent 0 failed
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
Operations (MIDs): 0
0 session 0 share reconnects
Total vfs operations: 98 maximum at one time: 2
1) \\localhost\test
SMBs: 220
Bytes read: 502092 Bytes written: 31457286
TreeConnects: 1 total 0 failed
TreeDisconnects: 0 total 0 failed
Creates: 53 total 3 failed
Closes: 49 total 0 failed
Flushes: 0 total 0 failed
Reads: 17 total 0 failed
Writes: 31 total 0 failed
Locks: 0 total 0 failed
IOCTLs: 2 total 1 failed
QueryDirectories: 30 total 15 failed
ChangeNotifies: 0 total 0 failed
QueryInfos: 33 total 0 failed
SetInfos: 4 total 0 failed
OplockBreaks: 0 sent 0 failed
--
Thanks,
Steve
Steve