Using a byte-addressable SSD as part of main memory could expand the capacity available to data-intensive applications, but conventional paging can make that expansion costly. When an application accesses data outside DRAM, the operating system typically moves an entire page from storage into memory—even if the program needs only a cache line. FlatFlash, a research system, explores a different approach: let applications access SSD-backed data directly at byte granularity, while promoting selected pages to DRAM when faster access is valuable.
The design connects memory management, storage access and persistence. Its practical significance lies in how it responds to workload behavior: low-reuse data can remain on the SSD, while frequently accessed pages can be placed in host DRAM.
Why paging can limit SSD-backed memory
Paging provides a familiar way to treat an SSD as extended memory. A page fault occurs when an application accesses a page that is not in DRAM; the operating system then retrieves the page and updates the mapping. This process adds delay and moves data whether the application needs all of the page or only a small part.
For workloads with large working sets and limited DRAM, repeated page transfers can also cause thrashing: pages are brought into memory and evicted before they receive enough reuse to justify the movement. Random accesses to large datasets are particularly challenging because whole-page transfers may generate substantial extra I/O traffic.
FlatFlash builds on the possibility of exposing SSD controller memory through PCIe memory-mapped I/O. Its unified address translation allows a virtual page to map to either host DRAM or SSD-backed memory. Rather than faulting and migrating every SSD-resident page before access, the processor can issue memory requests directly to the SSD.
How FlatFlash combines SSD access and DRAM
NAND flash itself is accessed in page units, so a byte-oriented interface needs an intermediary. In FlatFlash, DRAM inside the SSD controller acts as a cache for flash pages. The controller serves a requested cache line from that cache when available; on a miss, it retrieves the relevant page from flash and supplies the requested data. Writes update the cached page, with dirty data written back through the SSD’s garbage-collection process.
This arrangement does not make NAND physically byte-addressable. Instead, it presents a byte-granular access path to software while the controller manages the underlying page-level flash operations. The result is a unified memory interface intended to make data placement across DRAM and SSD less dependent on explicit application-level changes.
Adaptive page promotion avoids unnecessary movement
Direct SSD access can avoid moving cold pages, but DRAM remains faster for frequently used data. FlatFlash therefore uses adaptive page promotion: it tracks page accesses and promotes pages that show sufficient reuse to host DRAM. Its threshold adjusts in response to observed access patterns, aiming to promote more readily when reuse is high and less often when it is low.
Promotion itself takes time, and application writes during a transfer must not leave stale or inconsistent copies. FlatFlash addresses this with a promotion look-aside buffer in the host bridge. The buffer tracks pages being promoted and directs requests to the current copy of each cache line until the transfer completes. Multiple promotions can proceed concurrently, according to the system design.
For engineers evaluating the approach, the central distinction is between accessing a page and placing it in DRAM. A conventional paging path moves a page before it can be accessed; FlatFlash can serve accesses directly from SSD-backed memory and reserve promotion for pages where repeated use may justify the transfer. In the reported evaluation, this approach improved performance on several memory-intensive workloads compared with the evaluated unified memory-mapped system, with gains depending on workload and configuration.
Byte-granular persistence changes software design options
FlatFlash also explores byte-granular data persistence. Conventional storage interfaces commonly persist data through block operations, even when a software update affects only a small metadata field or log record. The system instead uses PCIe memory operations and battery-backed DRAM in the SSD controller to support durable, fine-grained writes.
Persistence still requires coordination. Data held in processor caches must be flushed, and persistent pages must not be promoted into volatile host DRAM. FlatFlash uses cache-line flushes and a persistent-page indicator in the mapping to address these issues.
File systems and databases
In file systems, small changes to structures such as inodes can trigger larger persistence operations under block-oriented designs. The paper’s case studies apply byte-granular persistence to metadata, reporting lower metadata persistence overhead for evaluated file systems.
Transactional databases offer another opportunity. A centralized write-ahead log can become a point of contention as transaction activity scales. With fine-grained persistent writes, FlatFlash explores per-transaction logging, allowing log records to be written independently rather than relying on a single shared buffer. The reported throughput benefit varied across the database workloads evaluated.
What the results mean for system designers
The authors evaluated FlatFlash using an SSD emulator and a range of applications, including graph analytics, a key-value store, file systems and a transactional database. They reported improvements of up to 2.3× for memory-intensive applications, up to 2.8× in tail latency for a latency-critical workload, and up to 3.0× in transactional database throughput compared with the evaluated unified memory-storage system. These are results for the paper’s configurations, not general performance guarantees for deployed SSDs.
For industrial and infrastructure system designers, the broader lesson is to match data placement and transfer granularity to access behavior. Byte-addressable SSD access may reduce unnecessary page movement for low-reuse data, while adaptive promotion can use DRAM for hot pages. Fine-grained persistence may also create options for metadata and transaction logging. Realizing these benefits requires hardware and systems support—including suitable SSD controller memory, interconnect behavior, address translation and consistency mechanisms—so the approach is best understood as a systems architecture, not simply a change to an SSD interface.
Conclusion
FlatFlash presents a unified memory-storage hierarchy in which SSD-backed data can be accessed directly and selectively promoted to DRAM. Its combination of byte-granular access, adaptive page placement and fine-grained persistence addresses limitations associated with moving whole pages and persisting small updates through block interfaces. For technical decision-makers, the key implication is that extending memory capacity effectively depends not only on storage performance, but also on how the system manages access granularity, reuse and durability.