DPDK初始化参数列表
rte_eal_init参数列表获取方式:
- 运行testpmd --help
- 阅读dpdk源码
如下是testpmd打印的常用参数:
EAL common options:
-c COREMASK Hexadecimal bitmask of cores to run on
-l CORELIST List of cores to run on
The argument format is <c1>[-c2][,c3[-c4],...]
where c1, c2, etc are core indexes between 0 and 256
--lcores COREMAP Map lcore set to physical cpu set
The argument format is
'<lcores[@cpus]>[<,lcores[@cpus]>...]'
lcores

DPDK的初始化涉及多个参数,如coreMASK用于指定运行的核心,lcores指定物理CPU集,pci-blacklist和pci-whitelist控制PCI设备使用。主从进程模式中,--proc-type区分主副进程,--file-prefix确保内存配置共享。错误的--file-prefix会导致内存初始化或版本校验失败。

1619

被折叠的 条评论
为什么被折叠?



