Changeset View
Changeset View
Standalone View
Standalone View
head/share/man/man7/tuning.7
Show All 18 Lines | |||||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd October 30, 2017 | .Dd April 16, 2020 | ||||
.Dt TUNING 7 | .Dt TUNING 7 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm tuning | .Nm tuning | ||||
.Nd performance tuning under FreeBSD | .Nd performance tuning under FreeBSD | ||||
.Sh SYSTEM SETUP - DISKLABEL, NEWFS, TUNEFS, SWAP | .Sh SYSTEM SETUP - DISKLABEL, NEWFS, TUNEFS, SWAP | ||||
The swap partition should typically be approximately 2x the size of | The swap partition should typically be approximately 2x the size of | ||||
main memory | main memory | ||||
▲ Show 20 Lines • Show All 394 Lines • ▼ Show 20 Lines | |||||
the acknowledgement may be sent in its own packet, before the remote service | the acknowledgement may be sent in its own packet, before the remote service | ||||
has a chance to echo the data it just received. | has a chance to echo the data it just received. | ||||
This same concept also | This same concept also | ||||
applies to any interactive protocol (e.g.,\& SMTP, WWW, POP3), and can cut the | applies to any interactive protocol (e.g.,\& SMTP, WWW, POP3), and can cut the | ||||
number of tiny packets flowing across the network in half. | number of tiny packets flowing across the network in half. | ||||
The | The | ||||
.Fx | .Fx | ||||
delayed ACK implementation also follows the TCP protocol rule that | delayed ACK implementation also follows the TCP protocol rule that | ||||
at least every other packet be acknowledged even if the standard 100ms | at least every other packet be acknowledged even if the standard 40ms | ||||
timeout has not yet passed. | timeout has not yet passed. | ||||
Normally the worst a delayed ACK can do is | Normally the worst a delayed ACK can do is | ||||
slightly delay the teardown of a connection, or slightly delay the ramp-up | slightly delay the teardown of a connection, or slightly delay the ramp-up | ||||
of a slow-start TCP connection. | of a slow-start TCP connection. | ||||
While we are not sure we believe that | While we are not sure we believe that | ||||
the several FAQs related to packages such as SAMBA and SQUID which advise | the several FAQs related to packages such as SAMBA and SQUID which advise | ||||
turning off delayed acks may be referring to the slow-start issue. | turning off delayed acks may be referring to the slow-start issue. | ||||
.Pp | .Pp | ||||
▲ Show 20 Lines • Show All 287 Lines • Show Last 20 Lines |