Linux Performance

From NSMWiki
Revision as of 05:01, 5 November 2008 by Edward (Talk | contribs) (New page: '''DRAFT'''<br> Views/tips Are Welcome!<br> == /etc/sysctl.conf settings: == *increase TCP max buffer size setable using setsockopt() net.core.rmem_default = 8388608<br> net.core.wmem_...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

DRAFT
Views/tips Are Welcome!


/etc/sysctl.conf settings:

  • increase TCP max buffer size setable using setsockopt()

net.core.rmem_default = 8388608
net.core.wmem_default = 8388608
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216

  • Increase Linux auto tuning TCP buffer limits: min, default, and max number of bytes to use, set max to at least 4MB, or higher if you use very high BDP paths

net.ipv4.tcp_rmem = 1048576 4194304 16777216
net.ipv4.tcp_wmem = 1048576 4194304 16777216

NIC Optimization

  • Find the maximum RX for your NIC, and then set it to that:

ethtool -g ethX

ethtool -G ethX rx <your max RX>
END DRAFT