由於 TCP timestamps 會使得封包多 12 bytes,關掉後可以在 LAN 裡面擠出頻寬,是個小孩子不要亂學的方法:「Save Some Bandwidth By Turning Off TCP Timestamps」。
文章裡是在 10Gbps 網路上測試,看測出來的圖片也只是一點點 (不到 1%),但仍然是有提昇:
Results show that it's reasonable to turn off timestamps on 10GE interfaces, but keep in mind that it should be performed only in low latency networks.
沒必要就不要亂動 :o
想多擠出一些 throughput 的話也可以嘗試 UDT: http://udt.sourceforge.net/
x before
+ after
+----------------------------------------------------------------------+
| x x + |
| x x + + |
| x x + + |
|x x x + + + + +|
| |_M_A___| |_______AM_____| |
+----------------------------------------------------------------------+
N Min Max Median Avg Stddev
x 10 9.38 9.4 9.39 9.393 0.0067494856
+ 10 9.45 9.49 9.47 9.467 0.011595018
Difference at 95.0% confidence
0.074 +/- 0.00891379
0.787821% +/- 0.0948982%
(Student's t, pooled s = 0.00948683)