EAL: Detected 4 lcore(s)
EAL: Probing VFIO support...
EAL: PCI device 0000:00:03.0 on NUMA socket -1
EAL: Invalid NUMA socket, default to 0
EAL: probe driver: 8086:100e net_e1000_em
EAL: PCI device 0000:00:09.0 on NUMA socket -1
EAL: Invalid NUMA socket, default to 0
EAL: probe driver: 8086:100e net_e1000_em
EAL: PCI device 0000:00:0a.0 on NUMA socket -1
EAL: Invalid NUMA socket, default to 0
EAL: probe driver: 8086:100e net_e1000_em
lcore: 0, port: 0, queue: 0
create mbuf pool on socket 0
create ring:dispatch_ring_p0_q0 success, 2047 ring entries are now free!
KNI: pci: 00:03:00 8086:100e
create kni on port 0 success!
create kni ring success, 2047 ring entries are now free!
Port 0 MAC: 08 00 27 92 8d 83
RX checksum offload supported
TX ip checksum offload supported
TX TCP&UDP checksum offload supported
TSO is disabled
set port 0 to promiscuous mode ok
Checking link status....................done
Port 0 Link Up - speed 1000 Mbps - full-duplex
link_elf_lookup_symbol: missing symbol hash table
link_elf_lookup_symbol: missing symbol hash table
Timecounters tick every 10.000 msec
Timecounter "ff_clock" frequency 100 Hz quality 1
f-stack-0: Ethernet address: 08:00:27:92:8d:83
sockfd:1024
run tools/route -p 0 show 8.8.8.8 command for more than 10k+
$ for i in seq 0 12000; do echo "===> $i" ; sudo ./tools/route/route -p 0 show 8.8.8.8 ; done
===> 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
route to: 8.8.8.8
destination: 0.0.0.0
mask: 0.0.0.0
gateway: 10.0.2.2
fib: 0
interface: f-stack-0
flags: <UP,GATEWAY,DONE>
recvpipe sendpipe ssthresh rtt,msec mtu weight expire
0 0 0 0 1500 1 0
===> 1
....
===> 8248
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
EAL: Invalid NUMA socket, default to 0
route to: 8.8.8.8
destination: 0.0.0.0
mask: 0.0.0.0
gateway: 10.0.2.2
fib: 0
interface: f-stack-0
flags: <UP,GATEWAY,DONE>
recvpipe sendpipe ssthresh rtt,msec mtu weight expire
0 0 0 0 1500 1 0
===> 8249 <<<<<<<<<<<<<<<<<< ERROR
error allocating core states array
EAL: FATAL: rte_service_init() failed <<<<<<<<<<<<<<<<<< ERROR
EAL: rte_service_init() failed
EAL: Error - exiting with code: 1
Cause: Error with EAL initialization
===> 8250
error allocating core states array
EAL: FATAL: rte_service_init() failed
EAL: rte_service_init() failed
EAL: Error - exiting with code: 1
Cause: Error with EAL initialization
$ sudo ./example/helloworld --conf config.ini --proc-type=primary --proc-id=0 & [1] 12878 bingel@ubuntu16:/opt/sources/f-stack$ dpdk: lcore_mask=1
EAL: Detected 4 lcore(s) EAL: Probing VFIO support... EAL: PCI device 0000:00:03.0 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:100e net_e1000_em EAL: PCI device 0000:00:09.0 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:100e net_e1000_em EAL: PCI device 0000:00:0a.0 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:100e net_e1000_em lcore: 0, port: 0, queue: 0 create mbuf pool on socket 0 create ring:dispatch_ring_p0_q0 success, 2047 ring entries are now free! KNI: pci: 00:03:00 8086:100e create kni on port 0 success! create kni ring success, 2047 ring entries are now free! Port 0 MAC: 08 00 27 92 8d 83 RX checksum offload supported TX ip checksum offload supported TX TCP&UDP checksum offload supported TSO is disabled set port 0 to promiscuous mode ok
Checking link status....................done Port 0 Link Up - speed 1000 Mbps - full-duplex link_elf_lookup_symbol: missing symbol hash table link_elf_lookup_symbol: missing symbol hash table Timecounters tick every 10.000 msec Timecounter "ff_clock" frequency 100 Hz quality 1 f-stack-0: Ethernet address: 08:00:27:92:8d:83 sockfd:1024
$ for i in
seq 0 12000
; do echo "===> $i" ; sudo ./tools/route/route -p 0 show 8.8.8.8 ; done===> 0 EAL: Invalid NUMA socket, default to 0 EAL: Invalid NUMA socket, default to 0 EAL: Invalid NUMA socket, default to 0 route to: 8.8.8.8 destination: 0.0.0.0 mask: 0.0.0.0 gateway: 10.0.2.2 fib: 0 interface: f-stack-0 flags: <UP,GATEWAY,DONE> recvpipe sendpipe ssthresh rtt,msec mtu weight expire 0 0 0 0 1500 1 0 ===> 1 .... ===> 8248 EAL: Invalid NUMA socket, default to 0 EAL: Invalid NUMA socket, default to 0 EAL: Invalid NUMA socket, default to 0 route to: 8.8.8.8 destination: 0.0.0.0 mask: 0.0.0.0 gateway: 10.0.2.2 fib: 0 interface: f-stack-0 flags: <UP,GATEWAY,DONE> recvpipe sendpipe ssthresh rtt,msec mtu weight expire 0 0 0 0 1500 1 0 ===> 8249 <<<<<<<<<<<<<<<<<< ERROR error allocating core states array EAL: FATAL: rte_service_init() failed <<<<<<<<<<<<<<<<<< ERROR
EAL: rte_service_init() failed
EAL: Error - exiting with code: 1 Cause: Error with EAL initialization ===> 8250 error allocating core states array EAL: FATAL: rte_service_init() failed
EAL: rte_service_init() failed
EAL: Error - exiting with code: 1 Cause: Error with EAL initialization
$ cat ./config.ini dpdk lcore_mask=1 channel=4 promiscuous=1 numa_on=1 tso=0 vlan_strip=1
port_list=0
port0 addr=10.0.2.15 netmask=255.255.255.0 broadcast=10.0.2.255 gateway=10.0.2.2
kni enable=1 method=reject tcp_port=80,443
freebsd.boot hz=100
fd_reserve=1024
kern.ipc.maxsockets=262144
net.inet.tcp.syncache.hashsize=4096 net.inet.tcp.syncache.bucketlimit=100
net.inet.tcp.tcbhashsize=65536
kern.ncallout=262144
freebsd.sysctl kern.ipc.somaxconn=32768 kern.ipc.maxsockbuf=16777216
net.link.ether.inet.maxhold=5
net.inet.tcp.fast_finwait2_recycle=1 net.inet.tcp.sendspace=16384 net.inet.tcp.recvspace=8192 net.inet.tcp.nolocaltimewait=1 net.inet.tcp.cc.algorithm=cubic net.inet.tcp.sendbuf_max=16777216 net.inet.tcp.recvbuf_max=16777216 net.inet.tcp.sendbuf_auto=1 net.inet.tcp.recvbuf_auto=1 net.inet.tcp.sendbuf_inc=16384 net.inet.tcp.recvbuf_inc=524288 net.inet.tcp.sack.enable=1 net.inet.tcp.blackhole=1 net.inet.tcp.msl=2000 net.inet.tcp.delayed_ack=0
net.inet.udp.blackhole=1 net.inet.ip.redirect=0