Writes hurt
Authors:
Open Access
- 7 November 2022
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 110-125
Abstract
Intel® Optane™ DC Persistent Memory resides on the memory bus and approaches DRAM in access latency. One avenue for its adoption is to employ it in place of persistent storage; another is to use it as a cheaper and denser extension of DRAM. In pursuit of the latter goal, we present the design of a volatile Optane NVRAM cache as a component in a storage engine underlying MongoDB. The primary innovation in our design is a new cache admission policy. We discover that on Optane NVRAM, known for its limited write throughput, the presence of writes disproportionately affects the throughput of reads, much more so than on DRAM. Therefore, an admission policy that indiscriminately admits new data (and thus generates writes), severely limits the rate of data retrieval and results in exceedingly poor performance for the cache overall. We design an admission policy that balances the rate of admission with the rate of lookups using dynamically observed characteristics of the workload. Our implementation outperforms OpenCAS (an off-the-shelf Optane-based block cache) in all cases, and Intel Memory Mode in cases where the database size exceeds the available NVRAM. Our cache is decoupled from the rest of the storage engine and uses generic metrics to guide its admission policy; this design can be easily adopted in other systems.Keywords
This publication has 16 references indexed in Scilit:
- Efficient cache resource aggregation using adaptive multi-level exclusive caching policiesFuture Generation Computer Systems, 2018
- Unimem2017
- ThermostatACM SIGPLAN Notices, 2017
- A Cache Management Scheme for Efficient Content Eviction and Replication in Cache NetworksIEEE Access, 2017
- Data tiering in heterogeneous memory systems2016
- Exploiting Program Semantics to Place Data in Hybrid Memory2015
- AMC: an adaptive multi‐level cache algorithm in hybrid storage systemsConcurrency and Computation: Practice and Experience, 2015
- SSD bufferpool extensions for database systemsProceedings of the VLDB Endowment, 2010
- Benchmarking cloud serving systems with YCSB2010
- On the existence of a spectrum of policies that subsumes the least recently used (LRU) and least frequently used (LFU) policies1999