大网数据广告活动
服务器运维问答

Measuring 40Gbe performance

· 52CE 我爱测

I've connected two hosts via a 40Gbe fibre link and would like to determine a baseline for data transfer between them. I'm seeing relatively low speeds (~620MB/s). It seems that the signalling rate is lower and may in fact be 5Gb…

问题原文

原帖链接 · 0_0 · CC BY-SA 3.0

I've connected two hosts via a 40Gbe fibre link and would like to determine a baseline for data transfer between them. I'm seeing relatively low speeds (~620MB/s). It seems that the signalling rate is lower and may in fact be 5Gb/s (which would agree with what I'm seeing), but I know very little about fibre (and am on shaky ground).

My setup is as follows:

An extract of the output of ethtool on the 40Gbe interfaces, on each node, is

Speed: 40000Mb/s
Duplex: Full
Port: FIBRE

Running a UDP receiver on one host (10.0.0.2)

nc -vv -u -l 2222 > /dev/null

and a sender on the other

time dd if=/dev/zero count=10000 bs=1500k | nc -u 10.0.0.2 2222

results in speeds around the 650MB/s mark. Different block sizes make small differences.

If someone could point out if my approach or thinking is wrong, I'd be most grateful (I'm very green in this area and wiki pages and manufacturer docs have been a bit opaque for me).

已采纳解答

原帖链接 · James O'Gorman · CC BY-SA 3.0

You would be better off using a tool like iperf instead of dd | nc.

That way you can test both TCP and UDP and get a proper throughput report, as well as controlling the rate, packet size, etc.

People regularly use this to measure 10Gbe and 40Gbe performance.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-04-23)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。