Skip to contentSkip to conversation

Linux 2.6 NFS client read-ahead

DISCUSSION German San Agustin 2 participants 2 messages May 24, 2006 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

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.

#2 lore raw
Quoted 9 lines · German San Agustin

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