Re: nfs client speed lower than expected.

2011-11-03 Thread Vincent Hoffman
I'll give it a try when i get a moment, These servers are all on gigabit
LAN (sadly 1500 mtu until I can get the network guy to schedule an
outage to reboot the switches and enable jumbo frames,) same subnet so i
would expect UDP to have similar or better performance.

Vince

On 02/11/2011 23:53, Michael Sierchio wrote:
> Mount via tcp.
>
> On Wed, Nov 2, 2011 at 4:51 PM, Vincent Hoffman  wrote:
>> Hi all,
>>What kind of speed should I be expecting over an NFS mount from
>> a linux box using a gig interface (igb)? I'm seeing linux clients
>> getting approx 2 or 3 times the throughput rsyncing files from a linux
>> nfs server that i get from a 8-stable FreeBSD client.
>> representative results
>> 7.26MB/s - Freebsd client
>> 21.10MB/s liunx client
>> I've tried a variety of files to try and take caching out of the
>> equation, I've tweaked a few sysctls after much googling
>>
>> kern.ipc.maxsockbuf=400
>> net.inet.tcp.sendbuf_max=16777216
>> net.inet.tcp.recvbuf_max=16777216
>> net.inet.tcp.sendbuf_inc=16384
>> net.inet.tcp.recvbuf_inc=524288
>> net.inet.udp.recvspace=65535
>> net.local.stream.recvspace=65535
>> net.local.stream.sendspace=65535
>>
>> with no obvious improvement.
>> freebsd mount options
>> ro,noatime,noexec,nosuid,udp,nfsv3,rsize=1024,wsize=1024,bg,hard,intr,timeout=4,retrans=4
>> linux mount options
>> _netdev,ro,noatime,nodev,noexec,nosuid,proto=udp,vers=3,rsize=1k,wsize=1k,bg,hard,intr,timeo=4,retrans=4
>>
>> I have seen that using the linux server as an nfs client to write to the
>> NFS server on the freebsd box gives similar performance to a linux
>> client pulling from the linux server so I'm guessing its something to do
>> with the freebsd nfs client?
>>
>> Any suggestions/clues welcome.
>>
>> Thanks,
>> Vince
>> ___
>> freebsd-questions@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
>>

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: nfs client speed lower than expected.

2011-11-03 Thread Vincent Hoffman
iperf
[ ID] Interval   Transfer Bandwidth
[  3]  0.0-60.2 sec  6.22 GBytes   887 Mbits/sec

transfers in via ssh are nice and nifty too.


Vince

