Scalable Kernel TCP Design and Implementation for Short-Lived Connections

被引:32
|
作者
Lin, Xiaofeng [1 ]
Chen, Yu [2 ]
Li, Xiaodong [3 ]
Mao, Junjie [2 ]
He, Jiaquan [2 ]
Xu, Wei [2 ]
Shi, Yuanchun [2 ]
机构
[1] Sina Corp, ZHIHU Corp, Beijing, Peoples R China
[2] Tsinghua Univ, Dept Comp Sci & Technol, Beijing, Peoples R China
[3] Sina Corp, Beijing, Peoples R China
基金
国家高技术研究发展计划(863计划);
关键词
TCP/IP; multicore system; operating system;
D O I
10.1145/2954679.2872391
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
With the rapid growth of network bandwidth, increases in CPU cores on a single machine, and application API models demanding more short-lived connections, a scalable TCP stack is performance-critical. Although many clean-state designs have been proposed, production environments still call for a bottom-up parallel TCP stack design that is backward-compatible with existing applications. We present Fastsocket, a BSD Socket-compatible and scalable kernel socket design, which achieves table-level connection partition in TCP stack and guarantees connection locality for both passive and active connections. Fastsocket architecture is a ground up partition design, from NIC interrupts all the way up to applications, which naturally eliminates various lock contentions in the entire stack. Moreover, Fastsocket maintains the full functionality of the kernel TCP stack and BSD-socket-compatible API, and thus applications need no modifications. Our evaluations show that Fastsocket achieves a speedup of 20.4x on a 24-core machine under a workload of short-lived connections, outperforming the state-of-the-art Linux kernel TCP implementations. When scaling up to 24 CPU cores, Fastsocket increases the throughput of Nginx and HAProxy by 267% and 621% respectively compared with the base Linux kernel. We also demonstrate that Fastsocket can achieve scalability and preserve BSD socket API at the same time. Fastsocket is already deployed in the production environment of Sina WeiBo, serving 50 million daily active users and billions of requests per day.
引用
收藏
页码:339 / 352
页数:14
相关论文
共 50 条
  • [41] SHORT-LIVED ISOTOPES
    SYED, MQ
    PHYSICS TODAY, 1981, 34 (08) : 72 - 72
  • [42] Short-lived excitement
    Eisenstein, Michael
    NATURE METHODS, 2015, 12 (04) : 289 - 289
  • [43] SHORT-LIVED RECOVERY
    不详
    ECONOMIC AND POLITICAL WEEKLY, 1982, 17 (09) : 305 - 305
  • [44] Short-lived biradicals
    1600, (18):
  • [45] Will this clone be short-lived? Towards a better understanding of the characteristics of short-lived clones
    Patanamon Thongtanunam
    Weiyi Shang
    Ahmed E. Hassan
    Empirical Software Engineering, 2019, 24 : 937 - 972
  • [46] Will this clone be short-lived? Towards a better understanding of the characteristics of short-lived clones
    Thongtanunam, Patanamon
    Shang, Weiyi
    Hassan, Ahmed E.
    EMPIRICAL SOFTWARE ENGINEERING, 2019, 24 (02) : 937 - 972
  • [47] Blocking Probability Analysis of Circuit-Switched Networks With Long-Lived and Short-Lived Connections
    Wang, Meiqian
    Li, Shuo
    Wong, Eric W. M.
    Zukerman, Moshe
    JOURNAL OF OPTICAL COMMUNICATIONS AND NETWORKING, 2013, 5 (06) : 621 - 640
  • [48] Allowing Short-Lived TCP Sessions to Ramp-UP in Broadband Wireless Networks
    Mahmoodi, Toktam
    Friderikos, Vasilis
    Aghvami, Hamid
    2009 IEEE GLOBECOM WORKSHOPS, 2009, : 185 - 190
  • [49] SHORT-LIVED BENEFITS Response
    Maini, A.
    BRITISH DENTAL JOURNAL, 2013, 214 (07) : 325 - 325
  • [50] ON SHORT-LIVED FORBUSH DECREASES
    PAK, BS
    ARKIV FOR GEOFYSIK, 1969, 5 (05): : 421 - &