FreeBSD Network


FreeBSD Networkの設定方法

 operability confirmed card - 動作確認カード (10GbE)

あんまり普通は使ってないであろうカードの動作確認

Card OS Version driver etc
Qlogic QLE8240 FreeBSD 10.0 BATA3 qlxgb (QLE82xx Driver) working ok
Qlogic QLE8242 FreeBSD 10.0 BATA3 qlxgb (QLE82xx Driver) no test
Qlogic QLE8152 FreeBSD 10.0 BATA3 qlxge (QLE81xx Driver) no test
Solarflare SFN5122F FreeBSD 10.0 BATA3 sfxge no test
ConnectX MHRH19-XTC FreeBSD 10.0 BATA3 mlx4_core + mlx4_en no test
ConnectX MHQH29-XTC FreeBSD 10.0 BATA3 mlx4_core + mlx4_en no test
ConnectX-2 MHPA19-XTR FreeBSD 10.0 BATA3 mlx4_core + mlx4_en no test
ConnectX-2 MHQH29B-XTR FreeBSD 10.0 BATA3 mlx4_core + mlx4_en no test
ConnectX-2 MHZH29-XTC FreeBSD 10.0 BATA3 mlx4_core + mlx4_en no test
ConnectX-3 MCX353A-FCBT FreeBSD 10.0 BATA3 mlx4_core + mlx4_en no test

 rc.confでの設定



 手動での設定

ip address 削除

ifconfig <interface name> down delete

 Routing 設定



 TCP/IP設定チューニング

QDRでのIPoIB接続でパフォーマンスが出るように、/etc/sysctl.confへ以下を追加

kern.ipc.maxsockbuf=157286400
net.local.stream.recvspace=262144
net.local.stream.sendspace=262144
net.inet.tcp.rfc1323=1
net.inet.tcp.rfc3390=1
net.inet.tcp.delayed_ack=0
net.inet.tcp.sendspace=262144
net.inet.tcp.recvspace=262144
net.inet.udp.recvspace=262144
net.inet.udp.maxdgram=57344
net.inet.tcp.sendbuf_max=157286400
net.inet.tcp.recvbuf_max=157286400
net.inet.tcp.sendbuf_inc=262144
net.inet.tcp.recvbuf_inc=262144
net.inet.tcp.cc.algorithm=htcp
net.inet.tcp.hostcache.expire=3900
net.inet.tcp.mssdflt=1460
net.inet.tcp.nolocaltimewait=1
net.inet.tcp.experimental.initcwnd10=1
net.inet.tcp.syncache.rexmtlimit=1

参考