All of lore.kernel.org
 help / color / mirror / Atom feed
* nfs optimization settings in the automounter
@ 2003-11-18 17:52 Justin Rush
  2003-11-18 18:41 ` H. Peter Anvin
  0 siblings, 1 reply; 6+ messages in thread
From: Justin Rush @ 2003-11-18 17:52 UTC (permalink / raw)
  To: autofs

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
jrush@scout.wisc.edu

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: nfs optimization settings in the automounter
  2003-11-18 17:52 nfs optimization settings in the automounter Justin Rush
@ 2003-11-18 18:41 ` H. Peter Anvin
  2003-11-18 18:56   ` Justin Rush
                     ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: H. Peter Anvin @ 2003-11-18 18:41 UTC (permalink / raw)
  To: Justin Rush; +Cc: autofs

Justin Rush wrote:
> 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
> 

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: nfs optimization settings in the automounter
  2003-11-18 18:41 ` H. Peter Anvin
@ 2003-11-18 18:56   ` Justin Rush
  2003-11-18 19:27     ` H. Peter Anvin
  2003-11-18 19:11   ` Greg Bradner
  2003-11-19  0:49   ` Ian Kent
  2 siblings, 1 reply; 6+ messages in thread
From: Justin Rush @ 2003-11-18 18:56 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: autofs

I am using nfs v3 and I can mount it manually with these options.

H. Peter Anvin wrote:

>Justin Rush wrote:
>  
>
>>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
>>
>>    
>>
>
>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
>  
>

-- 
Justin Rush
Technical Specialist
Internet Scout Project
jrush@scout.wisc.edu

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: nfs optimization settings in the automounter
  2003-11-18 18:41 ` H. Peter Anvin
  2003-11-18 18:56   ` Justin Rush
@ 2003-11-18 19:11   ` Greg Bradner
  2003-11-19  0:49   ` Ian Kent
  2 siblings, 0 replies; 6+ messages in thread
From: Greg Bradner @ 2003-11-18 19:11 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: autofs


[-- Attachment #1.1: Type: text/plain, Size: 1776 bytes --]

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




H. Peter Anvin wrote:

>Justin Rush wrote:
>  
>
>>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
>>
>>    
>>
>
>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
>
>_______________________________________________
>autofs mailing list
>autofs@linux.kernel.org
>http://linux.kernel.org/mailman/listinfo/autofs
>  
>

-- 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rhythm & Hues
5404 Jandy Place
Los Angeles, CA 90066
Voice: 310 448-7763
Fax:   310 448-7600
gregb@rhythm.com


[-- Attachment #1.2: Type: text/html, Size: 2462 bytes --]

[-- Attachment #2: Type: text/plain, Size: 140 bytes --]

_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: nfs optimization settings in the automounter
  2003-11-18 18:56   ` Justin Rush
@ 2003-11-18 19:27     ` H. Peter Anvin
  0 siblings, 0 replies; 6+ messages in thread
From: H. Peter Anvin @ 2003-11-18 19:27 UTC (permalink / raw)
  To: Justin Rush; +Cc: autofs

Justin Rush wrote:
> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: nfs optimization settings in the automounter
  2003-11-18 18:41 ` H. Peter Anvin
  2003-11-18 18:56   ` Justin Rush
  2003-11-18 19:11   ` Greg Bradner
@ 2003-11-19  0:49   ` Ian Kent
  2 siblings, 0 replies; 6+ messages in thread
From: Ian Kent @ 2003-11-19  0:49 UTC (permalink / raw)
  To: autofs

On Tue, 18 Nov 2003, H. Peter Anvin wrote:

> Justin Rush wrote:
> > 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
> >
>
> 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.

Yep. Saw it in the 2.4 source the other day.

NFSv3 has a maximum of 32768.

-- 

   ,-._|\    Ian Kent
  /      \   Perth, Western Australia
  *_.--._/   E-mail: raven@themaw.net
        v    Web: http://themaw.net/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-11-19  0:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-18 17:52 nfs optimization settings in the automounter Justin Rush
2003-11-18 18:41 ` H. Peter Anvin
2003-11-18 18:56   ` Justin Rush
2003-11-18 19:27     ` H. Peter Anvin
2003-11-18 19:11   ` Greg Bradner
2003-11-19  0:49   ` Ian Kent

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.