* default nfs mount options from linux to linux @ 2005-04-22 1:01 Bradford Arrington 2005-04-22 1:42 ` Dan Stromberg 2005-04-22 15:47 ` Bruce Allan 0 siblings, 2 replies; 5+ messages in thread From: Bradford Arrington @ 2005-04-22 1:01 UTC (permalink / raw) To: nfs Does anyone know what or how to find the default mount option are when mounting an nfs volume? example mount linuxnfs:/export /mnt How do I find the rsize/wsize and any other options? (that are default) I am lead to believe that the nfs man page information is false for r/wsize 1k (no way) (udp default is correct though). If I set the r/wsize to 1k performance is very slow. In a "vanilla" default as above it has the fastest iozone benchmarks. Thanks, -Brad ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: default nfs mount options from linux to linux 2005-04-22 1:01 default nfs mount options from linux to linux Bradford Arrington @ 2005-04-22 1:42 ` Dan Stromberg 2005-04-22 15:47 ` Bruce Allan 1 sibling, 0 replies; 5+ messages in thread From: Dan Stromberg @ 2005-04-22 1:42 UTC (permalink / raw) To: Bradford Arrington; +Cc: strombrg, nfs [-- Attachment #1.1: Type: text/plain, Size: 2217 bytes --] If you want to empirically determine a good wsize, for example, you might try the script below. I still haven't had a chance to use it, but I'd like to think it'll work fine. :) Also, if you're on a gigabit network, you may be able to improve NFS performance a lot by turning on jumbo frames. #!/usr/local/bin/bash # with these options: # bg,hard,intr,rsize=8192,wsize=8192 # we got 50Mbps over NFS to ext3 from esmf04d to esmft2 # I suspect UDP may be faster; we're using tcp here. Not sure why AIX # isn't reporting that. #mount -o vers=3,proto=tcp,rsize=8192,wsize=8192 esmft2:/foo /mnt/foo for proto in tcp udp do for vers in 3 2 do for size in $(seq 1024 16 65536) do echo echo $vers $proto $size cd / umount /mnt/foo mount -o insecure,vers="$vers",proto="$proto",rsize= $size,wsize=$size \ esmft2:/foo /mnt/foo cd /mnt/foo rm -f testfile # write 10 gigabytes echo writing 10 gigabytes: $proto $vers $size /bin/time dd if=/dev/zero of=testfile bs=1024k count=10240 2>&1 done done done On Thu, 2005-04-21 at 18:01 -0700, Bradford Arrington wrote: > Does anyone know what or how to find the default mount option are when > mounting an nfs volume? > example > mount linuxnfs:/export /mnt > > How do I find the rsize/wsize and any other options? (that are default) > > I am lead to believe that the nfs man page information is false for > r/wsize 1k (no way) (udp default is correct though). If I set the > r/wsize to 1k performance is very slow. In a "vanilla" default as above > it has the fastest iozone benchmarks. > > Thanks, > -Brad > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > NFS maillist - NFS@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nfs [-- Attachment #1.2: Type: text/html, Size: 3946 bytes --] [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: default nfs mount options from linux to linux 2005-04-22 1:01 default nfs mount options from linux to linux Bradford Arrington 2005-04-22 1:42 ` Dan Stromberg @ 2005-04-22 15:47 ` Bruce Allan 2005-04-22 16:36 ` Bradford Arrington 1 sibling, 1 reply; 5+ messages in thread From: Bruce Allan @ 2005-04-22 15:47 UTC (permalink / raw) To: Bradford Arrington; +Cc: nfs Mount the volume without options and check /proc/mounts. Note that some options may differ based on negotiation with the server. Regards, --- Bruce Allan <bruce.allan@us.ibm.com> Software Engineer, Linux Technology Center IBM Corporation, Beaverton OR USA 503-578-4187 IBM Tie-line 775-4187 Bradford Arrington <brada@cadence.com> Sent by: nfs-admin@lists.sourceforge.net 04/21/2005 06:01 PM To nfs@lists.sourceforge.net cc Subject [NFS] default nfs mount options from linux to linux Does anyone know what or how to find the default mount option are when mounting an nfs volume? example mount linuxnfs:/export /mnt How do I find the rsize/wsize and any other options? (that are default) I am lead to believe that the nfs man page information is false for r/wsize 1k (no way) (udp default is correct though). If I set the r/wsize to 1k performance is very slow. In a "vanilla" default as above it has the fastest iozone benchmarks. Thanks, -Brad ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: default nfs mount options from linux to linux 2005-04-22 15:47 ` Bruce Allan @ 2005-04-22 16:36 ` Bradford Arrington 2005-04-22 17:10 ` Dan Stromberg 0 siblings, 1 reply; 5+ messages in thread From: Bradford Arrington @ 2005-04-22 16:36 UTC (permalink / raw) To: Bruce Allan; +Cc: nfs Bruce, First thank you to all who replied. It turns out I should have just looked at the source code to the mount command found in utils-linux tar package. It seems that although it may look like its mount with 8k r/wsize, the mount C code says it is automatically changed by the kernel it self when needed. This explains a lot because if I where to just mount it with 8k r/wsizes the performance is slower than if I where to just mount linux to linux with out any options (i.e. mount linxnfs:/export /mnt). These seem to be the initial defaults : nfs rw,v3,rsize=8192,wsize=8192,hard,udp,lock However this does not work with Solaris 10, in order to get higher throughput speeds you must specify 8k r/wsizes -Brad On Fri, 2005-04-22 at 08:47 -0700, Bruce Allan wrote: > Mount the volume without options and check /proc/mounts. Note that some > options may differ based on negotiation with the server. > > Regards, > --- > Bruce Allan <bruce.allan@us.ibm.com> > Software Engineer, Linux Technology Center > IBM Corporation, Beaverton OR USA > 503-578-4187 IBM Tie-line 775-4187 > > > > > Bradford Arrington <brada@cadence.com> > Sent by: nfs-admin@lists.sourceforge.net > 04/21/2005 06:01 PM > > To > nfs@lists.sourceforge.net > cc > > Subject > [NFS] default nfs mount options from linux to linux > > > > > > > > Does anyone know what or how to find the default mount option are when > mounting an nfs volume? > example > mount linuxnfs:/export /mnt > > How do I find the rsize/wsize and any other options? (that are default) > > I am lead to believe that the nfs man page information is false for > r/wsize 1k (no way) (udp default is correct though). If I set the > r/wsize to 1k performance is very slow. In a "vanilla" default as above > it has the fastest iozone benchmarks. > > Thanks, > -Brad > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > NFS maillist - NFS@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nfs > > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: default nfs mount options from linux to linux 2005-04-22 16:36 ` Bradford Arrington @ 2005-04-22 17:10 ` Dan Stromberg 0 siblings, 0 replies; 5+ messages in thread From: Dan Stromberg @ 2005-04-22 17:10 UTC (permalink / raw) To: Bradford Arrington; +Cc: strombrg, Bruce Allan, nfs [-- Attachment #1: Type: text/plain, Size: 3480 bytes --] You can generally verify the actual rsize/wsize using a sniffer, like ethereal, tcpdump -v or snoop. Solaris should be defaulting to 8K rsize and wsize, as should almost all unixes. It's the linuxes that have historically used smaller rsize/wsize - I'm led to believe this was because so many network cards used with linux used to be poor, and liked having smaller NFS blocksizes. On Fri, 2005-04-22 at 09:36 -0700, Bradford Arrington wrote: > Bruce, > > First thank you to all who replied. > > It turns out I should have just looked at the source code to the mount > command found in utils-linux tar package. > > It seems that although it may look like its mount with 8k r/wsize, the > mount C code says it is automatically changed by the kernel it self when > needed. > > This explains a lot because if I where to just mount it with 8k r/wsizes > the performance is slower than if I where to just mount linux to linux > with out any options (i.e. mount linxnfs:/export /mnt). > These seem to be the initial defaults : > nfs rw,v3,rsize=8192,wsize=8192,hard,udp,lock > > However this does not work with Solaris 10, in order to get higher > throughput speeds you must specify 8k r/wsizes > > -Brad > > On Fri, 2005-04-22 at 08:47 -0700, Bruce Allan wrote: > > Mount the volume without options and check /proc/mounts. Note that some > > options may differ based on negotiation with the server. > > > > Regards, > > --- > > Bruce Allan <bruce.allan@us.ibm.com> > > Software Engineer, Linux Technology Center > > IBM Corporation, Beaverton OR USA > > 503-578-4187 IBM Tie-line 775-4187 > > > > > > > > > > Bradford Arrington <brada@cadence.com> > > Sent by: nfs-admin@lists.sourceforge.net > > 04/21/2005 06:01 PM > > > > To > > nfs@lists.sourceforge.net > > cc > > > > Subject > > [NFS] default nfs mount options from linux to linux > > > > > > > > > > > > > > > > Does anyone know what or how to find the default mount option are when > > mounting an nfs volume? > > example > > mount linuxnfs:/export /mnt > > > > How do I find the rsize/wsize and any other options? (that are default) > > > > I am lead to believe that the nfs man page information is false for > > r/wsize 1k (no way) (udp default is correct though). If I set the > > r/wsize to 1k performance is very slow. In a "vanilla" default as above > > it has the fastest iozone benchmarks. > > > > Thanks, > > -Brad > > > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real users. > > Discover which products truly live up to the hype. Start reading now. > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > _______________________________________________ > > NFS maillist - NFS@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nfs > > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > NFS maillist - NFS@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nfs [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-04-22 17:11 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2005-04-22 1:01 default nfs mount options from linux to linux Bradford Arrington 2005-04-22 1:42 ` Dan Stromberg 2005-04-22 15:47 ` Bruce Allan 2005-04-22 16:36 ` Bradford Arrington 2005-04-22 17:10 ` Dan Stromberg
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.