Переглянути джерело

[DPDK] Add ability to set pmd_rxq_affinity for dpdk interfaces

This enables a more fine tuned dpdk for better performance.
More details on pmd-rxq-affinity config:
http://docs.openvswitch.org/en/latest/howto/dpdk/

Change-Id: I630c6af94ff733619fb175f522fc515984862ff6
feature/network_systemd
Oleg Bondarev 7 роки тому
джерело
коміт
43dbbd3883
2 змінених файлів з 15 додано та 2 видалено
  1. +3
    -0
      README.rst
  2. +12
    -2
      linux/network/dpdk.sls

+ 3
- 0
README.rst Переглянути файл

@@ -1040,6 +1040,7 @@ DPDK OVS interfaces
enabled: true
type: dpdk_ovs_port
n_rxq: 2
pmd_rxq_affinity: "0:1,1:2"
bridge: br-prv
mtu: 9000
br-prv:
@@ -1070,6 +1071,7 @@ DPDK OVS interfaces
enabled: true
type: dpdk_ovs_port
n_rxq: 2
pmd_rxq_affinity: "0:1,1:2"
mtu: 9000
dpdk_first_nic:
name: ${_param:primary_first_nic}
@@ -1079,6 +1081,7 @@ DPDK OVS interfaces
enabled: true
type: dpdk_ovs_port
n_rxq: 2
pmd_rxq_affinity: "0:1,1:2"
mtu: 9000
dpdkbond0:
enabled: true

+ 12
- 2
linux/network/dpdk.sls Переглянути файл

@@ -147,8 +147,8 @@ linux_network_dpdk_bridge_port_interface_{{ interface_name }}:
- require:
- cmd: linux_network_dpdk_bridge_interface_{{ interface.bridge }}

{# Multiqueue n_rxq and mtu setup on interfaces #}
{%- elif interface.type == 'dpdk_ovs_port' and (interface.n_rxq is defined or interface.mtu is defined) %}
{# Multiqueue n_rxq, pmd_rxq_affinity and mtu setup on interfaces #}
{%- elif interface.type == 'dpdk_ovs_port' and (interface.n_rxq is defined or interface.mtu is defined or interface.pmd_rxq_affinity is defined) %}

{%- if interface.n_rxq is defined %}

@@ -160,6 +160,16 @@ linux_network_dpdk_bridge_port_interface_n_rxq_{{ interface_name }}:

{%- endif %}

{%- if interface.pmd_rxq_affinity is defined %}

linux_network_dpdk_bridge_port_interface_pmd_rxq_affinity_{{ interface_name }}:
cmd.run:
- name: "ovs-vsctl set Interface {{ interface_name }} other_config:pmd-rxq-affinity={{ interface.pmd_rxq_affinity }} "
- unless: |
ovs-vsctl get Interface {{ interface_name }} other_config | grep 'pmd-rxq-affinity="{{ interface.pmd_rxq_affinity }}"'

{%- endif %}

{%- if interface.mtu is defined %}

{# MTU ovs dpdk setup on interfaces #}

Завантаження…
Відмінити
Зберегти