前言
因?yàn)榻灰紫到y(tǒng)部的同事在測試研究Intel DPDK和Solarflare的低延遲性能靠粪,硬件是Dell R730挟憔,OS為RHEL7.2层亿,之前也對DPDK有所了解借這個(gè)機(jī)會(huì)再多接觸一些橡娄,前者是開源方案但需要強(qiáng)大的技術(shù)團(tuán)隊(duì)支撐寄纵,而后者卻是小眾但幾乎壟斷全球交易所的商業(yè)方案鳖敷,隨著PCIe SSD,分布式存儲(chǔ)程拭,萬兆交換機(jī)的崛起定踱,這個(gè)市場也變得越來越活躍了。
Solarflare make servers faster and more secure.
更新記錄
2016年11月25日 - 初稿
閱讀原文 - https://wsgzao.github.io/post/solarflare/
擴(kuò)展閱讀
Solarflare - https://support.solarflare.com/index.php/component/cognidox/?view=categories&id=1945
OpenOnload - http://www.openonload.org/download.html
參考文檔
Solarflare網(wǎng)卡安裝與測試
http://wenku.baidu.com/view/31652e7204a1b0717ed5dd13
Solarflare Quick SetupGuide_cn_1.3
http://wenku.baidu.com/view/3d2f7c7a30b765ce0508763231126edb6f1a7610
測試過程
install sfc
#yum install packages
yum install gcc make kernel-devel perl autoconf automake libtool pciutils net-tools -y
#解壓執(zhí)行安裝
cd openonload-201606/scripts
./onload_install
#reload onload
onload_tool reload
remove sfc
#unload onload
onload_tool unload
#remove sfc
modprobe –r sfc
#if found any sfc rpm, then remove them
rpm -qa | grep sfc
rpm -e *sfc*.rpm
#unintall onload
onload_uninstall
tuning
測試低延遲有條件建議先host直連再選擇交換機(jī)恃鞋,簡單的ping無法驗(yàn)證具體數(shù)據(jù)崖媚,可以采用sfnettest來評估
UDP - 1700ns
TCP - 1900ns
#collect sfreport
./sfreport.pl
#update firmware
sfupdate --write
dracut -f
#if reboot not work, you need cut power and startup after one minute
init 6
#tuned-adm
tuned-adm list
tuned-adm profile latency-performance
#sfnettest
onload -p latency ./sfnt-pingpong udp 10.0.21.10
onload -p latency ./sfnt-pingpong tcp 10.0.21.10