You are here
How Could a Flash Cache Degrade Database Performance Rather Than Improve It? Lessons to be Learnt from Multi-Tiered Storage
Hyojun Kim, IBM Almaden Research Center; Ioannis Koltsidas and Nikolas Ioannou, IBM Research Zürich; Sangeetha Seshadri, Paul Muench, Clement L. Dickey, and Lawrence Chiu, IBM Almaden Research Center
Contrary to intuition, host-side flash caches can degrade performance rather than improve it. With flash write operations being expensive, cache hit-rates need to be relatively high to offset the overhead of writes. Otherwise, the end-to-end performance could be worse with flash cache.
We believe that some lessons learnt from multi-tiered storage systems can be applied to flash cache management. Multi-tiered storage systems migrate data based on long-term I/O monitoring, carefully ensuring that the background data migration does not adversely affect foreground I/O performance.
To test our hypothesis, we designed and implemented a new flash cache, named Scalable Cache Engine (SCE). In SCE, cache populations occur in the background in 1 MiB sized fragment units rather than the typical storage I/O size (4 KiB). By doing so, we warm-up the flash cache much faster while also benefiting from a prefetching effect that is very effective for improving cache hit-rates when the workload demonstrates strong spatial locality. Additionally, large, aligned writes to flash are much more efficient than small random ones and therefore reduce the cache population overhead. We show that our approach successfully tackles several issues of existing flash cache management approaches and works well for OLTP database workloads. For instance, the throughput under a TPC-E workload actually degraded by 79.1% with flashcache, a popular open-source solution, compared to the baseline performance. For the same conditions, SCE could achieve a 301.7% improved throughput.
Open Access Media
USENIX is committed to Open Access to the research presented at our events. Papers and proceedings are freely available to everyone once the event begins. Any video, audio, and/or slides that are posted after the event are also free and open to everyone. Support USENIX and our commitment to Open Access.
author = {Hyojun Kim and Ioannis Koltsidas and Nikolas Ioannou and Sangeetha Seshadri and Paul Muench and Clement L. Dickey and Lawrence Chiu},
title = {How Could a Flash Cache Degrade Database Performance Rather Than Improve It? Lessons to be Learnt from {Multi-Tiered} Storage},
booktitle = {2nd Workshop on Interactions of NVM/Flash with Operating Systems and Workloads (INFLOW 14)},
year = {2014},
address = {Broomfield, CO},
url = {https://www.usenix.org/conference/inflow14/workshop-program/presentation/kim},
publisher = {USENIX Association},
month = oct
}
connect with us