Menu

Host Tuning

This section covers how to tune hosts connected at 1 Gbps or higher for faster wide-area network (WAN) transfers. Proper host tuning can improve throughput by up to 100x. Buffering resources will impact TCP performance.  On long, fast paths, default maximum buffer sizes can be insufficient to support optimum performance. Although modern operating systems auto-tune buffer sizes, manual tuning parameters, such as by increasing buffer allocations, will still often improve performance. A good rule of thumb is that the buffer should be at least bandwidth × round-trip time (the bandwidth-delay product, or BDP).

One caution: many of these settings can hurt performance on slower connections, such as home users at 100 Mbps or less or laptops on Wi-Fi. Only apply them to hosts that actually need them.

Where to start:

  • TCP Background: Read this first if you want to understand why tuning matters. It explains buffer sizing, autotuning, and congestion control algorithms like CUBIC and BBR.
  • Linux Tuning: This page has copy-and-paste sysctl settings for 10G, 40G, and 100G hosts, plus advice on fair queueing, rate limiting, and jumbo frames. 
  • Containers: This explains how to avoid NAT overhead in Docker, Kubernetes, and Apptainer, typically by using host, macvlan, or ipvlan networking. Giving containers access to the host network can weaken network isolation, so understand the tradeoffs first.
  • Mac OSX Tuning: This covers increasing the TCP window scale factor and autotuning buffer maximums on wired, high-speed Macs.
  • FreeBSD Tuning: This page is a useful starting point for 10G+ hosts, but verify settings against your release.
  • Windows Tuning: This covers TCP settings via PowerShell. We don't have Windows expertise in house, so this page relies on community updates, and corrections are welcome.

TCP Background

Proper host tuning can lead to up to 100x performance increases. Here are the reasons why.  Read More

Linux Tuning

March 6, 2025

This page contains a quick reference guide for Linux tuning.  Read More

Mac OSX Tuning

January 14, 2025

Tuning settings for Mac OSX.  Read More

FreeBSD Tuning

January 14, 2025

Tuning settings for FreeBSD.  Read More

MS Windows

January 14, 2025

MS Windows Tuning Note: We use Linux for our high-performance hosts, and don't have any MS Windows expertise in house. Please help us keep this page up to date by sending us updates. Thanks! Windows 10/11 TCP Stack Modifications The PowerShell utility is the primary mechanism for modifying TCP stack settings in modern versions of Windows. Detailed documentation can be found on the official…  Read More

Containers

January 14, 2025

Container network options Note: The following recommendations are presented for informational purposes only. Running containers with access to a host system's network namespace may break your local network isolation policy and/or expose your system to inadvertent misconfiguration.  Docker The Docker default "bridge" network should be avoided for performance testing purposes to avoid network…  Read More