Improving database performance by leveraging network-assisted logging

Research output: Contribution to journalArticlepeer-review

Abstract

In mission-critical systems like databases and transaction processing systems, write-ahead logging (WAL) is commonly used to ensure fault tolerance against power failures and system malfunctions. However, WAL requires data to be logged before it is permanently stored in persistent storage, causing delays that can slow down the system, even when using advanced technologies like Optane persistent memory. Although seemingly small, such delays can accumulate and affect overall transaction performance. In this paper, we propose an in-transit logging (ITLogging) scheme that performs logging at the network layer by capturing important data upon its arrival at the destination system. Our scheme filters incoming packets and logs the necessary data from the payload before any processing occurs. In case of data loss, our scheme replays packet deliveries to the target system by mimicking the original client actions for recovery. We implement the proposed scheme by allocating a separate core for packet inspection, ensuring that logging operations are handled independently of the application layer's data processing, thereby avoiding delays in the main processing flow. The experimental results demonstrate that our scheme improves database throughput by 16% for TPC-C and 15% for LinkBench on MySQL, compared with vanilla MySQL.

Original languageEnglish
Article number107785
JournalFuture Generation Computer Systems
Volume169
DOIs
StatePublished - Aug 2025

Keywords

  • Database
  • Deep packet inspection
  • Write-ahead logging

Fingerprint

Dive into the research topics of 'Improving database performance by leveraging network-assisted logging'. Together they form a unique fingerprint.

Cite this