Kernel vs. User-Level Networking: Don't Throw Out the Stack with the Interrupts

Author:

Cai Peter1ORCID,Karsten Martin1ORCID

Affiliation:

1. Unviersity of Waterloo, Waterloo, ON, Canada

Abstract

This paper reviews the performance characteristics of network stack processing for communication-heavy server applications. Recent literature often describes kernel-bypass and user-level networking as a silver bullet to attain substantial performance improvements, but without providing a comprehensive understanding of how exactly these improvements come about. We identify and quantify the direct and indirect costs of asynchronous hardware interrupt requests (IRQ) as a major source of overhead. While IRQs and their handling have a substantial impact on the effectiveness of the processor pipeline and thereby the overall processing efficiency, their overhead is difficult to measure directly when serving demanding workloads. This paper presents an indirect methodology to assess IRQ overhead by constructing preliminary approaches to reduce the impact of IRQs. While these approaches are not suitable for general deployment, their corresponding performance observations indirectly confirm the conjecture. Based on these findings, a small modification of a vanilla Linux system is devised that improves the efficiency and performance of traditional kernel-based networking significantly, resulting in up to 45% increased throughput without compromising tail latency. In case of server applications, such as web servers or Memcached, the resulting performance is comparable to using kernel-bypass and user-level networking when using stacks with similar functionality and flexibility.

Funder

Natural Sciences and Engineering Research Council of Canada

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Networks and Communications,Hardware and Architecture,Safety, Risk, Reliability and Quality,Computer Science (miscellaneous)

Reference48 articles.

1. Advanced Micro Devices Inc. 3rd Gen AMD EPYC Processors with AMD 3D V-Cache Technology Deliver Outstanding Leadership Performance in Technical Computing Workloads. https://www.amd.com/en/press-releases/2022-03--21--3rd-gen-amd-epyc-processors-amd-3d-v-cache-technology-deliver-outstanding 2022. [Online; accessed 2023-07--17]. Advanced Micro Devices Inc. 3rd Gen AMD EPYC Processors with AMD 3D V-Cache Technology Deliver Outstanding Leadership Performance in Technical Computing Workloads. https://www.amd.com/en/press-releases/2022-03--21--3rd-gen-amd-epyc-processors-amd-3d-v-cache-technology-deliver-outstanding 2022. [Online; accessed 2023-07--17].

2. Amdahl , G. M. Validity of the Single Processor Approach to Achieving Large Scale Computing Capabilities . In Proceedings of the April 18--20, 1967, Spring Joint Computer Conference (New York, NY, USA, 1967), AFIPS '67 (Spring), Association for Computing Machinery , pp. 483 -- 485 . Amdahl, G. M. Validity of the Single Processor Approach to Achieving Large Scale Computing Capabilities. In Proceedings of the April 18--20, 1967, Spring Joint Computer Conference (New York, NY, USA, 1967), AFIPS '67 (Spring), Association for Computing Machinery, pp. 483--485.

3. Workload analysis of a large-scale key-value store

4. Corbet , J. Ringing in a new asynchronous i/o api. https://lwn.net/Articles/776703/ , 2019 . [Online; accessed 2023-07--17]. Corbet, J. Ringing in a new asynchronous i/o api. https://lwn.net/Articles/776703/, 2019. [Online; accessed 2023-07--17].

5. Corbet , J. , Rubini , A. , and Kroah-Hartman , G. Linux device drivers. " O'Reilly Media , Inc .", 2005 , pp. 528 -- 531 . Corbet, J., Rubini, A., and Kroah-Hartman, G. Linux device drivers. " O'Reilly Media, Inc.", 2005, pp. 528--531.

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3