2003-11-14 18:37:34

by Jason Holmes

[permalink] [raw]
Subject: Re: 2.4 vs. 2.6 nfs client performance

Trond Myklebust wrote:
>
> IOW this all appears to be doing synchronous I/O only (both in the
> case of 2.4.22 and 2.6.0).
> Note: most of these RPC calls do indeed appear to be something other
> than WRITE calls. Are they perhaps GETATTR calls? Have you for
> instance set 'noac', 'actimeo' or something like that?

This was my mistake - I had changed the export to sync for a test right
before the debug runs and forgot to change it back.

> Could you please try using
>
> echo "9" >/proc/sys/sunrpc/nfs_debug

Files should be up there (http://magicbus.cac.psu.edu/nfs). I do have
to admit that something odd is going on - 2.4.22 still is faster than
2.6.0-test9-bk17 and test9-bk17 is still showing the large amount of
commits, but both of them are running faster than they did before on the
sync mounts and I'm not sure what I might have changed to cause this.

Thanks,

--
Jason Holmes


-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs


2003-11-14 21:11:46

by Trond Myklebust

[permalink] [raw]
Subject: Re: 2.4 vs. 2.6 nfs client performance

>>>>> " " == Jason Holmes <[email protected]> writes:

> Files should be up there (http://magicbus.cac.psu.edu/nfs). I
> do have to admit that something odd is going on - 2.4.22 still
> is faster than 2.6.0-test9-bk17 and test9-bk17 is still showing
> the large amount of commits, but both of them are running
> faster than they did before on the sync mounts and I'm not sure
> what I might have changed to cause this.

Hmm... It looks like you are doing a succession of 4k commits. I'll
bet the read() code is involved in this...

Could you try the following patch and see if it improves things?

Cheers,
Trond

--- linux-2.6.0-test9/fs/nfs/write.c.orig 2003-11-13 18:39:34.000000000 -0500
+++ linux-2.6.0-test9/fs/nfs/write.c 2003-11-14 16:04:58.000000000 -0500
@@ -1103,7 +1103,7 @@
error = nfs_flush_file(inode, file, idx_start, npages, how);
#if defined(CONFIG_NFS_V3) || defined(CONFIG_NFS_V4)
if (error == 0)
- error = nfs_commit_file(inode, file, idx_start, npages, how);
+ error = nfs_commit_file(inode, file, 0, 0, how);
#endif
} while (error > 0);
return error;


-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs