fastos / fastsocket

Fastsocket is a highly scalable socket and its underlying networking implementation of Linux kernel. With the straight linear scalability, Fastsocket can provide extremely good performance in multicore machines. In addition, it is very easy to use and maintain. As a result, it has been deployed in the production environment of SINA.
GNU General Public License v2.0
3.76k stars 727 forks source link

请教 fastsocket and reuseport #29

Open awssteve opened 9 years ago

awssteve commented 9 years ago

请问下fastsocket内核,应用层我能否跑带reuseport功能的程序?我这边有台机器带reuseport功能的程序启动不大正常,本来是要启动16个进程,只起来3-4个。

breezewoods commented 9 years ago

Fastsocket的listen-spawn特性,是对reuseport的进一步增强,在CPU核心数目较多的服务器上性能对reuseport有明显提升。

所以Fastsocket在设计时,没有考虑对reuseport兼容。是否会出现兼容性问题,并不是很确定。个人建议,关闭reuseport使用性能更好Fastsocket的listen-spawn,或者继续使用reuseport并disable listen-spawn特性。

pengqiuyuan commented 9 years ago

image

gfreewind commented 9 years ago

你有什么需求一定需要用reuse port?很可能fastsocket本身已经解决了这个需求