2003-09-24 11:20:48

by Brasseur Valéry

[permalink] [raw]
Subject: readdir and readdirplus...

I am using a linux 2.4.20+NFS-ALL patches.
my server is a Netapp Filer

I am using NFSv3

what I did not understand is that it's seems that linux does not use =
READDIRPLUS ...=20
is it normal ? in sources I have seen that certain condition should be =
met... but I never see any READDIRPLUS request !!!

thanks
valery


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs


2003-09-24 16:01:04

by Trond Myklebust

[permalink] [raw]
Subject: Re: readdir and readdirplus...

>>>>> " " =3D=3D Brasseur Val=E9ry <[email protected]> writes:

> I am using a linux 2.4.20+NFS-ALL patches. my server is a
> Netapp Filer

> I am using NFSv3

> what I did not understand is that it's seems that linux does
> not use READDIRPLUS ... is it normal ? in sources I have seen
> that certain condition should be met... but I never see any
> READDIRPLUS request !!!

My machine currently shows the following statistics against a filer:

Client nfs v3:
null getattr setattr lookup access readlink
0 0% 6405 36% 777 4% 1719 9% 3534 20% 119 0%
read write create mkdir symlink mknod
2340 13% 1645 9% 155 0% 4 0% 2 0% 0 0%
remove rmdir rename link readdir readdirplus
165 0% 3 0% 13 0% 37 0% 21 0% 631 3%
fsstat fsinfo pathconf commit
50 0% 5 0% 0 0% 0 0%

So READDIRPLUS should normally be quite usable. Are you sure that=20
the patches applied cleanly?

Cheers,
Trond


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2003-09-24 16:25:11

by Brasseur Valéry

[permalink] [raw]
Subject: RE: readdir and readdirplus...

here is one of my nfsstat :

Client nfs v3:
null getattr setattr lookup access readlink =20
0 0% 771483726 1% 6109 0% 827366925 0% 1040368089 0% 4862868 =
0%=20
read write create mkdir symlink mknod =20
-1853693236 1% 1340911105 0% 132162422 0% 260671 0% 8216 0% 0 =
0%=20
remove rmdir rename link readdir readdirplus
174498032 0% 1639 0% 210405486 1% 44505153 0% 5748 0% 155051 =
0%=20
fsstat fsinfo pathconf commit =20
34851 0% 3 0% 0 0% 0 0%=20

and the patch apply cleanly !
any way to verify ?

> -----Original Message-----
> From: Trond Myklebust [mailto:[email protected]]
> Sent: Wednesday, September 24, 2003 6:01 PM
> To: Brasseur Val=E9ry
> Cc: [email protected]
> Subject: Re: [NFS] readdir and readdirplus...
>=20
>=20
> >>>>> " " =3D=3D Brasseur Val=E9ry <[email protected]> =
writes:
>=20
> > I am using a linux 2.4.20+NFS-ALL patches. my server is a
> > Netapp Filer
>=20
> > I am using NFSv3
>=20
> > what I did not understand is that it's seems that linux does
> > not use READDIRPLUS ... is it normal ? in sources I have seen
> > that certain condition should be met... but I never see any
> > READDIRPLUS request !!!
>=20
> My machine currently shows the following statistics against a filer:
>=20
> Client nfs v3:
> null getattr setattr lookup access readlink
> 0 0% 6405 36% 777 4% 1719 9% 3534 20% 119 0%
> read write create mkdir symlink mknod
> 2340 13% 1645 9% 155 0% 4 0% 2 0% 0 0%
> remove rmdir rename link readdir readdirplus
> 165 0% 3 0% 13 0% 37 0% 21 0% 631 3%
> fsstat fsinfo pathconf commit
> 50 0% 5 0% 0 0% 0 0%
>=20
> So READDIRPLUS should normally be quite usable. Are you sure that=20
> the patches applied cleanly?
>=20
> Cheers,
> Trond
>=20


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2003-09-24 18:07:55

by Trond Myklebust

[permalink] [raw]
Subject: RE: readdir and readdirplus...

>>>>> " " == Brasseur Val?ry <[email protected]> writes:

> here is one of my nfsstat : Client nfs v3: null getattr setattr
> lookup access readlink 0 0% 771483726 1% 6109 0% 827366925 0%
> 1040368089 0% 4862868 0% read write create mkdir symlink mknod
> -1853693236 1% 1340911105 0% 132162422 0% 260671 0% 8216 0% 0
> 0% remove rmdir rename link readdir readdirplus 174498032 0%
> 1639 0% 210405486 1% 44505153 0% 5748 0% 155051 0% fsstat
> fsinfo pathconf commit 34851 0% 3 0% 0 0% 0 0%

> and the patch apply cleanly ! any way to verify ?

So... According to this, your NFSv3 client has made 155051 readdirplus
calls. Am I missing something?

Cheers,
Trond


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs