Re: almost no CIFS stats?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> 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@xxxxxxxxxxxxxxxx>:
> >
> > 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@xxxxxxxxxxxxxxxx> 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




[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux