ovirt.dpdk-setup
oVirt DPDK 设置
oVirt.dpdk-setup
角色用于设置支持 DPDK 的 Open vSwitch。
需求:
- Ansible 版本 2.4 或更高
- 网络接口卡 (NIC) 必须支持 DPDK
- 硬件支持:确保在 BIOS 中启用 VT-d / AMD-Vi
角色变量
名称 | 默认值 | 说明 |
---|---|---|
pci_drivers | PCI 地址与驱动程序的映射。 | |
configure_kernel | true | 确定内核是否应该为 DPDK 使用进行配置。 |
bind_drivers | true | 确定是否应该将驱动程序绑定到设备上。 |
set_ovs | true | 确定是否应该配置和启动 OVS。 |
pmd_threads_count | 1 | 设置每个 DPDK 兼容 NIC 的 PMD 线程数量。 |
nr_2mb_hugepages | 1024 | 设置要使用的 2MB 大页的数量(如果使用 2MB 大页)。 |
nr_1gb_hugepages | 4 | 设置要使用的 1GB 大页的数量(如果使用 1GB 大页)。 |
use_1gb_hugepages | true | 确定是否应该使用 1GB 大页(如果支持)。 |
依赖
无。
示例剧本
---
- name: oVirt DPDK 设置
hosts: some_host
gather_facts: false
vars:
pci_drivers:
"0000:00:04.0": "vfio-pci"
"0000:00:04.1": "igb"
"0000:00:04.2": ""
roles:
- oVirt.dpdk-setup
许可证
Apache 许可证 2.0