Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

socketpair() failed #15

Open
sachithmuhandiram opened this issue Apr 17, 2019 · 9 comments
Open

socketpair() failed #15

sachithmuhandiram opened this issue Apr 17, 2019 · 9 comments

Comments

@sachithmuhandiram
Copy link

I have tried to run dpdk-nginx example as given instructions. dpdk and dpdk-ans running without error.

But when I try to execute ./objs/nginx I get following error.

EAL: Detected 8 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket_31453_6a59ca14306
EAL: Probing VFIO support...
USER8: LCORE[-1] anssock any lcore id 0xffffffff 
USER8: LCORE[0] anssock app id: 31453 
USER8: LCORE[0] anssock app name: nginx 
USER8: LCORE[0] anssock app lcoreId: 0 
USER8: LCORE[0] mp ops number 4, mp ops index: 0 
USER8: LCORE[0] setsockopt: not support optname 2 
2019/04/17 15:02:45 [notice] 31453#0: using the "epoll" event method
2019/04/17 15:02:45 [notice] 31453#0: nginx/1.12.2
2019/04/17 15:02:45 [notice] 31453#0: built by gcc 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 
2019/04/17 15:02:45 [notice] 31453#0: OS: Linux 4.15.0-46-generic
2019/04/17 15:02:45 [notice] 31453#0: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2019/04/17 15:02:45 [alert] 31453#0: socketpair() failed
2019/04/17 15:04:01 [notice] 31453#0: signal 28 (SIGWINCH) received
USER8: LCORE[0] anssock: ctrlmsg block operation error(Interrupted system call) 
2019/04/17 15:04:01 [info] 31453#0: epoll_wait() failed (4: Interrupted system call)
@bluenet13
Copy link
Member

Ignore these errors.

@sachithmuhandiram
Copy link
Author

I have tried ab -n 30000 -c 500 192.168.20.30:80/

Benchmarking 192.168.20.30 (be patient)
apr_pollset_poll: The timeout specified has expired (70007)

I can ping to 192.168.20.30 IP from another VM

@bluenet13
Copy link
Member

What is the ans startup log?

@sachithmuhandiram
Copy link
Author

EAL: Detected 3 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
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:08.0 on NUMA socket -1
EAL:   Invalid NUMA socket, default to 0
EAL:   probe driver: 8086:100f net_e1000_em

Start to Init port 
	 port 0:  
	 port name net_e1000_em:  
	 max_rx_queues 1: max_tx_queues:1 
	 rx_offload_capa 0x12a0f: tx_offload_capa:0x800f 
	 Creating queues: rx queue number=1 tx queue number=1... 
	 MAC Address:08:00:27:D0:49:A0 
	 Deault-- tx pthresh:0, tx hthresh:0, tx wthresh:0, tx offloads:0x0 
	 lcore id:1, tx queue id:0, socket id:0 
	 Conf-- tx pthresh:0, tx hthresh:0, tx wthresh:0, tx offloads:0xe 

Allocated mbuf pool on socket 0, mbuf number: 16384 

Initializing rx queues on lcore 1 ... 
Default-- rx pthresh:0, rx hthresh:0, rx wthresh:0, rx offloads:0x0  
Conf-- rx pthresh:0, rx hthresh:0, rx wthresh:0, rx offloads:0xf  
port id:0, rx queue id: 0, socket id:0 

core mask: 2, sockets number:1, lcore number:1 
start to init ans 
USER8: LCORE[1] lcore mask 0x2 
USER8: LCORE[1] lcore id 1 is enable 
USER8: LCORE[1] lcore number 1 
USER1: rte_ip_frag_table_create: allocated of 25165952 bytes at socket 0
add veth0 device, kni id 0 
USER8: LCORE[1] Interface veth0 if_capabilities: 0x800f 
add IP a000002 on device veth0 
show all IPs: 

 veth0: mtu 1500 
	link/ether 08:00:27:d0:49:a0
 	inet addr: 10.0.0.2/24

add static route 

ANS IP routing table
 10.0.0.0/24 via dev veth0 src 10.0.0.2 
 10.10.0.0/24 via 10.0.0.5 dev veth0 


Checking link status ........done
Port 0 Link Up - speed 1000 Mbps - full-duplex
USER8: main loop on lcore 1
USER8:  -- lcoreid=1 portid=0 rxqueueid=0
hz: 2194921384 

@bluenet13
Copy link
Member

10.0.0.2 is configured in ans stack, no 192.168.20.30 IP address is configured in ans stack.
Why do you want to connect to 192.168.20.30?

@sachithmuhandiram
Copy link
Author

this is just the log, I configured ans IP to 192.168.20.30 and tested with ping using using another VM. It was working. And even I tried with this default 10.0.0.2 IP, same result.
sorry, I forgot to update that part.

@bluenet13
Copy link
Member

Get below output:
ans> ip links show
ans> ip addr show
ans> ip route show

tcpdump on linux side, and share the captured file.

@sachithmuhandiram
Copy link
Author

ans> ip link show

 veth0: port 0 state UP speed 1000Mbps full-duplex mtu 1500 
   link/ether 08:00:27:d0:49:a0
   IPV4 checksum offload enable 
   UDP checksum offload enable 
   TCP checksum offload enable 
   TCP TSO offload disable 
   Max allowed number of segments: 255 
   RX packets:55 errors:0 dropped:0
   TX packets:0 errors:0 dropped:0

ans> ip route show

ANS IP routing table
 10.10.0.0/24 via 10.0.0.5 dev veth0 
 192.168.20.0/24 via dev veth0 src 192.168.20.30

ans> ip addr show

 veth0: mtu 1500 
   link/ether 08:00:27:d0:49:a0
   inet addr: 192.168.20.30/24

@sachithmuhandiram
Copy link
Author

Any update about this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants