Comments (11)
Please share the startup log.
You may add some debug log in ans_main.c to check if receive packets from the NIC.
from dpdk-ans.
Hi
the startup log :
root@vm-test-ans-1:~/dpdk-ans/ans# ./build/ans -c 0x1 -n 1 -w 0000:00:03.0 -- -p 0x1 --config="(0,0,0)"
EAL: Detected 4 lcore(s)
EAL: No free hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
EAL: WARNING: cpu flags constant_tsc=yes nonstop_tsc=no -> using unreliable clock cycles !
PMD: bnxt_rte_pmd_init() called for (null)
EAL: PCI device 0000:00:03.0 on NUMA socket -1
EAL: probe driver: 1af4:1000 rte_virtio_pmd
param nb 1 ports 1
port id 0
Start to Init port
port 0:
port name rte_virtio_pmd:
max_rx_queues 2: max_tx_queues:2
rx_offload_capa 0x0: tx_offload_capa:0x0
Creating queues: rx queue number=1 tx queue number=1...
MAC Address:00:6D:10:72:75:01
Deault-- tx pthresh:0, tx hthresh:0, tx wthresh:0, txq_flags:0xf00
lcore id:0, tx queue id:0, socket id:0
Conf-- tx pthresh:0, tx hthresh:0, tx wthresh:0, txq_flags:0xfffff1ff
Allocated mbuf pool on socket 0, mbuf number: 16384
Initializing rx queues on lcore 0 ...
Default-- rx pthresh:0, rx hthresh:0, rx wthresh:0
port id:0, rx queue id: 0, socket id:0
Conf-- rx pthresh:8, rx hthresh:8, rx wthresh:4
core mask: 1, sockets number:1, lcore number:1
start to init ans
USER8: LCORE[0] lcore mask 0x1
USER8: LCORE[0] lcore id 0 is enable
USER8: LCORE[0] lcore number 1
USER1: rte_ip_frag_table_create: allocated of 25165952 bytes at socket 0
USER8: LCORE[0] UDP layer init successfully, Use memory:4194304 bytes
USER8: LCORE[0] TCP hash table init successfully, tcp pcb size 448 total size 58720256
USER8: LCORE[0] so shm memory 16777216 bytes, so number 131072, sock shm size 128 bytes
USER8: LCORE[0] Sock init successfully, allocated of 41943040 bytes
add eth0 device
USER8: LCORE[0] Interface eth0 if_capabilities: 0x0
add IP 200000a on device eth0
Show interface
eth0 HWaddr 00:6d:10:72:75:01
inet addr:10.0.0.2
inet addr:255.255.255.0
add static route
Destination Gateway Netmask Flags face
10.0.0.0 * 255.255.255.0 U C
10.0.0.5 * 255.255.255.255 U H L
10.10.0.0 10.0.0.5 255.255.255.0 U G
Checking link status done
Port 0 Link Up - speed 10000 Mbps - full-duplex
USER8: main loop on lcore 0
USER8: -- lcoreid=0 portid=0 rxqueueid=0
nb ports 1 hz: 2599994016
USER8: LCORE[-1] ANS mgmt thread startup
from dpdk-ans.
close by error ...
from dpdk-ans.
You may capture packets on another VM or add some debugs in ans_main.c to check it.
from dpdk-ans.
Hi,
i add printf just after ans_packet_handle_call end print ret code value
( generate traffic from another vm arping 10.10.0.2
root@vm-test-ans-1:~/dpdk-ans/ans# ./build/ans -c 0x1 -n 1 -w 0000:00:03.0 -- -p 0x1 --config="(0,0,0)"
EAL: Detected 4 lcore(s)
EAL: No free hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
EAL: WARNING: cpu flags constant_tsc=yes nonstop_tsc=no -> using unreliable clock cycles !
PMD: bnxt_rte_pmd_init() called for (null)
EAL: PCI device 0000:00:03.0 on NUMA socket -1
EAL: probe driver: 1af4:1000 rte_virtio_pmd
param nb 1 ports 1
port id 0
Start to Init port
port 0:
port name rte_virtio_pmd:
max_rx_queues 2: max_tx_queues:2
rx_offload_capa 0x0: tx_offload_capa:0x0
Creating queues: rx queue number=1 tx queue number=1...
MAC Address:00:6D:10:72:75:01
Deault-- tx pthresh:0, tx hthresh:0, tx wthresh:0, txq_flags:0xf00
lcore id:0, tx queue id:0, socket id:0
Conf-- tx pthresh:0, tx hthresh:0, tx wthresh:0, txq_flags:0xfffff1ff
Allocated mbuf pool on socket 0, mbuf number: 16384
Initializing rx queues on lcore 0 ...
Default-- rx pthresh:0, rx hthresh:0, rx wthresh:0
port id:0, rx queue id: 0, socket id:0
Conf-- rx pthresh:8, rx hthresh:8, rx wthresh:4
core mask: 1, sockets number:1, lcore number:1
start to init ans
USER8: LCORE[0] lcore mask 0x1
USER8: LCORE[0] lcore id 0 is enable
USER8: LCORE[0] lcore number 1
USER1: rte_ip_frag_table_create: allocated of 25165952 bytes at socket 0
USER8: LCORE[0] UDP layer init successfully, Use memory:4194304 bytes
USER8: LCORE[0] TCP hash table init successfully, tcp pcb size 448 total size 58720256
USER8: LCORE[0] so shm memory 16777216 bytes, so number 131072, sock shm size 128 bytes
USER8: LCORE[0] Sock init successfully, allocated of 41943040 bytes
add eth0 device
USER8: LCORE[0] Interface eth0 if_capabilities: 0x0
add IP 200000a on device eth0
Show interface
eth0 HWaddr 00:6d:10:72:75:01
inet addr:10.0.0.2
inet addr:255.255.255.0
add static route
Destination Gateway Netmask Flags Iface
10.0.0.0 * 255.255.255.0 U C 0
10.0.0.5 * 255.255.255.255 U H L 0
10.10.0.0 10.0.0.5 255.255.255.0 U G 0
Checking link status done
Port 0 Link Up - speed 10000 Mbps - full-duplex
USER8: main loop on lcore 0
USER8: -- lcoreid=0 portid=0 rxqueueid=0
nb ports 1 hz: 2599995653
USER8: LCORE[-1] ANS mgmt thread startup
ans_packet_handle_return 0
ans_packet_handle_return 0
ans_packet_handle_return 0
ans_packet_handle_return 0
ans_packet_handle_return 0
ans_packet_handle_return 0
ans_packet_handle_return 0
ans_packet_handle_return 0
ans_packet_handle_return 0
ans_packet_handle_return 0
ans_packet_handle_return 0
ans_packet_handle_return 0
from dpdk-ans.
Perhaps il will try to ping 10.0.0.2 ...
from dpdk-ans.
it's work sorry for that
what do you think about the modif i made in the source ?
in particular
ret = rte_eth_tx_queue_setup(portid, queueid, ANS_TX_DESC_DEFAULT, socketid, txconf);
with
ret = rte_eth_tx_queue_setup(portid, queueid, ANS_TX_DESC_DEFAULT, rte_eth_dev_socket_id(portid), NULL);
from dpdk-ans.
Now i have a core dumped when start dpdk-iper3
root@vm-test-ans-1:~/dpdk-iperf# ./dpdk_iperf3 -s --bind 10.0.0.1
EAL: Detected 4 lcore(s)
PANIC in rte_eal_config_reattach():
Cannot mmap memory for rte_config
8: [./dpdk_iperf3(_start+0x2a) [0x55555555ae5a]]
7: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1) [0x7ffff71a93f1]]
6: [./dpdk_iperf3(main+0x38) [0x55555555ad88]]
5: [./dpdk_iperf3(ans_mod_init+0x2ff) [0x55555556cd8f]]
4: [./dpdk_iperf3(anssock_init+0x182) [0x55555556f1b2]]
3: [/usr/lib/x86_64-linux-gnu/librte_eal.so.2(rte_eal_init+0xe44) [0x7ffff7978464]]
2: [/usr/lib/x86_64-linux-gnu/librte_eal.so.2(__rte_panic+0xc3) [0x7ffff7977043]]
1: [/usr/lib/x86_64-linux-gnu/librte_eal.so.2(rte_dump_stack+0x2b) [0x7ffff797f91b]]
Abandon (core dumped)
from dpdk-ans.
i found the cause, it's work
root@vm-test-ans-1:~/dpdk-iperf# ./dpdk_iperf3 -c 10.0.0.2
EAL: Detected 4 lcore(s)
EAL: WARNING: cpu flags constant_tsc=yes nonstop_tsc=no -> using unreliable clock cycles !
USER8: LCORE[-1] anssock any lcore id 0xffffffff
USER8: LCORE[1] anssock app id: 2440
USER8: LCORE[1] anssock app name: dpdk_iperf3
USER8: LCORE[1] anssock app bind lcoreId: 0
USER8: LCORE[1] anssock app bind queueId: 0
USER8: LCORE[1] anssock app lcoreId: 1
fcntl(F_GETFL): Bad file descriptor
Connecting to host 10.0.0.2, port 5201
[2014] local :: port 1728 connected to :: port 20756
fcntl(F_GETFL): Bad file descriptor
skip linux fd 5
iperf3: getsockopt - Resource temporarily unavailable
[ ID] Interval Transfer Bandwidth Retr Cwnd
[2014] 0.00-1.75 sec 167 MBytes 798 Mbits/sec 131072 0.00 Bytes
iperf3: getsockopt - Resource temporarily unavailable
[2014] 1.75-3.25 sec 138 MBytes 773 Mbits/sec 0 0.00 Bytes
iperf3: getsockopt - Resource temporarily unavailable
[2014] 3.25-3.25 sec 0.00 Bytes 0.00 bits/sec 0 0.00 Bytes
iperf3: getsockopt - Resource temporarily unavailable
[2014] 3.25-4.00 sec 458 MBytes 5.13 Gbits/sec 4294903056 0.00 Bytes
iperf3: getsockopt - Resource temporarily unavailable
[2014] 4.00-5.00 sec 289 MBytes 2.43 Gbits/sec 64240 0.00 Bytes
iperf3: getsockopt - Resource temporarily unavailable
[2014] 5.00-6.00 sec 141 KBytes 1.16 Mbits/sec 0 0.00 Bytes
iperf3: getsockopt - Resource temporarily unavailable
[2014] 6.00-8.25 sec 609 MBytes 2.27 Gbits/sec 0 0.00 Bytes
iperf3: getsockopt - Resource temporarily unavailable
[2014] 8.25-8.25 sec 0.00 Bytes 0.00 bits/sec 0 0.00 Bytes
iperf3: getsockopt - Resource temporarily unavailable
[2014] 8.25-9.00 sec 462 MBytes 5.19 Gbits/sec 4294895756 0.00 Bytes
iperf3: getsockopt - Resource temporarily unavailable
USER8: LCORE[0] tcp close: App didn't register EPOLLIN
An unknown state was sent by the client, ignoring it.
[2014] 9.00-11.00 sec 297 MBytes 1.24 Gbits/sec 4294907765 0.00 Bytes
[ ID] Interval Transfer Bandwidth Retr
[2014] 0.00-11.00 sec 2.36 GBytes 1.85 Gbits/sec 1 sender
[2014] 0.00-11.00 sec 2.36 GBytes 1.85 Gbits/sec receiver
iperf Done.
root@vm-test-ans-1:~/dpdk-iperf# ./dpdk_iperf3 -c 10.0.0.2
from dpdk-ans.
- Shall configure different parameters for different NIC.
- For the coredump, you shall start ANS before start dpdk-iperf.
from dpdk-ans.
Thanks again
from dpdk-ans.
Related Issues (20)
- Low TCP TX performance HOT 1
- ans configuration. HOT 5
- Build ANS on corei7 architecture. HOT 2
- pointtopoint howto ? HOT 1
- How to Enable ip Fragmentation HOT 4
- Fast path TCP stack? HOT 1
- Need armv8 support
- Congestion Control supports HOT 7
- tcp slowdown when recv large stream
- There are no code to generate librte_ans for core-avx2
- LCORE [-1] Default gateway address is unreachable
- librte_ans source code
- run ans failed (nb_tx_desc(=2048), should be: <= 1024, = 128) HOT 1
- ans not run ? why?
- Failed to run ans
- ANS support for CentOS-7.5 or any later version
- Compiling deps for Epyc HOT 1
- Skylake arch HOT 4
- 你们是哪个公司的?
- NFV Selection Based on ONF HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dpdk-ans.