问题原文
原帖链接 · 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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
