首页 > Linux系统上, "lo(本地还回)"网卡的性能取决于什么?

Linux系统上, "lo(本地还回)"网卡的性能取决于什么?

我在笔记本上, Ubuntu系统, cpu(酷睿i5)大概占用50%, 用iperf测了几次, 速度为 38~40Gbits/sec

xxx@xxx:~$ iperf -c 127.0.0.1
------------------------------------------------------------
Client connecting to 127.0.0.1, TCP port 5001
TCP window size: 2.50 MByte (default)
------------------------------------------------------------
[  3] local 127.0.0.1 port 41856 connected with 127.0.0.1 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  47.2 GBytes  40.6 Gbits/sec

如果是用localhost同时做主机和客户端的话,iperf是不走网卡的,而是直接内存交换,所以这里的速度反映的是你的内存存取速度。在这里,你用10秒钟时间共传输了47.2G字节,所以速度是4.72GB/秒,这就是你的内存速度。

【热门文章】
【热门文章】