Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 02-17-2013, 11:02 PM   #1
Registered: Jul 2004
Posts: 32

Rep: Reputation: 17
Question RHEL4 & NFS caching

Yes, I know, RHEL4 is ancient and unsupported. Still, it's what I have to work with.

I have a RHEL4 machine running the most recent 2.6.9 kernel. It mounts a NFS3 filesystem, and runs an application from this share. The application reads a number of large data files, each about 1Gb in size.

After a reboot, the machine runs as anyone would expect. My application reads in the required files and processes them in a timely fashion. However, randomly, after days, or weeks, the performance goes through the floor.

When the problem occurs ( and before hand ) I can observe that the kernel has plenty of stuff in its cache, with the cache usually at least twice the size of the data being read from NFS. However iostat shows that NFS is constantly being hit for *small* reads while the application is running. To me, it appears the kernel did not cache the entire input data file.

While my program was running, I verified that it had not cached the entire input through timing a read of the entire data set to /dev/null. First read takes a long time ( as not all the data is cached ). Subsequent reads are quick, as expected as all the data is then fully cached.

For whatever reason, once the problem occurs, it appears that this old kernel is flushing, or perhaps not caching portions of the input data files from NFS. Again, a reboot will restore performance, and restore proper caching of the input data files.

I note more recent kernels ( and NFS client/server versions ) have additional options for controlling caching. There appears to be limited room to move with RHEL4 though.

Can anyone make any suggestions, or comment on specific bugs that may be causing this behavior?
Old 02-18-2013, 06:43 PM   #2
LQ Newbie
Registered: Feb 2013
Posts: 14

Rep: Reputation: Disabled
What nfs mounting options are you using? Can you post the relevant line from your fstab file?

I know some applications that users I support require the nfs mount to be mounted with the nolock option.

That said, the nolock option is to fix an issue that arises when using an nfs mount from a NAS appliance that only supports up to NFSv3

Last edited by brandoness; 02-18-2013 at 06:50 PM.
Old 02-19-2013, 10:13 PM   #3
Registered: Jul 2004
Posts: 32

Original Poster
Rep: Reputation: 17
Sorry for the delay in getting back with the information.

The NFS share has the following options: rw,hard,intr,rsize=32768,wsize=32768,addr=x.x.x.x

From the NFS documentation on the machine ( and my limited understanding ), none of those options appear to impact caching of NFS, but please, am open to any and all suggestions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS RHEL4 server client RHEL5 mydownload Red Hat 11 09-09-2011 03:24 AM
directory attribute caching for NFS/GlusterFS James259 Linux - Server 4 09-23-2010 09:10 AM
mount: RPC: Timed out NFS RHEL4 ajaz_javeed Linux - Software 4 04-11-2007 05:32 AM
Install RHEL4 over HTTP or NFS in VMware using vmxnet! dajomas Red Hat 1 12-29-2006 04:06 AM
NFS - Shares (File Caching Problem) smaida Linux - Networking 4 04-24-2004 12:39 AM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 01:34 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration