Net autotuner

If you wish to dynamically adjust the TCP stack, the congestion control algorithm, buffers, and queues based on real-time network metrics such as latency, packet loss, jitter, throughput, kernel drops, and out-of-order segments, this system is designed to optimize FreeBSD networking performance under diverse and changing conditions. Try FBSD-Net-Autotuner
 
New release - v1.5 — 2026-01-09

- Automatic selection of `TARGET_HOST` from public resolvers based on lowest RTT.
- Robust NIC speed detection with fallback to 1000 Mbps.
- Mbuf cluster and UDP buffer tuning based on NIC speed (1G, 10G, 40G).
- ISR tuning via `/boot/loader.conf` with comments and reboot requirement.
- Automatic comments with timestamp in `/etc/sysctl.conf` and `/boot/loader.conf` for traceability.

Try FBSD-Net-Autotuner
 
Thanks, but i don't need automatic. I need output :
- Put this is sysctl.conf
- Put this in rc.conf
- Put this in resolv.conf
- Etc ...
 
New release - v1.6 — 2026-01-11

- Added monitoring of FIN-WAIT-1 sockets as a diagnostic metric (logged, no dynamic tuning).
- Integrated dynamic tuning for FIN-WAIT-2 sockets:
— Uses `net.inet.tcp.fast_finwait2_recycle`.
— Enabled only if FIN-WAIT-2 exceeds 5% of ESTABLISHED connections.
— Restores default when ratio ≤5%.
- Idempotent logging: changes are logged only when state transitions occur.
- Extended log output to include `finwait1_conns`, `finwait2_conns`, and `est_conns`.

Try FBSD-Net-Autotuner
 
New release - v1.7 — 2026-01-14

- Introduced adaptive congestion control (CC) selection:
— Chooses CC algorithm dynamically (Vegas, HTCP, DCTCP, CDG, CHD/HD, Cubic) based on RTT, loss, jitter, and throughput.
- Introduced adaptive TCP stack selection:
— Chooses stack dynamically (BBR, RACK, FreeBSD) based on throughput, RTT, loss, and jitter.

Try FBSD-Net-Autotuner
 
New release - v1.8 — 2026-01-16

- Unified latency and jitter measurement:
— Now extracts avg RTT, stddev jitter, peak jitter (max−min), and packet loss in a single call to ping.
— Liminates redundant double ping calls, reducing system load and ensuring consistent metrics from the same sample set.
- Dual jitter metrics:
— Added stddev jitter (statistical variability).
— Added peak jitter (max RTT − min RTT) for visibility into extreme spikes.
— Both values are logged for richer diagnostics.
- Extended logging:
— Log entries now include jitter and jitter_peak alongside RTT, loss, throughput, and other metrics.
— Provides clearer insight into both average variability and worst‑case latency fluctuations.
- Adaptive tuning logic updated to use stddev jitter as the primary jitter metric for decisions.
- Code efficiency: reduced duplicate calls to ping, improving performance and accuracy.
- Corrected parsing of ping output to reliably capture min/avg/max/stddev values.
- Fixed issue where RTT and jitter previously reported identical values due to incorrect field extraction.
- Improved resilience against empty or malformed ping output lines.

Try FBSD-Net-Autotuner
 
Back
Top