DOI QR코드

DOI QR Code

Performance Analysis of Flash Memory SSD with Non-volatile Cache for Log Storage

비휘발성 캐시를 사용하는 플래시 메모리 SSD의 데이터베이스 로깅 성능 분석

  • 홍대용 (성균관대학교 전자전기컴퓨터공학) ;
  • 오기환 (성균관대학교 전자전기컴퓨터공학) ;
  • 강운학 (성균관대학교 전자전기컴퓨터공학) ;
  • 이상원 (성균관대학교 컴퓨터공학과)
  • Received : 2014.09.17
  • Accepted : 2014.11.05
  • Published : 2015.01.15

Abstract

In a database system, updates on pages that are made by a transaction should be stored in a secondary storage before the commit is complete. Generic secondary storages have volatile DRAM caches to hide long latency for non-volatile media. However, as logs that are only written to the volatile DRAM cache don't ensure durability, logging latency cannot be hidden. Recently, a flash SSD with capacitor-backed DRAM cache was developed to overcome the shortcoming. Storage devices, like those with a non-volatile cache, will increase transaction throughput because transactions can commit as soon as the logs reach the cache. In this paper, we analyzed performance in terms of transaction throughput when the SSD with capacitor-backed DRAM cache was used as log storage. The transaction throughput can be improved over three times, by committing right after storing the logs to the DRAM cache, rather than to a secondary storage device. Also, we showed that it could acquire over 73% of the ideal logging performance with proper tuning.

데이터베이스 시스템에서, 트랜잭션이 수행한 변경 사항은 커밋 전 2차 저장장치에 보존되어야 한다. 일반적 2차 저장장치는 비휘발성 미디어의 처리 지연을 보완하기 위해 휘발성 DRAM 캐시를 가지고 있다. 그러나 휘발성 DRAM에만 쓰여지는 로그들은 영구성을 보장할 수 없으므로, DRAM 캐시에서 저장매체로 로그를 쓰는 지연 시간을 감출 수 없다. 최근 이러한 단점 극복을 목적으로 DRAM 캐시에 커패시터를 장착한 플래시 SSD가 등장하였다. 이러한 비휘발성 캐시를 가지는 저장 장치는 DRAM 캐시에 로그를 쓰고 즉시 커밋 가능하므로, 커밋 대기를 줄이고 트랜잭션 처리량을 증가시킬 것이다. 본 논문은 커패시터 백업 캐시를 사용한 SSD를 로그 저장소로 사용한 경우 데이터베이스의 트랜잭션 처리 성능에 대해 실험 및 분석 한다. 로그를 낸드 플래시에 저장하지 않고 DRAM 캐시에 저장한 직후 커밋 함으로써, 3배 이상의 처리량 향상이 가능하다. 또한 적절한 튜닝을 거친 후 이상적 로그 성능의 73% 이상을 보인다.

Keywords

Acknowledgement

Grant : 스마트TV 2.0 소프트웨어 플랫폼

Supported by : 한국연구재단, 한국산업기술평가관리원

References

  1. M. Stonebraker, S. Madden, D. J. Abadi, S. Harizopoulos, N. Hachem, and P. Helland, "The End of an Architectural Era (It's Time for a Complete Rewrite)," Proc. of the VLDB '07, pp. 1150-1160, 2007.
  2. S. W. Lee, B. Moon, C. Park, J. M. Kim, and S. W. Kim, "A Case for Flash Memory SSD in Enterprise Database Applications," Proc. of the ACM SIGMOD '08, pp. 1075-1086, 2008.
  3. M. Noblitt. (2001, Jun 19). Proposal for New Flush Cache Command [Online], Available: http://www.t13.org (downloaded 2014, Sep. 2)
  4. W. H. Kang, S. W. Lee, B. Moon, Y. S. Kee, and M. Oh, "Durable Write Cache in Flash Memory SSD for Relational and NoSQL Databases," Proc. of the ACM SIGMOD '14, pp. 529-540, 2014.
  5. J. Yang, D. B. Minturn, and F. Hady, "When Poll is Better than Interrupt," Proc. of the USENIX FAST '12, pp. 25-31, 2012.
  6. S. W. Lee, B. Moon, and C. Park, "Advances in Flash Memory SSD Technology for Enterprise Database Applications," Proc. of the ACM SIGMOD '09, pp. 863-870, 2009.
  7. Z. Liu, B. Wang, P. Carpenter, D. Li, J. S. Vetter, and W. Yu, "PCM-Based Durable Write Cache for Fast Disk I/O," Proc. of the MASCOT '12, pp. 451- 458, 2012.
  8. A. M. Caulfield, A. De, J. Coburn, T. I. Mollov, R. K. Gupta, and S. Swanson, "Moneta: A Highperformance Storage Array Architecture for Nextgeneration, Non-volatile Memories," Proc. of the MICRO '10, pp. 385-395, 2010.
  9. Transaction Processing Performance Council (TPC). Top Ten Performance Results Version 5 Results [Online], Available: http://www.tpc.org
  10. Transaction Processing Performance Council (TPC). (1994, Jun 7). TPC BENCHMARKTM B [Online], Available: http://www.tpc.org (downloaded 2014, May. 18)
  11. D. J. DeWitt, R. H. Katz, F. Olken, L. D. Shapiro, M. R. Stonebraker, and D. A. Wood, "Implementation techniques for main memory database systems," Proc. of the ACM SIGMOD '84, pp. 1-8, 1984.
  12. A. Foong, B. Veal, and F. Hady, "Towards SSDReady Enterprise Platforms," ADMS Workshop, 2010.
  13. Y. J. Yu, D. I. Shin, W. Shin, N. Y. Song, J. W. Choi, H. S. Kim, H. Eom, and H. Y. Yeom, "Optimizing the Block I/O Subsystems for Fast Storage Devices," ACM Transactions on Computer Systems, Vol. 32, No. 2, pp. 6:1-6:48, 2014.