[Gluster-devel] GlusterFS 3.4.1 planning

Nux! nux at li.nux.ro
Mon Aug 12 10:45:50 UTC 2013


On 09.08.2013 21:06, Niels de Vos wrote:
> 
> Slow browsing could indicate that the NFS-client does not use
> READDIRP(LUS) but only READDIR with a lot of LOOKUP calls.
> 
> If you capture a tcpdump and feed it through a recent version of
> wireshark you can get some statistics. When you capture a tcpdump, use
> a command like this
> 
> # tcpdump -i any -s 0 -w /tmp/nfs-client.pcap tcp and host $CLIENTIP
> 
>   Press CTRL+c to exit the capture.
> 
> Gathering statistics with tshark has an interesting commandline:
> 
> $ tshark -r nfs-client.pcap -q -z rpc,srt,100003,3
> 
>   Note that using rpc,srt,100003,2 would display NFSv2 calls, and you
>   really should not have any of them.
> 
> Now, use a more speedy NFS-client and compare the results of a tcpdump
> that contains the same directory browsing. If you are unsure about
> comparing the statistics, post both in a reply to the gluster-devel 
> list
> and one of the guys that knows NFS well should be able to explain (I 
> am
> on holidays next week).
> 
> Of course it is possible that the statistics do not show the issue (in
> case the NFS-client is just slow between sending requests or 
> something).
> Other causes can likely be found when comparing the network traces 
> with
> each other, but that's too complex to describe in an email (for now).
> 
> Cheers,
> Niels

Hello,

I've done the wireshark test and here are the results. There don't seem 
to be any NFS v2 calls. "Properties" on the mounted volume shows  NFS 
version 3 as well.
Everything is very slow and the mounted volume shows as "disconnected" 
(i.e. has a big red X on it). I'll try to do more tests.

tshark -r nfs-client.pcap -q -z rpc,rtt,100003,2

===================================================================
NFS Version 2 RTT Statistics:
Filter:
Procedure        Calls   Min RTT   Max RTT   Avg RTT
NULL                 0   0.00000   0.00000   0.00000
GETATTR              0   0.00000   0.00000   0.00000
SETATTR              0   0.00000   0.00000   0.00000
ROOT                 0   0.00000   0.00000   0.00000
LOOKUP               0   0.00000   0.00000   0.00000
READLINK             0   0.00000   0.00000   0.00000
READ                 0   0.00000   0.00000   0.00000
WRITECACHE           0   0.00000   0.00000   0.00000
WRITE                0   0.00000   0.00000   0.00000
CREATE               0   0.00000   0.00000   0.00000
REMOVE               0   0.00000   0.00000   0.00000
RENAME               0   0.00000   0.00000   0.00000
LINK                 0   0.00000   0.00000   0.00000
SYMLINK              0   0.00000   0.00000   0.00000
MKDIR                0   0.00000   0.00000   0.00000
RMDIR                0   0.00000   0.00000   0.00000
READDIR              0   0.00000   0.00000   0.00000
STATFS               0   0.00000   0.00000   0.00000

tshark -r nfs-client.pcap -q -z rpc,rtt,100003,3

===================================================================
NFS Version 3 RTT Statistics:
Filter:
Procedure        Calls   Min RTT   Max RTT   Avg RTT
NULL                 0   0.00000   0.00000   0.00000
GETATTR             30   0.00024   0.00049   0.00038
SETATTR              4   0.00029   0.00031   0.00030
LOOKUP              10   0.00033   0.00084   0.00058
ACCESS               0   0.00000   0.00000   0.00000
READLINK             0   0.00000   0.00000   0.00000
READ                 2   0.00033   0.00033   0.00033
WRITE                0   0.00000   0.00000   0.00000
CREATE               2   0.00097   0.00098   0.00098
MKDIR               82   0.00084   0.03701   0.00184
SYMLINK              0   0.00000   0.00000   0.00000
MKNOD                0   0.00000   0.00000   0.00000
REMOVE               0   0.00000   0.00000   0.00000
RMDIR                0   0.00000   0.00000   0.00000
RENAME               0   0.00000   0.00000   0.00000
LINK                 0   0.00000   0.00000   0.00000
READDIR             16   0.00071   0.00113   0.00087
READDIRPLUS         18   0.00004   0.00117   0.00081
FSSTAT               2   0.00071   0.00072   0.00072
FSINFO               0   0.00000   0.00000   0.00000
PATHCONF             0   0.00000   0.00000   0.00000
COMMIT               0   0.00000   0.00000   0.00000


-- 
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro




More information about the Gluster-devel mailing list