已經在新浪的產品環境中使用高性能的Socket實現:Fastsocket
Fastsocket 是一個高可伸縮的 Socket 以及 Linux 內核的底層網絡實現。可以在多核機器上提供極好的性能,此外使用和維護還非常簡單。目前該項目已經在新浪的產品環境中使用。該項目由清華大學和新浪網聯合組成的 Fastos 團隊開發,該團隊的使命是提升 Linux 內核的效率。
目前支持 Fastsocket 的有 nginx、haproxy 和 lighttpd。
安裝編譯:
[root@localhost ~]# git clone https://github.com/fastos/fastsocket.git [root@localhost ~]# cd fastsocket/kernel [root@localhost kernel]# make defconfig [root@localhost kernel]# make [root@localhost kernel]# make modules_install [root@localhost kernel]# make install
下面是一些使用了 Fastsocket 后的性能測試結果:
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!