All of lore.kernel.org
 help / color / mirror / Atom feed
* almost no CIFS stats?
@ 2020-05-28 20:37 Matthias Leopold
  2020-05-28 21:31 ` Steve French
  0 siblings, 1 reply; 5+ messages in thread
From: Matthias Leopold @ 2020-05-28 20:37 UTC (permalink / raw)
  To: linux-cifs

Hi,

I'm trying to debug the performance of rsync reading from a Windows 2012 
R2 share mounted readonly in CentOS 7. I tried to use cifsiostat, which 
doesn't print any stats. I looked into /proc/fs/cifs/Stats and saw that 
it contains mostly "0" for counters (I would expect to see some numbers 
for eg "Reads"). What am I doing wrong?

options from /proc/mounts are
ro,relatime,vers=3.0,cache=strict,username=foo,domain=xxx,uid=1706,forceuid,gid=1676,forcegid,addr=10.110.81.122,file_mode=0660,dir_mode=0770,soft,nounix,serverino,mapposix,rsize=61440,wsize=1048576,echo_interval=60,actimeo=1

thx
Matthias

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: almost no CIFS stats?
  2020-05-28 20:37 almost no CIFS stats? Matthias Leopold
@ 2020-05-28 21:31 ` Steve French
  2020-05-29  8:08   ` Matthias Leopold
  0 siblings, 1 reply; 5+ messages in thread
From: Steve French @ 2020-05-28 21:31 UTC (permalink / raw)
  To: Matthias Leopold; +Cc: CIFS

Stats should show counters for most rows.   See example below:

# 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: 36 maximum at one time: 2

Max requests in flight: 3
1) \\localhost\test
SMBs: 67
Bytes read: 90177536  Bytes written: 2
Open files: 0 total (local), 0 open on server
TreeConnects: 1 total 0 failed
TreeDisconnects: 0 total 0 failed
Creates: 12 total 0 failed
Closes: 13 total 1 failed
Flushes: 1 total 0 failed
Reads: 22 total 0 failed
Writes: 1 total 0 failed
Locks: 0 total 0 failed
IOCTLs: 1 total 1 failed
QueryDirectories: 2 total 0 failed
ChangeNotifies: 0 total 0 failed
QueryInfos: 12 total 0 failed
SetInfos: 2 total 0 failed
OplockBreaks: 0 sent 0 failed


Are you running an old kernel (pre-5.0 e.g.)?

On Thu, May 28, 2020 at 3:39 PM Matthias Leopold
<matthias.leopold@meduniwien.ac.at> wrote:
>
> Hi,
>
> I'm trying to debug the performance of rsync reading from a Windows 2012
> R2 share mounted readonly in CentOS 7. I tried to use cifsiostat, which
> doesn't print any stats. I looked into /proc/fs/cifs/Stats and saw that
> it contains mostly "0" for counters (I would expect to see some numbers
> for eg "Reads"). What am I doing wrong?
>
> options from /proc/mounts are
> ro,relatime,vers=3.0,cache=strict,username=foo,domain=xxx,uid=1706,forceuid,gid=1676,forcegid,addr=10.110.81.122,file_mode=0660,dir_mode=0770,soft,nounix,serverino,mapposix,rsize=61440,wsize=1048576,echo_interval=60,actimeo=1
>
> thx
> Matthias



-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: almost no CIFS stats?
  2020-05-28 21:31 ` Steve French
@ 2020-05-29  8:08   ` Matthias Leopold
  2020-05-29 16:22     ` Pavel Shilovsky
  0 siblings, 1 reply; 5+ messages in thread
From: Matthias Leopold @ 2020-05-29  8:08 UTC (permalink / raw)
  To: Steve French; +Cc: CIFS

CentOS 7 has kernel 3.10 (modified by Red Hat)