On 02/11/2011 23:55, Gary Gatten wrote:
> Is the interface really at 1Gb?  Have you tested with iperf, ftp, or anything 
> other than nfs?
>
> -Original Message-
> From: owner-freebsd-questi...@freebsd.org 
> [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Vincent Hoffman
> Sent: Wednesday, November 02, 2011 6:52 PM
> To: FreeBSD-Questions@freebsd.org
> Subject: nfs client speed lower than expected.
>
> Hi all,
> What kind of speed should I be expecting over an NFS mount from
> a linux box using a gig interface (igb)? I'm seeing linux clients
> getting approx 2 or 3 times the throughput rsyncing files from a linux
> nfs server that i get from a 8-stable FreeBSD client.
> representative results
> 7.26MB/s - Freebsd client
> 21.10MB/s liunx client
> I've tried a variety of files to try and take caching out of the
> equation, I've tweaked a few sysctls after much googling
>
> kern.ipc.maxsockbuf=400
> net.inet.tcp.sendbuf_max=16777216
> net.inet.tcp.recvbuf_max=16777216
> net.inet.tcp.sendbuf_inc=16384
> net.inet.tcp.recvbuf_inc=524288
> net.inet.udp.recvspace=65535
> net.local.stream.recvspace=65535
> net.local.stream.sendspace=65535
>
> with no obvious improvement.
> freebsd mount options
> ro,noatime,noexec,nosuid,udp,nfsv3,rsize=1024,wsize=1024,bg,hard,intr,timeout=4,retrans=4
> linux mount options
> _netdev,ro,noatime,nodev,noexec,nosuid,proto=udp,vers=3,rsize=1k,wsize=1k,bg,hard,intr,timeo=4,retrans=4
>
> I have seen that using the linux server as an nfs client to write to the
> NFS server on the freebsd box gives similar performance to a linux
> client pulling from the linux server so I'm guessing its something to do
> with the freebsd nfs client?
>
> Any suggestions/clues welcome.
>
> Thanks,
> Vince
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
>
>
>
>
>
> 
> 
> 
> "This email is intended to be reviewed by only the intended recipient
>  and may contain information that is privileged and/or confidential.
>  If you are not the intended recipient, you are hereby notified that
>  any review, use, dissemination, disclosure or copying of this email
>  and its attachments, if any, is strictly prohibited.  If you have
>  received this email in error, please immediately notify the sender by
>  return email and delete this email from your system."
> 
>

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


RE: nfs client speed lower than expected.

2011-11-02 Thread Gary Gatten
Is the interface really at 1Gb?  Have you tested with iperf, ftp, or anything 
other than nfs?

-Original Message-
From: owner-freebsd-questi...@freebsd.org 
[mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Vincent Hoffman
Sent: Wednesday, November 02, 2011 6:52 PM
To: FreeBSD-Questions@freebsd.org
Subject: nfs client speed lower than expected.

Hi all,
What kind of speed should I be expecting over an NFS mount from
a linux box using a gig interface (igb)? I'm seeing linux clients
getting approx 2 or 3 times the throughput rsyncing files from a linux
nfs server that i get from a 8-stable FreeBSD client.
representative results
7.26MB/s - Freebsd client
21.10MB/s liunx client
I've tried a variety of files to try and take caching out of the
equation, I've tweaked a few sysctls after much googling

kern.ipc.maxsockbuf=400
net.inet.tcp.sendbuf_max=16777216
net.inet.tcp.recvbuf_max=16777216
net.inet.tcp.sendbuf_inc=16384
net.inet.tcp.recvbuf_inc=524288
net.inet.udp.recvspace=65535
net.local.stream.recvspace=65535
net.local.stream.sendspace=65535

with no obvious improvement.
freebsd mount options
ro,noatime,noexec,nosuid,udp,nfsv3,rsize=1024,wsize=1024,bg,hard,intr,timeout=4,retrans=4
linux mount options
_netdev,ro,noatime,nodev,noexec,nosuid,proto=udp,vers=3,rsize=1k,wsize=1k,bg,hard,intr,timeo=4,retrans=4

I have seen that using the linux server as an nfs client to write to the
NFS server on the freebsd box gives similar performance to a linux
client pulling from the linux server so I'm guessing its something to do
with the freebsd nfs client?

Any suggestions/clues welcome.

Thanks,
Vince
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"








"This email is intended to be reviewed by only the intended recipient
 and may contain information that is privileged and/or confidential.
 If you are not the intended recipient, you are hereby notified that
 any review, use, dissemination, disclosure or copying of this email
 and its attachments, if any, is strictly prohibited.  If you have
 received this email in error, please immediately notify the sender by
 return email and delete this email from your system."


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: nfs client speed lower than expected.

2011-11-02 Thread Michael Sierchio
Mount via tcp.

On Wed, Nov 2, 2011 at 4:51 PM, Vincent Hoffman  wrote:
> Hi all,
>        What kind of speed should I be expecting over an NFS mount from
> a linux box using a gig interface (igb)? I'm seeing linux clients
> getting approx 2 or 3 times the throughput rsyncing files from a linux
> nfs server that i get from a 8-stable FreeBSD client.
> representative results
> 7.26MB/s - Freebsd client
> 21.10MB/s liunx client
> I've tried a variety of files to try and take caching out of the
> equation, I've tweaked a few sysctls after much googling
>
> kern.ipc.maxsockbuf=400
> net.inet.tcp.sendbuf_max=16777216
> net.inet.tcp.recvbuf_max=16777216
> net.inet.tcp.sendbuf_inc=16384
> net.inet.tcp.recvbuf_inc=524288
> net.inet.udp.recvspace=65535
> net.local.stream.recvspace=65535
> net.local.stream.sendspace=65535
>
> with no obvious improvement.
> freebsd mount options
> ro,noatime,noexec,nosuid,udp,nfsv3,rsize=1024,wsize=1024,bg,hard,intr,timeout=4,retrans=4
> linux mount options
> _netdev,ro,noatime,nodev,noexec,nosuid,proto=udp,vers=3,rsize=1k,wsize=1k,bg,hard,intr,timeo=4,retrans=4
>
> I have seen that using the linux server as an nfs client to write to the
> NFS server on the freebsd box gives similar performance to a linux
> client pulling from the linux server so I'm guessing its something to do
> with the freebsd nfs client?
>
> Any suggestions/clues welcome.
>
> Thanks,
> Vince
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


nfs client speed lower than expected.

2011-11-02 Thread Vincent Hoffman
Hi all,
What kind of speed should I be expecting over an NFS mount from
a linux box using a gig interface (igb)? I'm seeing linux clients
getting approx 2 or 3 times the throughput rsyncing files from a linux
nfs server that i get from a 8-stable FreeBSD client.
representative results
7.26MB/s - Freebsd client
21.10MB/s liunx client
I've tried a variety of files to try and take caching out of the
equation, I've tweaked a few sysctls after much googling

kern.ipc.maxsockbuf=400
net.inet.tcp.sendbuf_max=16777216
net.inet.tcp.recvbuf_max=16777216
net.inet.tcp.sendbuf_inc=16384
net.inet.tcp.recvbuf_inc=524288
net.inet.udp.recvspace=65535
net.local.stream.recvspace=65535
net.local.stream.sendspace=65535

with no obvious improvement.
freebsd mount options
ro,noatime,noexec,nosuid,udp,nfsv3,rsize=1024,wsize=1024,bg,hard,intr,timeout=4,retrans=4
linux mount options
_netdev,ro,noatime,nodev,noexec,nosuid,proto=udp,vers=3,rsize=1k,wsize=1k,bg,hard,intr,timeo=4,retrans=4

I have seen that using the linux server as an nfs client to write to the
NFS server on the freebsd box gives similar performance to a linux
client pulling from the linux server so I'm guessing its something to do
with the freebsd nfs client?

Any suggestions/clues welcome.

Thanks,
Vince
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"