3.0 KiB
Configure SR-IOV and DPDK
Before completing the steps described in this section, verify that
your environment meets the requirements in prerequisites-limitations
.
To use NFV features, you must configure corresponding settings before you deploy an OpenStack environment. The values for DPDK, Huge Pages, SR-IOV, and CPU pinning differ for each workload.
When calculating resource for DPDK, consider that one DPDK core can process 3 Mpps of network traffic. For example, if you have 2 x 10 GB network interfaces in bond, you have throughput of 24 Mpps. Therefore, you need to assign 8 DPDK cores (8 x 3).
All NFV features can be enabled on the same compute node or on separate compute nodes and do not depend on each other. However, the procedure and requirements are similar.
For the purpose of example, the following configuration is used:
Parameter | Description |
---|---|
Number of controller nodes | 1 |
Number of compute nodes | 2 |
CPU | 40 x 2.30 GHz |
Memory | 256 GB |
Nova CPU pinning | 36 |
Nova Huge Pages | 2 MB x 65000 = 130,000 GB |
DPDK CPU pinning | 4 |
DPDK Huge Pages | 2048 MB |
To configure DPDK and SRIOV:
Log in to the Fuel web UI.
Click
New OpenStack Environment
.Follow the prompts of the wizard to create a new OpenStack environment.
In the
Compute
screen, selectQEMU-KVM
.In the
Networking Setup
screen, selectNeutron with VLAN segmentation
orNeutron with tunneling segmentation
(VXLAN).Complete the configuration wizard as required and click
Create
.Select the environment you have just created.
Click
Settings -> Compute
.Select
KVM
.Click
Save Settings
.Click
Nodes -> Add Nodes
.Create controller and compute nodes.
Select the hardware that supports NFV features for the nodes on which you want to enable SR-IOV.
Click the node settings icon.
Enable Huge Pages and CPU pinning:
- For SR-IOV:
- Click
Node Attributes
. - Type the Nova CPU pinning and Nova Huge Pages parameters.
- Click
Save Settings
.
- Click
- For DPDK:
- Click
Node Attributes
. - Type the Nova CPU pinning and Nova Huge Pages parameters.
- Type the DPDK CPU pinning and DPDK Huge Pages parameters.
- Click
Save Settings
.
- Click
- For Huge Pages:
- Click
Node Attributes
. - Type the required Huge pages value.
- Click
- For CPU pinning:
- Click
Node Attributes
. - Type the required CPU pinning value.
- Click
- For SR-IOV:
Proceed to:
- For SR-IOV, see:
nfv-configure-sriov-nic
. - For DPDK, see:
nfv-configure-dpdk-nic
.
- For SR-IOV, see: