欢迎来到 DPDK交流社区 ,有什么问题可以尽管在这里提问,您将会收到社区其他成员的回答;也可以将您的总结写在这里,为社区其他成员提供帮助。 (QQ交流群:127163755)

CentOS7.0系统使用脚本进行安装测试,使用交互模式运行测试程序,报错lcore 2 unavailable

0 投票
1、CentOS7.0系统使用脚本进行安装测试,

2、使用交互模式运行测试程序

      Run testpmd application in interactive mode ($RTE_TARGET/app/testpmd)

3、报错lcore 2 unavailable

     报错信息:

bitmask: f
Launching app
EAL: Detected 2 lcore(s)
EAL: lcore 2 unavailable
EAL: invalid coremask

Usage: x86_64-native-linuxapp-gcc/app/testpmd [options]

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 128
  --lcores COREMAP    Map lcore set to physical cpu set
                      The argument format is
                            '<lcores[@cpus]>[<,lcores[@cpus]>...]'
                      lcores and cpus list are grouped by '(' and ')'
                      Within the group, '-' is used for range separator,
                      ',' is used for single number separator.
                      '( )' can be omitted for single element group,
                      '@' can be omitted if cpus and lcores have the same value
  --master-lcore ID   Core ID that is used as master
  -n CHANNELS         Number of memory channels
  -m MB               Memory to allocate (see also --socket-mem)
  -r RANKS            Force number of memory ranks (don't detect)
  -b, --pci-blacklist Add a PCI device in black list.
                      Prevent EAL from using this PCI device. The argument
                      format is <domain:bus:devid.func>.
  -w, --pci-whitelist Add a PCI device in white list.
                      Only use the specified PCI devices. The argument format
                      is <[domain:]bus:devid.func>. This option can be present
                      several times (once per device).
                      [NOTE: PCI whitelist cannot be used with -b option]
  --vdev              Add a virtual device.
                      The argument format is <driver><id>[,key=val,...]
                      (ex: --vdev=net_pcap0,iface=eth2).
  -d LIB.so|DIR       Add a driver or driver directory
                      (can be used multiple times)
  --vmware-tsc-map    Use VMware TSC map instead of native RDTSC
  --proc-type         Type of this process (primary|secondary|auto)
  --syslog            Set syslog facility
  --log-level=<int>   Set global log level
  --log-level=<type-regexp>,<int>
                      Set specific log level
  -v                  Display version information on startup
  -h, --help          This help

EAL options for DEBUG use only:
  --huge-unlink       Unlink hugepage files after init
  --no-huge           Use malloc instead of hugetlbfs
  --no-pci            Disable PCI
  --no-hpet           Disable HPET
  --no-shconf         No shared config (mmap'd files)

EAL Linux options:
  --socket-mem        Memory to allocate on sockets (comma separated values)
  --huge-dir          Directory where hugetlbfs is mounted
  --file-prefix       Prefix for hugepage filenames
  --base-virtaddr     Base virtual address
  --create-uio-dev    Create /dev/uioX (usually done by hotplug)
  --vfio-intr         Interrupt mode for VFIO (legacy|msi|msix)
  --xen-dom0          Support running on Xen dom0 without hugetlbfs

EAL: FATAL: Invalid 'command line' arguments.
EAL: Invalid 'command line' arguments.
PANIC in main():
Cannot init EAL
5: [x86_64-native-linuxapp-gcc/app/testpmd() [0x4552e1]]
4: [/lib64/libc.so.6(__libc_start_main+0xf5) [0x7f3e7f5a6b15]]
3: [x86_64-native-linuxapp-gcc/app/testpmd(main+0x5e9) [0x451469]]
2: [x86_64-native-linuxapp-gcc/app/testpmd(__rte_panic+0xb0) [0x44a0d2]]
1: [x86_64-native-linuxapp-gcc/app/testpmd(rte_dump_stack+0x1a) [0x4b9f3a]]
最新提问 5月 12, 2017 分类:DPDK初学入门 | 用户: 摸石过河 (150 分)

1个回答

0 投票
你的电脑是不是只有两个cpu呀。可以使用lscpu命令进行检查下。
最新回答 5月 14, 2017 用户: 趁着d年轻 (260 分)
是的,只有两个CPU,请问DPDK对CPU有要求吗?
只有两个核,但你的掩码用的f,表示用4个核。把掩码改为3试试。
感谢解答,问题解决,谢谢!
...