emmericp / MoonGen

MoonGen is a fully scriptable high-speed packet generator built on DPDK and LuaJIT. It can saturate a 10 Gbit/s connection with 64 byte packets on a single CPU core while executing user-provided Lua scripts for each packet. Multi-core support allows for even higher rates. It also features precise and accurate timestamping and rate control.
MIT License
1.03k stars 234 forks source link

Failed to run the example. #336

Closed daishuangbiao closed 10 months ago

daishuangbiao commented 10 months ago

Hello,

After I compile and build MoonGen on mac vmware fusion ubuntu 16.04 LTS, I failed to run the example.

Here my OS details:

@ubuntu:~/MoonGen$ lspci | grep -i net 02:01.0 Ethernet controller: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 01) 02:02.0 Ethernet controller: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 01)

@ubuntu:~/MoonGen$ uname -r 4.15.0-112-generic

@ubuntu:~/MoonGen$ sudo ./build/MoonGen examples/l3-load-latency.lua 0 1 [INFO] Initializing DPDK. This will take a few seconds... EAL: Detected 2 lcore(s) EAL: No free hugepages reported in hugepages-1048576kB EAL: Probing VFIO support... EAL: PCI device 0000:02:01.0 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:100f net_e1000_em EAL: PCI device 0000:02:02.0 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:100f net_e1000_em EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error [INFO] Found 1 usable devices: Device 0: 00:0C:29:29:98:D0 (Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)) [FATAL] Lua error in task master /home/MoonGen/build/../libmoon/lua/device.lua:115: device supports only 1 rx queues, requested 3 Stack Traceback

(2) Lua method 'fatal' at file '/home/MoonGen/build/../libmoon/lua/log.lua:129' Local variables: self = table: 0x41d00f98 {DEBUG:0, fatal:function: 0x41363340, writeToLog:function: 0x41363320, INFO:1 (more...)} str = string: "device supports only 1 rx queues, requested 3" (3) Lua field 'config' at file '/home/MoonGen/build/../libmoon/lua/device.lua:115' Local variables: args = table: 0x41b60db0 {rxQueues:3, txDescs:1024, txQueues:3, bufSize:2048, numBufs:2047, rxDescs:512 (more...)} driverInfo = table: 0x41b62c58 {} (4) Lua function 'master' at file 'examples/l3-load-latency.lua:37' (best guess) Local variables: args = table: 0x40b13680 {rxDev:1, txDev:0, flows:4, rate:10000, size:60} (5) global C function 'xpcall' (6) Lua upvalue 'master' at file '/home/MoonGen/build/../libmoon/lua/main.lua:96' Local variables: _ = string: "./build/MoonGen" file = string: "examples/l3-load-latency.lua" args = table: 0x40bd0c80 {1:0, 2:1} cfgFile = nil ok = boolean: true parsedArgs = table: 0x40b13568 {1:table: 0x40b13680} (7) Lua function 'main' at file '/home/MoonGen/build/../libmoon/lua/main.lua:146' (best guess) Local variables: task = string: "master" /home/MoonGen/build/../libmoon/lua/device.lua:115: device supports only 1 rx queues, requested 3 EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error EAL: Error reading from file descriptor 45: Input/output error