nfs optimization settings in the automounter
I am having a hard time telling the automounter to use the options rsize=32768,wsize=32768 when automounting home directories. I have tried specifying these options in the auto.home file on my nis master server ( -rw,soft,rsize=32768,wsize=32768 nismaster:/export/home/jrush ) I have also tried to put them in the localoptions setting in the autofs init file ( localoptions='rsize=32768,wsize=32768' ) on both the nis master and on the client machines.
I also tried to specify these options in the auto.master file on the nis master (the client machines don't have auto.master files because they read the nis master's file ) ( /etc/auto.home --timeout=43200,rsize=32768,wsize=32768 ) I have also tried to use lower settings such as 16384
however when I look in /proc/mounts on the client machine it is either mounted with 4096 or 8192
My setup is as follows:
All the machines are running redhat 9 using Linux automount version 3.1.7 and nfs version 3
Justin Rush
Technical Specialist
Internet Scout Project
[email protected]
Quoted 13 lines · Justin Rush
I am having a hard time telling the automounter to use the options rsize=32768,wsize=32768 when automounting home directories. I have tried specifying these options in the auto.home file on my nis master server ( -rw,soft,rsize=32768,wsize=32768 nismaster:/export/home/jrush ) I have also tried to put them in the localoptions setting in the autofs init file ( localoptions='rsize=32768,wsize=32768' ) on both the nis master and on the client machines.
I also tried to specify these options in the auto.master file on the nis master (the client machines don't have auto.master files because they read the nis master's file ) (/etc/auto.home--timeout=43200,rsize=32768,wsize=32768 )
I have also tried to use lower settings such as 16384
Quoted 3 lines
however when I look in
/proc/mountson the client machine it is either mounted with 4096 or 8192
Are you using NFSv3? As far as I know I think 8192 is max for NFSv2, at least for most of the NFSv2 servers I know.
Try doing the mounting without using autofs. If the same thing happens, it's an NFS issue, not an autofs issue.
-hpa
I am using nfs v3 and I can mount it manually with these options.
Quoted 31 lines · H. Peter Anvin
Quoted 13 lines · Justin Rush
I am having a hard time telling the automounter to use the options rsize=32768,wsize=32768 when automounting home directories. I have tried specifying these options in the auto.home file on my nis master server ( -rw,soft,rsize=32768,wsize=32768 nismaster:/export/home/jrush ) I have also tried to put them in the localoptions setting in the autofs init file ( localoptions='rsize=32768,wsize=32768' ) on both the nis master and on the client machines.
I also tried to specify these options in the auto.master file on the nis master (the client machines don't have auto.master files because they read the nis master's file ) (/etc/auto.home--timeout=43200,rsize=32768,wsize=32768 )
I have also tried to use lower settings such as 16384Quoted 5 lines
however when I look in
/proc/mountson the client machine it is either mounted with 4096 or 8192Are you using NFSv3? As far as I know I think 8192 is max for NFSv2, at least for most of the NFSv2 servers I know.
Try doing the mounting without using autofs. If the same thing happens, it's an NFS issue, not an autofs issue.
-hpa
Signature · 4 lines
Justin Rush Technical Specialist Internet Scout Project [email protected]
It's an nfs limitation. Reconfig your server and change this option:
"include/linux/nfsd/const.h" in the kernel source shows the following definition
/*
* Maximum blocksize supported by daemon currently at 8K */
#define NFSSVC_MAXBLKSIZE 8192
Quoted 36 lines · H. Peter Anvin
Quoted 13 lines · Justin Rush
I am having a hard time telling the automounter to use the options rsize=32768,wsize=32768 when automounting home directories. I have tried specifying these options in the auto.home file on my nis master server ( -rw,soft,rsize=32768,wsize=32768 nismaster:/export/home/jrush ) I have also tried to put them in the localoptions setting in the autofs init file ( localoptions='rsize=32768,wsize=32768' ) on both the nis master and on the client machines.
I also tried to specify these options in the auto.master file on the nis master (the client machines don't have auto.master files because they read the nis master's file ) (/etc/auto.home--timeout=43200,rsize=32768,wsize=32768 )
I have also tried to use lower settings such as 16384Quoted 5 lines
however when I look in
/proc/mountson the client machine it is either mounted with 4096 or 8192Are you using NFSv3? As far as I know I think 8192 is max for NFSv2, at least for most of the NFSv2 servers I know.
Try doing the mounting without using autofs. If the same thing happens, it's an NFS issue, not an autofs issue.
-hpa
_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs
Signature · 7 lines
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Rhythm & Hues 5404 Jandy Place Los Angeles, CA 90066 Voice: 310 448-7763 Fax: 310 448-7600 [email protected]
_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs
Quoted 1 line · Justin Rush
I am using nfs v3 and I can mount it manually with these options.
If so, please enable *.debug output in syslog and look at the output from the automounter in the syslog.
-hpa
Ian Kent
maintainerQuoted 14 lines · H. Peter Anvin
Quoted 13 lines · Justin Rush
I am having a hard time telling the automounter to use the options rsize=32768,wsize=32768 when automounting home directories. I have tried specifying these options in the auto.home file on my nis master server ( -rw,soft,rsize=32768,wsize=32768 nismaster:/export/home/jrush ) I have also tried to put them in the localoptions setting in the autofs init file ( localoptions='rsize=32768,wsize=32768' ) on both the nis master and on the client machines.
I also tried to specify these options in the auto.master file on the nis master (the client machines don't have auto.master files because they read the nis master's file ) (/etc/auto.home--timeout=43200,rsize=32768,wsize=32768 )
I have also tried to use lower settings such as 16384
Quoted 6 lines
Quoted 3 lines
however when I look in
/proc/mountson the client machine it is either mounted with 4096 or 8192Are you using NFSv3? As far as I know I think 8192 is max for NFSv2, at least for most of the NFSv2 servers I know.
Yep. Saw it in the 2.4 source the other day.
NFSv3 has a maximum of 32768.
Signature · 4 lines
,-._|\ Ian Kent / \ Perth, Western Australia *_.--._/ E-mail: [email protected] v Web: http://themaw.net/