• Attention, TrueNAS Community Members. General Help has now been set to read-only mode. To make sure you can easily find what you're looking for, we've relocated all relevant categories under their respective version. This change will simplify searching for information and minimize any confusion about where to post.
Register for the iXsystems Community to get an ad-free experience

LAN performance

Western Digital Drives - The Preferred Drives of FreeNAS and TrueNAS CORE
Status
Not open for further replies.
J

jpaetzel

Guest
FreeBSD is tuned to handle WAN connections, with decent LAN performance. If you know you're going to be doing exclusively low latency / high bandwidth connections, such as you see with a typical NAS device, you can make a few changes that will sacrifice WAN performance and increase LAN performance.

One change you can make that will not harm LAN performance, and has a good chance of increasing it, is to disable nagle's algorithm.

In FreeNAS this can be done by adding a sysctl, under the system menu.

The variable is net.inet.tcp.delayed_ack and the value is 0.
 

yaneurabeya

Dabbler
Joined
Sep 5, 2012
Messages
26
FreeBSD is tuned to handle WAN connections, with decent LAN performance. If you know you're going to be doing exclusively low latency / high bandwidth connections, such as you see with a typical NAS device, you can make a few changes that will sacrifice WAN performance and increase LAN performance.

One change you can make that will not harm LAN performance, and has a good chance of increasing it, is to disable nagle's algorithm.

In FreeNAS this can be done by adding a sysctl, under the system menu.

The variable is net.inet.tcp.delayed_ack and the value is 0.

[Despite the fact that it's largely obsolete] tuning(7) says otherwise about net.inet.tcp.delayed_ack. Setting the global sysctl as opposed to the SMB socket option might not be a wise idea, and there are other options that can be used to tune samba (see the "Performance Tuning" chapter in the Samba manual).
 
Status
Not open for further replies.
Top