ansyun / dpdk-ans

ANS(Accelerated Network Stack) on DPDK, DPDK native TCP/IP stack.
https://ansyun.com
BSD 3-Clause "New" or "Revised" License
1.16k stars 324 forks source link

Unable to run anscli or applications under test #99

Closed JotusKuo closed 5 years ago

JotusKuo commented 5 years ago

Hi All,

I'm running ANS using ./build/ans -c 0x80 -n 4 --no-shconf --proc-type=auto –file-prefix=Ans --base-virtaddr=0x2aaa2aa0000 -- -p 0x1 --config="(0,0,7)" which seem running ok. But there is an error when I run anscli in other terminal with command as ./build/anscli --file-prefix=Ans --no-shconf --proc-type=auto. The error is as following

EAL: Detected 32 lcore(s) PANIC in rte_eal_config_attach(): Cannot open '/var/run/.rte_config' for rte_mem_config 6: [./build/anscli() [0x42f6f9]] 5: [/lib64/libc.so.6(libc_start_main+0xf5) [0x7fdefef383d5]] 4: [./build/anscli(main+0x74) [0x42f024]] 3: [./build/anscli(rte_eal_init+0xe96) [0x45f426]] 2: [./build/anscli(rte_panic+0xbe) [0x42b9a5]] 1: [./build/anscli(rte_dump_stack+0x1a) [0x46661a]] Aborted

Any another application has the same error.

What is wrong about my environment? Any suggestions?

bluenet13 commented 5 years ago

Run “./build/anscli --file-prefix=Ans”

JotusKuo commented 5 years ago

Does that mean I should run ANS using sudo ./build/ans -c 0x80 -n 4 --no-shconf --proc-type=auto –file-prefix=Ans --base-virtaddr=0x2aaa2aa0000 -- -p 0x1 --config="(0,0,7)" but run anscli using ./build/anscli --file-prefix=Ans which is without sudo?

bluenet13 commented 5 years ago

For root user: ./build/ans -c 0x80 -n 4 –file-prefix=Ans --base-virtaddr=0x2aaa2aa0000 -- -p 0x1 --config="(0,0,7)" ./build/anscli --file-prefix=Ans For other user: sudo ./build/ans ... sudo ./build/anscli ...

JotusKuo commented 5 years ago

Thanks bluenet13. But there is still the same error using 2 commands with sudo. Does it require special DPDK version? My DPDK version is 16.11.9 and dpdk-ans is reset to the version before 17.02.

bluenet13 commented 5 years ago

Use the latest ans version and dpdk-18.11

bluenet13 commented 5 years ago

No feedback, close it.