arXiv:2611.06461cs.OSNov 2026

Manuscript Offprint

arXiv:2611.06461

eBPF-Driven Adaptive Lifetime-Aware Data Placement for Shared FDP SSDs

Hajin Moon, Taewan Noh, Chaeeun Yoon, Jeonghun Lee, Junyoung Han, Joo-Young Hwang, Youngjae Kim

Hajin Moon¹, Taewan Noh¹, Chaeeun Yoon¹, Jeonghun Lee¹, Junyoung Han², Joo-Young Hwang², Youngjae Kim¹

¹Sogang University, Seoul, Korea ²Samsung Electronics Co.

Abstract—NVMe Flexible Data Placement (FDP) reduces SSD write amplification by separating data with different lifetimes to minimize garbage collection (GC) copying. However, on shared servers, multiple tenants generate more lifetime classes than the available placement handles. Existing approaches rely on static mappings or application-specific knowledge, failing to capture runtime lifetimes and adapt to changing workloads. The challenge is to identify which data die together and determine which classes should be separated to maximize GC savings under a limited handle budget. We present eFDP, an eBPF-based system that automatically learns data lifetimes and manages FDP placement for unmodified applications on a stock Linux kernel. By tracking writes and invalidations, eFDP identifies lifetime classes and estimates the GC copying saved by separating them. It first assigns each tenant a handle, then allocates the remaining handles to the separations offering the greatest savings. It also re-plans placement when active tenants change. With four database tenants on an emulated FDP SSD, eFDP eliminates twice as much excess write amplification as tenant-level isolation and improves every writing tenant's throughput by 19–23%. On an enterprise FDP SSD, given RocksDB's levels, it matches a manually optimized placement using three handles instead of five. After a tenant switch, eFDP re-plans within seven minutes and maintains 25% lower write amplification than the original layout even after an hour.

Index Terms—Flexible Data Placement, NVMe, eBPF, write amplification, multi-tenant storage

I. INTRODUCTION

How an SSD groups data decides how much garbage collection (GC) copies. Flash cannot be overwritten in place, so an SSD writes every update to a fresh page and leaves the old copy stale, or dead. GC reclaims dead pages only by erasing a whole block, after copying out every page still alive [1]. These copies raise the write amplification factor (WAF), the flash writes per host write [2], [3], and take flash time from every application on the SSD [4], [5]. Grouping data that die together lets their blocks empty on their own [6].

NVMe Flexible Data Placement (FDP), part of the standard SSD interface, hands this grouping to the host, but only through a few handles, write destinations the SSD keeps open [7]. Each write names a handle, and writes to different handles land in different blocks [8], [9]. The devices in prior FDP studies [10], [11] and ours offer only eight at most. With more kinds of data than handles, some must share one, and FDP pays off only when the data sharing a handle also die together. The question is therefore who decides which data share each handle, and with what knowledge.

Motivation. Today, a person or a fixed rule decides in advance by drawing a map of which data share a handle: manual assignment. Its limits show most clearly on a shared node, a server where an operator runs several tenants, each an application with its files, on one SSD without changing their code. There, each existing route covers only part of the decision. A developer can build a map into one application, as the RocksDB key-value store does. However, on Linux's common file systems, ext4 and XFS, that map reaches the SSD only through raw device commands that bypass the page cache, the kernel's in-memory copy of file data. An operator can give each tenant a handle of its own, but only in a patched kernel and from a map written by hand [11]. A flash file system such as F2FS, in turn, applies one fixed rule to all tenants, whatever their data's lifetimes [12].

Section III measures three reasons these routes fall short. First, a lifetime-aware map, which groups data by how long they live, needs a costly study. A lifetime-blind map, drawn without one, gains little and can even raise WAF. Delivering the map from user space also costs the page cache, which made RocksDB's reads 8× slower. Second, lifetimes also differ inside a tenant, so one handle per tenant cannot separate them. Third, even a lifetime-aware map goes stale once the writing tenants change.

Placement on a shared node is therefore not simply labeling data hot or cold, but an allocation problem. The tenants' data fall into more lifetime classes, groups of writes that die at about the same time, than there are handles. Someone must decide which get their own handle. That decision needs two facts that exist only at run time: which data die together, and how much GC copying each separation saves on this device, next to these tenants. No person sees both: a developer sees one application, an operator only whole tenants.

Our Insight. The kernel already sees what both facts rest on, because every write and every death passes through it. Data die when they are overwritten or discarded, when the file system tells the SSD they were deleted. By charging each death to the file, thread, and tenant that wrote the data, the kernel can learn which data die together. The share of each class still alive when GC reclaims its block then estimates how much separating that class would save. Extended Berkeley Packet Filter (eBPF), small verified programs run inside an unmodified kernel, lets us observe and attribute these deaths.

Our Solution. Building on this insight, we present eFDP

Corresponding author.

Figure

(a) FDP inside the SSD

Figure

(b) The Linux write path

Fig. 1: How a write's handle is set inside the SSD (a), and where on the Linux write path (b). (a) The PID holds a placement handle (PHNDL) and a reclaim group (RGID) (①). The controller maps PHNDL to a reclaim unit handle (RUH), our handle (②), and RGID to a group (⑧). The data land in that handle's open RU (④). (b) The routes that can set a write's stream today (gray), and where eFDP sets it (blue).

(Figure 5), which performs the allocation for unmodified applications on a stock Linux kernel, neither patched nor rebuilt. It only loads a small module. To our knowledge, it is the first FDP placement policy that dynamically learns lifetime classes from the deaths an unmodified kernel observes.

Its three components answer those three reasons in turn:

① The eFDP Monitor replaces the lifetime study (Section IV-B). Its eBPF programs label each write by file, thread, and, in a key-value store, the merges its data passed through. They observe when the write dies, and set its handle on the normal I/O path, keeping the page cache.

② The eFDP Planner turns these measurements into a layout, which classes share which handle (Section IV-C). It gives each tenant a handle first and spends the remaining handles where separation saves the most GC copying.

③ The eFDP Loader keeps the layout current (Section IV-D). It installs each layout so that no write ever sees half of one, and plans again when the set of tenants that write changes.

Experiments on an FEMU-emulated [13] and an enterprise FDP SSD confirm all three answers. First, labels inferred from kernel events alone did as well as exact labels from a patched RocksDB. Second, with four databases, eFDP removed 45% of the excess WAF, the extra writes GC adds, twice the 22% that isolation, one handle per tenant, remove. Every writing tenant also ran 19–23% faster than under isolation. The same number of handles split differently removed only 37%, so where handles go matters as much as how many. Third, on the emulated SSD, after a tenant switch, eFDP installed a new layout within about 7 min with no one redrawing the map. An hour later WAF stayed a quarter below the old layout's (2.51 vs. 3.35). This costs 8–9% more CPU per small write, slowing only CPU-bound writers.

References (51)