* Linux 2.6 NFS client read-ahead
[not found] <2bc0baf20605240446h197b3d2fxc797404aa0e733ba@mail.gmail.com>
@ 2006-05-24 11:53 ` German San Agustin
2006-05-24 16:21 ` Trond Myklebust
0 siblings, 1 reply; 2+ messages in thread
From: German San Agustin @ 2006-05-24 11:53 UTC (permalink / raw)
To: linux-kernel
We have several linux 2.6.9 accesing to a netapp filer via nfs to
update several thousands of files. The application only need to read a
few blocks of the files when updating so we found out that disabling
the read-ahead on the server improve greatly the performance by
maintaining a clean cache and decreasing the number of access to disk.
We have been trying to disable the read-ahead in the client as well to
reduce the access to the server even further; but we couldn't find
where to do this in the 2.6 kernel family. Is it possible?, or it is
simply that on 2.6 kernels it is not possible to tune the nfs client.
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Linux 2.6 NFS client read-ahead
2006-05-24 11:53 ` Linux 2.6 NFS client read-ahead German San Agustin
@ 2006-05-24 16:21 ` Trond Myklebust
0 siblings, 0 replies; 2+ messages in thread
From: Trond Myklebust @ 2006-05-24 16:21 UTC (permalink / raw)
To: German San Agustin; +Cc: linux-kernel
On Wed, 2006-05-24 at 13:53 +0200, German San Agustin wrote:
> We have several linux 2.6.9 accesing to a netapp filer via nfs to
> update several thousands of files. The application only need to read a
> few blocks of the files when updating so we found out that disabling
> the read-ahead on the server improve greatly the performance by
> maintaining a clean cache and decreasing the number of access to disk.
> We have been trying to disable the read-ahead in the client as well to
> reduce the access to the server even further; but we couldn't find
> where to do this in the 2.6 kernel family. Is it possible?, or it is
> simply that on 2.6 kernels it is not possible to tune the nfs client.
It is not possible, and in this case, it really shouldn't make much
difference to you either as the readahead code is adaptive: it should
automatically detect that you are doing short reads.
If you want to check that it is working, I suggest using tcpdump to
monitor the NFS traffic to that file, then comparing with a "strace"
dump.
Cheers,
Trond
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-05-24 16:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <2bc0baf20605240446h197b3d2fxc797404aa0e733ba@mail.gmail.com>
2006-05-24 11:53 ` Linux 2.6 NFS client read-ahead German San Agustin
2006-05-24 16:21 ` Trond Myklebust
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®