hack のためのネタ帳, etc,,,


少なくとも linux-hwe-generic-trusty で linux-image-4.4.0-101-generic 入れてる状態だと標準で入ってる ixgbe ドライバーで勝手に動いた。

dmesg は以下の通り。
$ dmesg | grep ixgbe
[    0.925481] ixgbe: Intel(R) 10 Gigabit PCI Express Network Driver - version 4.2.1-k
[    0.925482] ixgbe: Copyright (c) 1999-2015 Intel Corporation.
[    1.169798] ixgbe 0000:02:00.0: Multiqueue Enabled: Rx Queue count = 8, Tx Queue count = 8
[    1.205983] ixgbe 0000:02:00.0: PCI Express bandwidth of 32GT/s available
[    1.205985] ixgbe 0000:02:00.0: (Speed:5.0GT/s, Width: x8, Encoding Loss:20%)
[    1.302280] ixgbe 0000:02:00.0: MAC: 3, PHY: 0, PBA No: G45270-003
[    1.302284] ixgbe 0000:02:00.0: a0:36:9f:3f:0a:cc
[    1.449716] ixgbe 0000:02:00.0: Intel(R) 10 Gigabit Network Connection
[    1.693615] ixgbe 0000:02:00.1: Multiqueue Enabled: Rx Queue count = 8, Tx Queue count = 8
[    1.729775] ixgbe 0000:02:00.1: PCI Express bandwidth of 32GT/s available
[    1.729780] ixgbe 0000:02:00.1: (Speed:5.0GT/s, Width: x8, Encoding Loss:20%)
[    1.826177] ixgbe 0000:02:00.1: MAC: 3, PHY: 0, PBA No: G45270-003
[    1.826182] ixgbe 0000:02:00.1: a0:36:9f:3f:0a:ce
[    1.973925] ixgbe 0000:02:00.1: Intel(R) 10 Gigabit Network Connection
[    1.974608] ixgbe 0000:02:00.0 enp2s0f0: renamed from eth1
[    1.984693] ixgbe 0000:02:00.1 enp2s0f1: renamed from eth2
[   36.365024] ixgbe 0000:02:00.1: registered PHC device on enp2s0f1
[   36.539576] ixgbe 0000:02:00.0: registered PHC device on enp2s0f0
[ 2334.073872] ixgbe 0000:02:00.1 enp2s0f1: NIC Link is Up 10 Gbps, Flow Control: None

lspci の表示は以下の通り。
$ lspci -s 02:00 -kvnnqq
02:00.0 Ethernet controller [0200]: Intel Corporation Ethernet Controller 10-Gigabit X540-AT2 [8086:1528] (rev 01)
	Subsystem: Intel Corporation Ethernet Converged Network Adapter X540-T2 [8086:0001]
	Flags: bus master, fast devsel, latency 0, IRQ 18
	Memory at c2400000 (64-bit, prefetchable) [size=2M]
	Memory at c2604000 (64-bit, prefetchable) [size=16K]
	Expansion ROM at ca900000 [disabled] [size=512K]
	Capabilities: <access denied>
	Kernel driver in use: ixgbe
	Kernel modules: ixgbe

02:00.1 Ethernet controller [0200]: Intel Corporation Ethernet Controller 10-Gigabit X540-AT2 [8086:1528] (rev 01)
	Subsystem: Intel Corporation Ethernet Converged Network Adapter X540-T2 [8086:0001]
	Flags: bus master, fast devsel, latency 0, IRQ 17
	Memory at c2200000 (64-bit, prefetchable) [size=2M]
	Memory at c2600000 (64-bit, prefetchable) [size=16K]
	Expansion ROM at ca980000 [disabled] [size=512K]
	Capabilities: <access denied>
	Kernel driver in use: ixgbe
	Kernel modules: ixgbe

ethtools の表示
$ sudo ethtool enp2s0f1
Settings for enp2s0f1:
	Supported ports: [ TP ]
	Supported link modes:   1000baseT/Full 
	                        10000baseT/Full 
	Supported pause frame use: No
	Supports auto-negotiation: Yes
	Advertised link modes:  100baseT/Full 
	                        1000baseT/Full 
	                        10000baseT/Full 
	Advertised pause frame use: No
	Advertised auto-negotiation: Yes
	Speed: 10000Mb/s
	Duplex: Full
	Port: Twisted Pair
	PHYAD: 0
	Transceiver: external
	Auto-negotiation: on
	MDI-X: Unknown
	Supports Wake-on: d
	Wake-on: d
	Current message level: 0x00000007 (7)
			       drv probe link
	Link detected: yes

因みに、pci-e のコネクタから遠い方が 02:00.0 で、近い方が 02:00.1 だった。

同じく Utuntu 16.04.03LTS に玄人志向 GbEX-PCIE 挿したマシンに対して netperf かけてみたところ以下のような値が出た。
$ netperf -H 192.168.1.30 -l 15
MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.1.30 () port 0 AF_INET : demo
Recv   Send    Send                          
Socket Socket  Message  Elapsed              
Size   Size    Size     Time     Throughput  
bytes  bytes   bytes    secs.    10^6bits/sec  

 87380  16384  16384    15.00    9375.39   
反対向き 10Gbps 越えという不思議な結果が出てたけど、こっちは普通っぽい。

コメントをかく


「http://」を含む投稿は禁止されています。

利用規約をご確認のうえご記入下さい

Wiki内検索

フリーエリア

管理人/副管理人のみ編集できます