Am 28.05.20 um 23:31 schrieb Steve French:
> Stats should show counters for most rows.   See example below:
> 
> # 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: 36 maximum at one time: 2
> 
> Max requests in flight: 3
> 1) \\localhost\test
> SMBs: 67
> Bytes read: 90177536  Bytes written: 2
> Open files: 0 total (local), 0 open on server
> TreeConnects: 1 total 0 failed
> TreeDisconnects: 0 total 0 failed
> Creates: 12 total 0 failed
> Closes: 13 total 1 failed
> Flushes: 1 total 0 failed
> Reads: 22 total 0 failed
> Writes: 1 total 0 failed
> Locks: 0 total 0 failed
> IOCTLs: 1 total 1 failed
> QueryDirectories: 2 total 0 failed
> ChangeNotifies: 0 total 0 failed
> QueryInfos: 12 total 0 failed
> SetInfos: 2 total 0 failed
> OplockBreaks: 0 sent 0 failed
> 
> 
> Are you running an old kernel (pre-5.0 e.g.)?
> 
> On Thu, May 28, 2020 at 3:39 PM Matthias Leopold
> <matthias.leopold@meduniwien.ac.at> wrote:
>>
>> Hi,
>>
>> I'm trying to debug the performance of rsync reading from a Windows 2012
>> R2 share mounted readonly in CentOS 7. I tried to use cifsiostat, which
>> doesn't print any stats. I looked into /proc/fs/cifs/Stats and saw that
>> it contains mostly "0" for counters (I would expect to see some numbers
>> for eg "Reads"). What am I doing wrong?
>>
>> options from /proc/mounts are
>> ro,relatime,vers=3.0,cache=strict,username=foo,domain=xxx,uid=1706,forceuid,gid=1676,forcegid,addr=10.110.81.122,file_mode=0660,dir_mode=0770,soft,nounix,serverino,mapposix,rsize=61440,wsize=1048576,echo_interval=60,actimeo=1
>>
>> thx
>> Matthias
> 
> 
> 

-- 
Matthias Leopold
IT Systems & Communications
Medizinische Universität Wien
Spitalgasse 23 / BT 88 /Ebene 00
A-1090 Wien
Tel: +43 1 40160-21241
Fax: +43 1 40160-921200

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: almost no CIFS stats?
  2020-05-29  8:08   ` Matthias Leopold
@ 2020-05-29 16:22     ` Pavel Shilovsky
  2020-05-29 18:18       ` Steve French
  0 siblings, 1 reply; 5+ messages in thread
From: Pavel Shilovsky @ 2020-05-29 16:22 UTC (permalink / raw)
  To: Matthias Leopold, ronnie sahlberg; +Cc: Steve French, CIFS

HI Matthias,

I remember Stats not working on CentOS 7 - showing zeros as you reported.

Adding Ronnie to comment.

--
Best regards,
Pavel Shilovsky

пт, 29 мая 2020 г. в 01:18, Matthias Leopold
<matthias.leopold@meduniwien.ac.at>:
>
> CentOS 7 has kernel 3.10 (modified by Red Hat)
>
> Am 28.05.20 um 23:31 schrieb Steve French:
> > Stats should show counters for most rows.   See example below:
> >
> > # 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: 36 maximum at one time: 2
> >
> > Max requests in flight: 3
> > 1) \\localhost\test
> > SMBs: 67
> > Bytes read: 90177536  Bytes written: 2
> > Open files: 0 total (local), 0 open on server
> > TreeConnects: 1 total 0 failed
> > TreeDisconnects: 0 total 0 failed
> > Creates: 12 total 0 failed
> > Closes: 13 total 1 failed
> > Flushes: 1 total 0 failed
> > Reads: 22 total 0 failed
> > Writes: 1 total 0 failed
> > Locks: 0 total 0 failed
> > IOCTLs: 1 total 1 failed
> > QueryDirectories: 2 total 0 failed
> > ChangeNotifies: 0 total 0 failed
> > QueryInfos: 12 total 0 failed
> > SetInfos: 2 total 0 failed
> > OplockBreaks: 0 sent 0 failed
> >
> >
> > Are you running an old kernel (pre-5.0 e.g.)?
> >
> > On Thu, May 28, 2020 at 3:39 PM Matthias Leopold
> > <matthias.leopold@meduniwien.ac.at> wrote:
> >>
> >> Hi,
> >>
> >> I'm trying to debug the performance of rsync reading from a Windows 2012
> >> R2 share mounted readonly in CentOS 7. I tried to use cifsiostat, which
> >> doesn't print any stats. I looked into /proc/fs/cifs/Stats and saw that
> >> it contains mostly "0" for counters (I would expect to see some numbers
> >> for eg "Reads"). What am I doing wrong?
> >>
> >> options from /proc/mounts are
> >> ro,relatime,vers=3.0,cache=strict,username=foo,domain=xxx,uid=1706,forceuid,gid=1676,forcegid,addr=10.110.81.122,file_mode=0660,dir_mode=0770,soft,nounix,serverino,mapposix,rsize=61440,wsize=1048576,echo_interval=60,actimeo=1
> >>
> >> thx
> >> Matthias
> >
> >
> >
>
> --
> Matthias Leopold
> IT Systems & Communications
> Medizinische Universität Wien
> Spitalgasse 23 / BT 88 /Ebene 00
> A-1090 Wien
> Tel: +43 1 40160-21241
> Fax: +43 1 40160-921200

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: almost no CIFS stats?
  2020-05-29 16:22     ` Pavel Shilovsky
