Repository logo
Log in(current)
Repository logoMIT Open ScholarshipDSpace@MIT
  1. Home
  2. MIT Libraries
  3. MIT Theses
  4. Graduate Theses
  5. Characterizing and Optimizing the Networking Stack in Databases

Characterizing and Optimizing the Networking Stack in Databases

Thumbnail Image
Download
Name

kafle-pkafle-meng-eecs-2024-thesis.pdf

Description
Thesis PDF
Size

1.27 MB

Format

Adobe PDF

Checksum (MD5)

df73b5679469decee95f3166d54b85e7

Author(s)
Kafle, Prabhakar
Advisor(s)
Stonebraker, Michael
Date Issued
May 2024
Publisher
Massachusetts Institute of Technology
Abstract
Databases are latency-critical applications, and client-database communication is a significant contributor to the end-to-end latency. However, the database community has paid little attention to the networking overhead in databases. This thesis focuses on the overhead from the network stack in the server. I characterize the contributions of different components in the database server to the end-to-end latency, focusing on the networking stack. I observe that in transactions involving a single read query, the server network stack accounts for almost 15\% of the total end-to-end latency in VoltDB. Most of this overhead comes from TCP packet processing, interrupt handling, context switches, and I/O multiplexing. Additionally, this work also explores avenues to optimize the networking stack overhead. I find that moving networking to the userspace by bypassing the kernel can significantly reduce the networking stack overhead. This switch in the network stack can help achieve a significant improvement in throughput and lower latency for both the benchmarks used. While the thesis is focused on server networking stack, similar optimization can be applied to client side if necessary hardware (CPU, NIC) is available.
MIT Department
Massachusetts Institute of Technology. Department of Electrical Engineering and Computer Science
Terms of Use
Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)
https://creativecommons.org/licenses/by-nc-nd/4.0/
Copyright retained by author(s)
Persistent DSpace Link
https://hdl.handle.net/1721.1/156796
Repository logo
PrivacyPermissionsAccessibilityContact us
Repository logo
Notify us about copyright concerns.