Oracle smart flash cache
Upcoming SlideShare
Loading in...5

Oracle smart flash cache



Introduction to oracle 11gR2 smart flash cache new feature. And it includes some real production testing results.

Introduction to oracle 11gR2 smart flash cache new feature. And it includes some real production testing results.



Total Views
Views on SlideShare
Embed Views



17 Embeds 3,638 2623 881 65
url_unknown 13 13 12 7 6 3 3 3 2 2 2 1 1 1


Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
Post Comment
Edit your comment

Oracle smart flash cache Oracle smart flash cache Presentation Transcript

  • Oracle Smart Flash Cache -- Fan XiangrongWednesday, June 22, 2011
  • Agenda What’s SSD Oracle Smart Flash Cache POC Result Exadata Smart Flash Wiki Q&AWednesday, June 22, 2011
  • What’s SSDWednesday, June 22, 2011
  • What’s SSD SSD type SLC & MLC Cell -> page -> block -> Plane NAND + Flash Controller + RAMWednesday, June 22, 2011
  • SSD Headache & Solutions SSD write amplification SSD wear off Write to new free blocks Wiper TRIM Delay write & Combine WriteWednesday, June 22, 2011
  • Oracle Smart Flash Cache It’s a new feature of oracle 11gR2 The feature only exists on Solaris & Oracle Linux The idea is to use flash card as the second cache of oracle database Move blocks from memory to flash card when aging out blocks Look for blocks in flash cache before issue physical IO It only keep clean blocks Flash Cards Corruption or Crash doesn’t crash the database, oracle will disable the second cacheWednesday, June 22, 2011
  • Lifecycle of a data blockWednesday, June 22, 2011
  • How to setup Two parameters db_flash_cache_file: the path of the flash cache file. It can be a volume name,a file or an ASM disk group db_flash_cache_size: the size of flash cache, it can be dynamically set. Set it to 0 disables the cache (compatible=11.2 is not required)Wednesday, June 22, 2011
  • Which Database is suitable for this high IOPS database, IO is the bottleneck db file sequential read is the top wait event and uses most of CPU v$db_cache_advice indicates that expands db_cache_size helps reducing physical readsWednesday, June 22, 2011
  • Smart Flash Cache Statistics flash cache inserts physical read flash cache hits (part of physical reads) db flash cache single block physical reads Check how many flash cache blocks are in use SELECT SUM (CASE WHEN b.status LIKE flash% THEN 1 END) flash_blocks, SUM (CASE WHEN b.status LIKE flash% THEN 0 else 1 END) cache_blocks, count(*) total_blocks FROM v$bh b SELECT SUM (CASE WHEN b.status LIKE flash% THEN 1 END)*8/1024/1024 "flash_blocks(GB)", SUM (CASE WHEN b.status LIKE flash% THEN 0 else 1 END)*8/1024/1024 "cache_blocks(GB)", count(*) total_blocks FROM v$bh bWednesday, June 22, 2011
  • POC Plan Prepare a 1+1 VCS cluster with Flash Cards in the same path & same size Flash cache file is built as standard vxvm using striped volume Stage the two parameters in init.ora Failover database to this 1+1 vcs cluster After database startup, the feature is enabledWednesday, June 22, 2011
  • POC Result -- IPTR2Wednesday, June 22, 2011
  • POC Result -- UTC14Wednesday, June 22, 2011
  • POC Result -- User11Wednesday, June 22, 2011
  • Exadata Smart Flash Cache Exadata smart flash cache & oracle smart flash cache are totally different Exadata cache is in storage layer Exadata cache is a write-through cache It’s more like facebook flashcache tool for mysqlWednesday, June 22, 2011
  • Wiki! id=11g_smart_flash_cache systems-hardware-architecture/oracle-db- smart-flash-cache-175588.pdf 2009/11/24/using-the-oracle-11gr2-database- flash-cache.htmlWednesday, June 22, 2011