Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Instalação

Instalar OS: Ubuntu 16.04 LTS

 

Configuração

Instalar pacotes

sudo apt install -y dpdk dpdk-dev openvswitch-switch-dpdk

 

Configurar a inicialização do openvswitch-dpdk

sudo nano -w /etc/default/openvswitch-switch


Configurar quantidade de paginas e memoria

Edite a linha com a variável "DPDK_OPTS" e adicione:

DPDK_OPTS='--dpdk -c 0xFF -n 4 -m 1024'

-c : bitmask de cores a ser utilizado neste caso 0xFF(11111111) = 8 cores
1 = cores habilitados. 
0 = cores desabilitados.

sudo update-alternatives --set ovs-vswitchd /usr/lib/openvswitch-switch-dpdk/ovs-vswitchd-dpdk

 

Configurar as interfaces de redes que utilizarão o drive dpdk

sudo dpdk_nic_bind --bind=igb_uio <linux_interface_name>

linux_interface_name = ethX, emX, etc ...

 

Configura o openvswitch com as bridge e interface:

Bridge

sudo ovs-vsctl add-br br-dpdk0 -- set bridge br-dpdk0 datapath_type=netdev protocols=OpenFlow10,OpenFlow13

 

Ports

sudo ovs-vsctl add-port br-dpdk0 dpdk0-- set Interface dpdk0 type=dpdk
sudo ovs-vsctl add-port br-dpdk0 dpdk1-- set Interface dpdk1 type=dpdk
...
sudo ovs-vsctl add-port br-dpdk0 dpdkN-- set Interface dpdkN type=dpdk

 

Controller

sudo ovs-vsctl set-controller ovsdpdkbr0 tcp:<ip controller>:6653

 

Habilitando cpu cores utilizados

sudo ovs-vsctl set Open_vSwitch . other_config:pmd-cpu-mask=0x1

cores 7 6 5 4 3 2 1 0
0 0 0 0 0 0 0 1 = 0x1

1 = core habilitado 
0 = core desabilitado

  • No labels