@ 2020-05-29 18:18       ` Steve French
  0 siblings, 0 replies; 5+ messages in thread
From: Steve French @ 2020-05-29 18:18 UTC (permalink / raw)
  To: Pavel Shilovsky; +Cc: Matthias Leopold, ronnie sahlberg, CIFS

RHEL7 (and related like CentOS7) did not enable stats by default in
the build (unless Ronnie changed it in later service packs) but the
last 3 RHEL version (RHEL8.2, 8.1, 8.0 and CentOS equivalents) do have
stats enabled.  Remember the 3.10 kernel is 7 years old so many things
are missing from it.

Note that for additional stats, including timing (slowest, fastest,
and total time by command), private builds can be done of cifs.ko with
CONFIG_CIFS_STATS2.

I suggest trying it on a more recent version of RHEL or CentOS if
possible (although even for this 7 year old kernel rebuilding cifs.ko
with CONFIG_CIFS_STATS enabled is not too hard if you have the source
RPMs installed).

On Fri, May 29, 2020 at 11:22 AM Pavel Shilovsky <piastryyy@gmail.com> wrote:
>
> HI Matthias,
>
> I remember Stats not working on CentOS 7 - showing zeros as you reported.
>
> Adding Ronnie to comment.
>
> --
> Best regards,
> Pavel Shilovsky
>
> пт, 29 мая 2020 г. в 01:18, Matthias Leopold
> <matthias.leopold@meduniwien.ac.at>:
> >
> > CentOS 7 has kernel 3.10 (modified by Red Hat)
> >
> > Am 28.05.20 um 23:31 schrieb Steve French:
> > > Stats should show counters for most rows.   See example below:
> > >
> > > # 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: 36 maximum at one time: 2
> > >
> > > Max requests in flight: 3
> > > 1) \\localhost\test
> > > SMBs: 67
> > > Bytes read: 90177536  Bytes written: 2
> > > Open files: 0 total (local), 0 open on server
> > > TreeConnects: 1 total 0 failed
> > > TreeDisconnects: 0 total 0 failed
> > > Creates: 12 total 0 failed
> > > Closes: 13 total 1 failed
> > > Flushes: 1 total 0 failed
> > > Reads: 22 total 0 failed
> > > Writes: 1 total 0 failed
> > > Locks: 0 total 0 failed
> > > IOCTLs: 1 total 1 failed
> > > QueryDirectories: 2 total 0 failed
> > > ChangeNotifies: 0 total 0 failed
> > > QueryInfos: 12 total 0 failed
> > > SetInfos: 2 total 0 failed
> > > OplockBreaks: 0 sent 0 failed
> > >
> > >
> > > Are you running an old kernel (pre-5.0 e.g.)?
> > >
> > > On Thu, May 28, 2020 at 3:39 PM Matthias Leopold
> > > <matthias.leopold@meduniwien.ac.at> wrote:
> > >>
> > >> Hi,
> > >>
> > >> I'm trying to debug the performance of rsync reading from a Windows 2012
> > >> R2 share mounted readonly in CentOS 7. I tried to use cifsiostat, which
> > >> doesn't print any stats. I looked into /proc/fs/cifs/Stats and saw that
> > >> it contains mostly "0" for counters (I would expect to see some numbers
> > >> for eg "Reads"). What am I doing wrong?
> > >>
> > >> options from /proc/mounts are
> > >> ro,relatime,vers=3.0,cache=strict,username=foo,domain=xxx,uid=1706,forceuid,gid=1676,forcegid,addr=10.110.81.122,file_mode=0660,dir_mode=0770,soft,nounix,serverino,mapposix,rsize=61440,wsize=1048576,echo_interval=60,actimeo=1
> > >>
> > >> thx
> > >> Matthias
> > >
> > >
> > >
> >
> > --
> > Matthias Leopold
> > IT Systems & Communications
> > Medizinische Universität Wien
> > Spitalgasse 23 / BT 88 /Ebene 00
> > A-1090 Wien
> > Tel: +43 1 40160-21241
> > Fax: +43 1 40160-921200



-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-05-29 18:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-28 20:37 almost no CIFS stats? Matthias Leopold
2020-05-28 21:31 ` Steve French
2020-05-29  8:08   ` Matthias Leopold
2020-05-29 16:22     ` Pavel Shilovsky
2020-05-29 18:18       ` Steve French

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.