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.82k stars 891 forks source link

Is there a plan to support mult-threads? #748

Closed saffraan closed 1 year ago

saffraan commented 1 year ago

I build a golang project to wrap f-stack in usnet, but It's limited by single thread mode, so that the tps of usnet is less than the tps of golang.net when the clients is less than 100.

So, Is there a plan to support mult-threads? Because, all network calls are processed in single thread, so I use a sync.Cond to sync goroutines, the signal notify delay 60 us. If F-stack supports mult-threads, I can call api directly.

saffraan commented 1 year ago

this is my project: https://github.com/saffraan/usnet.git

playXE commented 1 year ago

Would also love to see multi-thread support in ff_* APIs. It is quite hard to write async runtime for Rust using f-stack at the moment

saffraan commented 1 year ago

Would also love to see multi-thread support in ff_* APIs. It is quite hard to write async runtime for Rust using f-stack at the moment

OK,I will try to optimize network syncing function in my project, Thankyou.