F-Stack / f-stack

F-Stack is an user space network development kit with high performance based on DPDK, FreeBSD TCP/IP stack and coroutine API.
http://www.f-stack.org
Other
3.87k stars 899 forks source link

F-Stack multiple process howto #788

Open Begi1982 opened 1 year ago

Begi1982 commented 1 year ago

Hi All, I'm very new into this DPDK world and I just found your TCP/IP stack which looks promising. However I would like to very if F-Stack can satisfy my needs, therefore I modified the helloworld_epoll application to listen on port 5001 and I used a iperf client to test the RX (from F-Stack pov) direction. It worked, however the result was not as good as I expected. Therefore I would like to test whether using multiple processes can give a boost to the performance. Unfortunately I failed to do this. I modified the helloworld_epoll app to have a new parameter port_idx and then I start two instances of the application, first with port_idx 5001 and the second with 5002 using the same config.ini. Both application starts perfectly. (By the way I can't ping the server unless all application is started, but I guess this is intentional) Then I connect to the F-Stack from the other machine running two instance of the iperf. I think I'm missing something as I'm not able to connect to port 5001 and 5002 simultaneously. My idea is 1 process / 1 TCP port. Can you please help me with this? Thank you in advance!