94f49a163a
It may not be obvious, but due to the way tinc operates (single-threaded control loop with no intermediate packet buffer), UDP send and receive buffers can have a massive impact on performance. It is therefore of paramount importance that the buffers be large enough to prevent packet drops that could occur while tinc is processing a packet. Leaving that value to the OS default could be reasonable if we weren't relying on it so much. Instead, this makes performance somewhat unpredictable. In practice, the worst case scenario occurs on Windows, where Microsoft had the brillant idea of making the buffers 8K in size by default, no matter what the link speed is. Considering that 8K flies past in a matter of microseconds on >1G links, this is extremely inappropriate. On these systems, changing the buffer size to 1M results in *obscene* raw throughput improvements; I have observed a 10X jump from 40 Mbit/s to 400 Mbit/s on my system. In this commit, we stop trusting the OS to get this right and we use a fixed 1M value instead, which should be enough for <=1G links. |
||
---|---|---|
.. | ||
sample-config | ||
CONNECTIVITY | ||
Makefile.am | ||
NETWORKING | ||
PROTOCOL | ||
SECURITY2 | ||
SPTPS | ||
tinc-gui.8.in | ||
tinc.8.in | ||
tinc.conf.5.in | ||
tinc.texi | ||
tincd.8.in | ||
tincinclude.texi.in |