Disable NFS client cache (or other traffic reduction methods)

Eli Dart dart at nersc.gov
Thu Apr 7 13:20:35 PDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


>> Is there a way to disable client-side caching?  I've looked, and
>> can't seem to find one.  Or, do I have this wrong and there is
>> something else that is causing this?
> 
> 
> Take a look through "man mount_nfs" for:
> 
>      -a      Set the read-ahead count to the specified value.  This may
> be in
>              the range of 0 - 4, and determines how many blocks will be
> read
>              ahead when a large file is being read sequentially.  Trying a
>              value greater than 1 for this is suggested for mounts with a
>              large bandwidth * delay product.

I did see this.  Since the client is not reading any files (I think
all the reads are being done by the NFS layer, not by any userland
processes with open files) I had ignored -a.

> 
> ...and the -o ac*** options.  Although you may be right-- I was a bit
> surprised not to see a "-o noac", myself.  Solaris has one:

Hmmmm.....any NFS gurus know whether setting the ac* options to 0
will disable client caching?  Or, will setting these to 0 result in
the client NFS layer fetching the data from the server and then
immediately expiring it?

Thanks,

		--eli



> 
>            noac  Suppress data and attribute caching.
> 
> :-)
> 

- --

- -------------------------------------------------------------------
Eli Dart                                     Office: (510) 495-2999
NERSC Center Networking and Security Group   Cell:   (510) 703-4508
Lawrence Berkeley National Laboratory        Fax:    (510) 486-4316
PGP Fingerprint = C970 F8D3 CFDD 8FFF 5486 343A 2D31 4478 5F82 B2B3
- -------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD4DBQFCVZYOLTFEeF+CsrMRAlReAKDMxrs97SSkZJRhaEVxRRpO51XrsACXX983
grAaYcgINLwiLtzoz3nLhQ==
=GAZ7
-----END PGP SIGNATURE-----



More information about the freebsd-net mailing list