RESYSTANCE: Unleashing Hidden Performance of Compaction in LSM-trees via eBPF

RESYSTANCE is a system that leverages eBPF and io_uring to offload LSM-tree compaction I/O operations directly into the kernel, eliminating nearly all system call overhead and achieving up to 75% throughput improvement and 40% latency reduction in write-intensive workloads without modifying existing database structures.

Hongsu Byun, Seungjae Lee, Honghyeon Yoo, Myoungjoon Kim, Sungyong Park

Published 2026-03-06
📖 4 min read☕ Coffee break read

Here is an explanation of the paper RESYSTANCE, broken down into simple concepts with creative analogies.

The Big Problem: The "Paperwork" Bottleneck

Imagine you own a super-fast delivery truck (your NVMe SSD). This truck can drive at 200 mph. However, every time the driver wants to pick up or drop off a package, they have to stop at a government office, fill out three different forms, get a stamp, wait in line, and then drive back to the truck.

Even though the truck is fast, the paperwork (the System Calls) is so slow and annoying that the truck spends 90% of its time waiting in line and only 10% actually driving.

In the world of databases (like RocksDB), this is exactly what happens. The hardware is incredibly fast, but the software (the operating system) forces the database to stop and "talk" to the kernel (the OS manager) for every single piece of data it reads or writes. This slows everything down.

The Specific Culprit: The "Cleanup Crew"

In these databases, data is constantly being organized. Imagine a library where books are thrown onto a shelf randomly. Every so often, a Cleanup Crew (called Compaction) comes in to sort the books, remove duplicates, and organize them neatly.

The problem? The Cleanup Crew is doing its job terribly inefficiently.

  • Instead of grabbing a whole box of books at once, they pick up one book, run to the office to fill out a form, run back, pick up the next book, run to the office again... and so on.
  • Because they have to do this for thousands of books, the "Cleanup Crew" becomes the biggest bottleneck in the entire system.

The Solution: RESYSTANCE

The researchers created a tool called RESYSTANCE. Think of it as a Magic Clipboard and a Direct Highway that lets the Cleanup Crew work without ever leaving the warehouse.

Here is how it works, using two main technologies:

1. The Magic Clipboard (eBPF)

eBPF is like a safe, programmable robot that lives inside the government office (the Kernel).

  • Before: The Cleanup Crew (User Space) had to leave the warehouse, go to the office, ask for permission to read a book, come back, read it, go back to the office, ask to write it, etc.
  • With RESYSTANCE: The researchers give the Cleanup Crew a "Magic Clipboard" (an eBPF program). This clipboard allows the crew to read the books, sort them, and organize them right inside the office, without ever having to leave the building or fill out the standard forms.
  • Safety: The government (Kernel Verifier) checks the clipboard first to make sure the robot won't accidentally burn down the building or steal the books. It's safe, but super fast.

2. The Direct Highway (io_uring)

io_uring is like a High-Speed Conveyor Belt that connects the warehouse directly to the trucks.

  • Before: The crew had to shout a request, wait for a reply, shout another request, wait for a reply.
  • With RESYSTANCE: The crew puts a whole list of 100 books onto the conveyor belt at once. The belt whisks them all to the truck instantly. The crew doesn't have to wait for a reply for each book; they just keep working while the belt does the heavy lifting.

The Result: A Supercharged Library

By combining the Magic Clipboard (doing the work inside the office) and the High-Speed Conveyor Belt (sending many requests at once), RESYSTANCE changes the game:

  • 99% Less Paperwork: The database stops filling out forms for almost every single book.
  • 50% Faster Cleanup: The "Cleanup Crew" finishes its job in half the time.
  • 75% More Throughput: The library can process way more customers (writes) because the shelves are being organized so efficiently.
  • No Rebuilding: The best part? They didn't have to rebuild the library or buy new trucks. They just gave the existing crew better tools.

Summary in One Sentence

RESYSTANCE is a clever software upgrade that lets database "cleanup crews" sort and organize data directly inside the operating system's brain, skipping the slow, boring paperwork that usually slows everything down, making the database run as fast as the hardware actually allows.