레이블이 InfiniBand인 게시물을 표시합니다. 모든 게시물 표시
레이블이 InfiniBand인 게시물을 표시합니다. 모든 게시물 표시

2016년 10월 26일 수요일

ifconfig shows wrong MAC for ib0


Infiniband hardware address can be incorrect! Please read BUGS section in ifconfig(8).
infiniband A0:00:03:00:FE:80:00:00:00:00:00:00:00:00:00:00:00:00:00:00  txqueuelen 1024  (InfiniBand)

# man ifconfig
BUGS
       Ifconfig  uses  the  ioctl  access method to get the full address information, which limits hardware addresses to 8 bytes.  Because Infiniband hardware address has 20
       bytes, only the first 8 bytes are displayed correctly.  Please use ip link command from iproute2 package to display link layer  informations  including  the  hardware address


즉, Infiniband hardware address는 20 bytes로 ifconfig 명령으로 표기할 수 없습니다. ifconfig 명령어가 아닌 iproute 패키지의 ip 명령어를 사용하거나 패치를 하면 된다.

※ 1Gb Ethernet의 Mac address는 6Bytes로 구성되어 있음
※ Infiniband는 20Bytes로 구성되어 있는데 8Bytes 이하 00으로 표시 됨!!

ex) ifconfig ib1
A0:00:03:00:FE:80:00:00:00:00:00:00:00:00:00:00:00:00:00:00

ex) ip a show ib1
a0:00:03:00:fe:80:00:00:00:00:00:00:00:02:c9:03:00:a2:fb:32

2016년 10월 18일 화요일

CONTROLLING IPOIB MODE(DATAGRAM MODE, CONNECTED MODE)

datagram mode
2KB IB MTU: 2044 bytes.(maximum)
4KB IB MTU: 4092 bytes.(maximum)

connected mode
65520 bytes.(maximum)




Controlling IPoIB mode
# cat /sys/class/net/ib0/mode
datagram

# cd /etc/sysconfig/network-scripts
# ./ifdown ib0
# echo connected > /sys/class/net/ib0/mode
# ./ifup ib0

# cat /sys/class/net/ib0/mode
connected

# vi /etc/infiniband/openib.conf
#SET_IPOIB_CM=auto
SET_IPOIB_CM=yes

IPOIB_MTU=65520

※ connected mode = no
# sed -i 's/SET_IPOIB_CM=auto/SET_IPOIB_CM=no/g' /etc/infiniband/openib.conf