AWS EC2 향상된 네트워킹 기능 사용
CentOS6.5 on Ec2 에서의 향상된 네트워킹 기능 사용에 대한 포스팅입니다.
SR-IOV 는 가상화 성능향상을 위해 사용하는 옵션입니다. 자세한건 꼬알라님 블로그를 참조하시면 되겠습니다.
http://blogs.technet.com/b/koalra/archive/2012/08/07/windows-server-2012-hyper-v-io-sr-iov.aspx
EC2에도 적용하면 성능향상이 있다고 하는데 저는 잘 확인이 안되는것 같습니다.
여튼간 마켓에서 배포하는 Centos 에는 SR-IOV 드라이버가 깔려있습니다. 단지 활성화가 안되어 있을 뿐입니다.
확인 방법은 modinfo ixgbevf 입력하면 아래와같이 ixgbevf 드라이버가 나옵니다.
[root@TEST ~]# modinfo ixgbevf
filename: /lib/modules/2.6.32-431.29.2.el6.x86_64/kernel/drivers/net/ixgbevf/ixgbevf.ko
version: 2.7.12-k
license: GPL
description: Intel(R) 82599 Virtual Function Driver
author: Intel Corporation, <linux.nics@intel.com>
srcversion: E75203124BB105EC871944F
alias: pci:v00008086d00001515sv*sd*bc*sc*i*
alias: pci:v00008086d000010EDsv*sd*bc*sc*i*
depends:
vermagic: 2.6.32-431.29.2.el6.x86_64 SMP mod_unload modversions
parm: debug:Debug level (0=none,...,16=all) (int)
활성화 여부는 ethtool -i eth1 로 확인합니다. (eth번호는 확인할 이더넷 번호로.. 0,1,2,3~)
그러면 활성 드라이버에 vif 라고 표기 됩니다. (xvif 가되어야 함)
[root@TEST ~]# ethtool -i eth1
driver: vif
version:
firmware-version:
bus-info: vif-1
supports-statistics: no
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no
서버를 종료한 이후 aws cli 명령줄로 이동하여 SR-IOV 활성화 시킵니다.
aws ec2 modify-instance-attribute --instance-id i-xxxxxxxx --sriov-net-support simple
이후 서버 재시작 후에 아래 내용을 확인하여 ixgbevf 가 활성화 되어 있는지 확인합니다.
[root@TEST ~]# ethtool -i eth1
driver: ixgbevf
version: 2.12.1-k
firmware-version:
bus-info: 0000:00:04.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no