zrlio / urdma

Verbs on DPDK
102 stars 24 forks source link

CORE DUMP when starting perftest demo #56

Open hittingnote opened 4 years ago

hittingnote commented 4 years ago

I start urdmad and run one of the perftest demo. After I start a client by executing ./ib_send_bw -R -d urdma_0 [server_name], CORE DUMP happens. I use strace to find out what's wrong, and I think there's something wrong with ibacm.port because of the part of strace output listed below:

openat(AT_FDCWD, "/usr/local/var/run/ibacm.port", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC, 0) = 18
connect(18, {sa_family=AF_UNIX, sun_path="/usr/local/var/run/ibacm.sock"}, 110) = -1 ENOENT (No such file or directory)
close(18)                               = 0
write(17, "\25\0\0\0\20\1\0\0\1\0\0\0\320\7\0\0\0\0\20\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 280) = 280
write(17, "\f\0\0\0\10\0H\1\20\325\377\377\377\177\0\0", 16) = 16
write(17, "\23\0\0\0\20\0\20\0010\322\377\377\377\177\0\0\1\0\0\0\0\0\0\0", 24) = 24
write(17, "\4\0\0\0\10\0\0\0\1\0\0\0\320\7\0\0", 16) = 16
write(17, "\f\0\0\0\10\0H\1\20\325\377\377\377\177\0\0", 16) = 16
brk(0x5555557f8000)                     = 0x5555557f8000
write(14, "\3\0\0\0\4\0\1\0 \325\377\377\377\177\0\0", 16) = 16
write(14, "\22\0\0\0\n\0\3\0\224\324\377\377\377\177\0\0\30\240}UUU\0\0\377\0\0\0\0\0\0\0"..., 40) = 40
write(14, "\22\0\0\0\n\0\3\0\224\324\377\377\377\177\0\0\310\270}UUU\0\0\377\3\0\0\0\0\0\0"..., 40) = 40
sendto(3, "\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0", 16, 0, NULL, 0) = 16
recvfrom(3, "\0\0\0\2\0\0\0\2\0\0p\0\177\344\262\220", 16, 0, NULL, NULL) = 16
write(14, "\30\0\0\0\24\0\t\0\360\323\377\377\377\177\0\0Hz}UUU\0\0\2\0\0\0\2\0\0\0"..., 80) = 80
brk(0x555555821000)                     = 0x555555821000
write(17, "\v\0\0\0\20\0\220\0 \323\377\377\377\177\0\0\1\0\0\0\1\0\0\0", 24) = 24
write(14, "\32\0\0\0\36\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 120) = 120
write(17, "\6\0\0\0\30\1\0\0}\217\265\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 288) = 288
write(17, "\f\0\0\0\10\0H\1\20\325\377\377\377\177\0\0", 16) = 16
write(2, "RDMA CM event error:\nEvent: RDMA"..., 103RDMA CM event error:
Event: RDMA_CM_EVENT_UNREACHABLE; error: -110.

ERRNO: No such file or directory.

So may be it is because the ./ib_send_bw cannot find /usr/local/var/run/ibacm.port that the ./ib_send_bw finally goes wrong. Seems that it is the problem of installing rdma-core, but how can I fix that?

Note that I install urdma on ubuntu18.04 and the kernel version is 4.9.185. Versions of other software (like dpdk, rdma-core) are also correct.