mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-07-28 03:01:54 +08:00
27 lines
923 B
Plaintext
27 lines
923 B
Plaintext
# Glorytun-specific optimizations
|
|
# Note: These settings complement the system-wide sysctl parameters
|
|
|
|
# Buffer size optimization for glorytun tunnels
|
|
# Increase only if not already set in system configuration
|
|
net.core.rmem_max = 16777216
|
|
net.core.wmem_max = 16777216
|
|
net.core.optmem_max = 16777216
|
|
|
|
# Enable BBR congestion control for better tunnel performance
|
|
net.core.default_qdisc = fq
|
|
|
|
# RPS/RFS settings for tunnel interfaces
|
|
# These are critical for multicore performance with glorytun
|
|
net.core.rps_sock_flow_entries = 32768
|
|
|
|
# Network device tuning for tunnel interfaces
|
|
net.core.netdev_max_backlog = 10000
|
|
net.core.netdev_budget = 600
|
|
net.core.netdev_budget_usecs = 10000
|
|
|
|
# Lower TCP timeout for faster recovery of tunnel connections
|
|
net.ipv4.tcp_keepalive_intvl = 10
|
|
net.ipv4.tcp_keepalive_probes = 6
|
|
|
|
# Disable slow start after idle for more consistent tunnel performance
|
|
net.ipv4.tcp_slow_start_after_idle = 0 |