An Oracle White Paper September 2010. Oracle Database Smart Flash Cache



Similar documents
An Oracle White Paper May Exadata Smart Flash Cache and the Oracle Exadata Database Machine

An Oracle White Paper July Introducing the Oracle Home User in Oracle Database 12c for Microsoft Windows

An Oracle White Paper July Accelerating Database Infrastructure Using Oracle Real Application Clusters 11g R2 and QLogic FabricCache Adapters

Running Oracle s PeopleSoft Human Capital Management on Oracle SuperCluster T5-8 O R A C L E W H I T E P A P E R L A S T U P D A T E D J U N E

An Oracle Communications White Paper December Serialized Asset Lifecycle Management and Property Accountability

G Cloud 7 Pricing Document

An Oracle White Paper January Using Oracle's StorageTek Search Accelerator

An Oracle White Paper February Oracle Data Integrator 12c Architecture Overview

SUN ORACLE DATABASE MACHINE

G Cloud 7 Pricing Document

An Oracle White Paper March Oracle s Single Server Solution for VDI

An Oracle Technical White Paper June Oracle VM Windows Paravirtual (PV) Drivers 2.0: New Features

Best Practices for Optimizing Storage for Oracle Automatic Storage Management with Oracle FS1 Series Storage ORACLE WHITE PAPER JANUARY 2015

An Oracle White Paper September Oracle Database and the Oracle Database Cloud

An Oracle Benchmarking Study February Oracle Insurance Insbridge Enterprise Rating: Performance Assessment

Performance with the Oracle Database Cloud

An Oracle White Paper May Distributed Development Using Oracle Secure Global Desktop

An Oracle White Paper November Oracle Business Intelligence Standard Edition One 11g

An Oracle White Paper June High Performance Connectors for Load and Access of Data from Hadoop to Oracle Database

THE NEW BUSINESS OF BUSINESS LEADERS. Hiring and Onboarding

An Oracle White Paper November Achieving New Levels of Datacenter Performance and Efficiency with Software-optimized Flash Storage

INCREASING EFFICIENCY WITH EASY AND COMPREHENSIVE STORAGE MANAGEMENT

An Oracle White Paper October Oracle Database Appliance

A Framework for Implementing World-Class Talent Management. The highest performing businesses are re-focusing on talent management

An Oracle White Paper February, Oracle Database In-Memory Advisor Best Practices

An Oracle White Paper June, Provisioning & Patching Oracle Database using Enterprise Manager 12c.

An Oracle White Paper October Realizing the Superior Value and Performance of Oracle ZFS Storage Appliance

An Oracle White Paper August Oracle Database Auditing: Performance Guidelines

Oracle Utilities Mobile Workforce Management Benchmark

An Oracle White Paper August Oracle VM 3: Server Pool Deployment Planning Considerations for Scalability and Availability

An Oracle White Paper November Hybrid Columnar Compression (HCC) on Exadata

An Oracle White Paper August Automatic Data Optimization with Oracle Database 12c

An Oracle White Paper July Oracle Linux and Oracle VM Remote Lab User Guide

SUN STORAGE F5100 FLASH ARRAY

ORACLE VM MANAGEMENT PACK

Oracle Real-Time Scheduler Benchmark

An Oracle White Paper August Higher Security, Greater Access with Oracle Desktop Virtualization

An Oracle White Paper September Advanced Java Diagnostics and Monitoring Without Performance Overhead

October Oracle Application Express Statement of Direction

An Oracle White Paper July Oracle Desktop Virtualization Simplified Client Access for Oracle Applications

March Oracle Business Intelligence Discoverer Statement of Direction

Top Ten Reasons for Deploying Oracle Virtual Networking in Your Data Center

An Oracle White Paper September SOA Maturity Model - Guiding and Accelerating SOA Success

SUN ORACLE EXADATA STORAGE SERVER

Driving Down the High Cost of Storage. Pillar Axiom 600

An Oracle White Paper October BI Publisher 11g Scheduling & Apache ActiveMQ as JMS Provider

An Oracle White Paper January A Technical Overview of New Features for Automatic Storage Management in Oracle Database 12c

Managed Storage Services

An Oracle White Paper April, Effective Account Origination with Siebel Financial Services Customer Order Management for Banking

ORACLE OPS CENTER: VIRTUALIZATION MANAGEMENT PACK

Virtual Compute Appliance Frequently Asked Questions

APPLICATION MANAGEMENT SUITE FOR ORACLE E-BUSINESS SUITE APPLICATIONS

Oracle s BigMachines Solutions. Cloud-Based Configuration, Pricing, and Quoting Solutions for Enterprises and Fast-Growing Midsize Companies

An Oracle Technical Article November Certification with Oracle Linux 6

An Oracle White Paper May 2011 BETTER INSIGHTS AND ALIGNMENT WITH BUSINESS INTELLIGENCE AND SCORECARDS

ORACLE VIRTUAL DESKTOP INFRASTRUCTURE

Oracle TimesTen In-Memory Database on Oracle Exalogic Elastic Cloud

Oracle Utilities Customer Care and Billing Release Utility Reference Model Process Customer Request For Literature and Forms

APPLICATION MANAGEMENT SUITE FOR ORACLE E-BUSINESS SUITE APPLICATIONS

The Yin and Yang of Enterprise Project Portfolio Management and Agile Software Development: Combining Creativity and Governance

Driving the Business Forward with Human Capital Management. Five key points to consider before you invest

An Oracle White Paper September Oracle WebLogic Server 12c on Microsoft Windows Azure

An Oracle White Paper June, Enterprise Manager 12c Cloud Control Application Performance Management

An Oracle White Paper November Leveraging Massively Parallel Processing in an Oracle Environment for Big Data Analytics

Contract Lifecycle Management for Public Sector A Procure to Pay Management System

An Oracle White Paper June How to Install and Configure a Two-Node Cluster

An Oracle White Paper November Backup and Recovery with Oracle s Sun ZFS Storage Appliances and Oracle Recovery Manager

SUN ORACLE DATABASE MACHINE

An Oracle Technical Article March Certification with Oracle Linux 7

An Oracle White Paper June Security and the Oracle Database Cloud Service

Query Acceleration of Oracle Database 12c In-Memory using Software on Chip Technology with Fujitsu M10 SPARC Servers

Oracle Cloud Platform. For Application Development

Primavera Unifier Integration Overview: A Web Services Integration Approach O R A C L E W H I T E P A P E R F E B R U A R Y

Oracle Flash Storage System QoS Plus Operation and Best Practices ORACLE WHITE PAPER DECEMBER 2015

An Oracle White Paper February Integration with Oracle Fusion Financials Cloud Service

Oracle Fusion Applications Splitting Topology from Single to Multiple Host Servers

An Oracle White Paper February Oracle Human Capital Management: Leadership that Drives Business Value. How HR Increases Value

Big Data and Natural Language: Extracting Insight From Text

ORACLE S PRIMAVERA CONTRACT MANAGEMENT, BUSINESS INTELLIGENCE PUBLISHER EDITION

ORACLE INFRASTRUCTURE AS A SERVICE PRIVATE CLOUD WITH CAPACITY ON DEMAND

An Oracle White Paper February Rapid Bottleneck Identification - A Better Way to do Load Testing

An Oracle White Paper April How to Install the Oracle Solaris 10 Operating System on x86 Systems

Oracle Financial Management Analytics

An Oracle White Paper December Exadata Smart Flash Cache Features and the Oracle Exadata Database Machine

How To Use An Org.Org Cloud System For A Business

An Oracle White Paper December Tutor Top Ten List: Implement a Sustainable Document Management Environment

An Oracle White Paper June Creating an Oracle BI Presentation Layer from Imported Oracle OLAP Cubes

How To Use An Orgs.Org Database With An Orgorora Cloud Management Pack For Database (For Cloud)

The new Manage Requisition Approval task provides a simple and user-friendly interface for approval rules management. This task allows you to:

Minutes on Modern Finance Midsize Edition

An Oracle White Paper June Oracle Database Firewall 5.0 Sizing Best Practices

APPLICATION MANAGEMENT SUITE FOR SIEBEL APPLICATIONS

An Oracle White Paper June Cutting Cost through Consolidation

An Oracle Strategy Brief May No Limits: Enabling Rating without Constraints

An Oracle White Paper November Knowledge-Infused Customer Relationship Management: A Game-Changing Investment for Customer Support

Transcription:

An Oracle White Paper September 2010 Oracle Database Smart Flash Cache

Introduction Oracle Database 11g Release 2 introduced a new database feature: Database Smart Flash Cache. This feature is available on Solaris and Oracle Enterprise Linux and allows customers to increase the effective size of the Oracle database buffer cache without adding more main memory to the system. For transaction-based workloads, Oracle database blocks are normally loaded into a dedicated shared memory area in main memory called the System Global Area (SGA). Database Smart Flash Cache allows the database buffer cache to be expanded beyond the SGA in main memory to a second level cache on flash memory. The Sun Storage F5100 Flash Array and the Sun Flash Accelerator F20 PCIe Card provide a natural fit for Oracle Database Smart Flash Cache and offer an excellent opportunity for end users to take advantage of this new functionality. Online Transaction Processing (OLTP) environments are expected to benefit from this technology. It is appropriate for new Oracle Database deployments with IO-intensive workloads as well as existing environments with main memory constraints and IO-bound applications. Benefits can include both increased transaction throughput and improved application response times. Oracle Database environments with the potential to make effective use of this technology include: workloads with repeated short transactions where many users access the same data, storage systems that exhibit intensive disk read activity, and systems under heavy main memory pressure that prevents more memory being allocated to the SGA buffer cache. This feature is expected to primarily benefit read-mostly and read-only workloads. It is also supported in Real Application Cluster (RAC) environments Database Smart Flash Cache can be applied to individual RAC nodes as required.

Oracle s Database Smart Flash Cache Over many years the performance of spinning disk-based storage devices has not improved significantly. That situation has changed dramatically thanks to flash-based storage devices. For instance, 4 milliseconds can be considered a representative response time for small spinning-disk reads. Flash-based devices can deliver the same read in 0.4 milliseconds, an order of magnitude improvement in the response time. Oracle s new Database Smart Flash Cache feature leverages this I/O breakthrough offered by flash-based storage devices. Oracle s Database Smart Flash Cache functions as a victim cache, which means that it stores clean (unmodified) database blocks that have been evicted from the SGA buffer cache to make room for other blocks. If a block selected for eviction has been modified, the dirty block is first written to disk by one of the database writer (DBWR) processes, then it is written to the Database Smart Flash Cache. Blocks can later be retrieved from the Database Smart Flash Cache and returned to the SGA as required. If a block cannot be found either in the SGA buffer cache or the Database Smart Flash Cache, it will be retrieved from disk. Note that Exadata V2 Smart Flash Cache functions quite differently it is a write-through cache that brings data into flash cache on read-write disk operations, whereas Database Smart Flash Cache is a read-only cache that brings data into flash cache on buffer cache replacement. Database Smart Flash Cache behaves in a similar way to the L2ARC used by the Oracle Solaris Zettabyte File System (ZFS). How Does It Work? The lifecycle of a block looks something like this: Figure 1: Lifecycle of a data block with Database Smart Flash Cache 2

Implementation The Database Smart Flash Cache feature introduces two new init.ora parameters: DB_FLASH_CACHE_FILE, which identifies the flash device DB_FLASH_CACHE_SIZE, which specifies the amount of flash storage available to the Database Smart Flash Cache The DB_FLASH_CACHE_FILE parameter can point to a raw device (including a logical volume), a file, or an ASM disk group. Note that for raw devices, the partition being used should start at cylinder 1 rather than cylinder 0 (to avoid the disk's volume label). Here are some examples of these variables in use in an init.ora file: Identifying the file location of the Database Smart Flash Cache (which could also be a symlink to a raw device): db_flash_cache_file = "/export/home/oracle/lffile_raw Indicating that the Database Smart Flash Cache is managed by an ASM instance: db_flash_cache_file = "+dg1/lffile_asm" Specifying the size of the Database Smart Flash Cache (in this case 50 Gbytes): db_flash_cache_size = 50G A typical sizing of the Database Smart Flash Cache is two to ten times the size of SGA memory buffers. Note that header information is stored in the SGA for each flash cache buffer - 100 bytes per buffer in exclusive mode, 200 bytes per buffer in RAC mode - so the number of available SGA buffers is reduced as the Database Smart Flash Cache size increases, and the SGA size should be increased accordingly. The implementation of Database Smart Flash Cache currently only allows a single flash device to be specified. For this reason some form of volume management is necessary when using either the Sun Storage F5100 Flash Array or the Sun Flash Accelerator F20 PCIe Card. Tests based on a Sun Storage F5100 Flash Array have shown Oracle Database Automatic Storage Management (ASM) to be a better choice than a traditional volume manager. Note that the Database Smart Flash Cache is not shared across RAC nodes; it is private to each RAC instance. For that reason, each RAC instance must define its own local flash cache file path. When the flash cache is managed by ASM, a separate diskgroup is needed for the flash cache of each instance. Test Results To characterize the Database Smart Flash Cache feature, a number of tests were run using a synthetic Online Transaction Processing (OLTP) workload on a Sun SPARC Enterprise M5000 with a Sun Storage F5100 Flash Array attached. The workload simulated an environment where multiple concurrent DB users submitted transactions against a database. Under heavy load, the large number of 3

concurrent transactions generated a significant number of Input/Output operations (I/Os) to the storage sub-system. The workload included only read-only transactions and therefore only issued reads to the database. The graph in Figure 2 below shows test results when the workload was disk-bound (meaning that application throughput was limited by the number of I/Os that could be processed by the disk subsystem). As Database Smart Flash Cache was introduced and increased, throughput increased steadily up to a point where it flattened off. This knee in the throughput curve roughly corresponded to the I/Os per second (IOPS) limit for our particular flash configuration (more controllers connected to the Sun Storage F5100 Flash Array would have been needed to drive more IOPS). Had more IOPS been available, it might have been possible to drive the throughput higher. In the test environment, 8 Gbytes was set aside for the SGA buffer cache, and the dataset size totaled 72 Gbytes. Consequently, approximately 65 Gbytes of flash cache were needed to cache the data entirely (assuming that about 1 Gbyte of the SGA buffer cache was consumed by flash cache headers, and that 7 Gbytes were therefore available in the SGA buffer cache for data blocks). The graph shows that physical disk reads gradually diminished as the Database Smart Flash Cache size increased. Flash writes (which are needed to populate the Database Smart Flash Cache buffers) also diminish with more flash - with 50 Gbytes of flash storage, the majority of heavily-used buffers are already located in either the SGA or the Database Smart Flash Cache. 5.0 4.0 Relative Throughput 3.0 Transactions Disk Rd IOPS 2.0 Flash Rd IOPS Flash Wr IOPS 1.0 0.0 0 10 20 30 40 50 60 70 80 90 Oracle Database Smart Flash Cache Size (GB) Figure 2: Relationship between Throughput and Disk and Flash I/Os The final graph in Figure 3 below shows the transaction response times associated with the benchmark tests described above. In each case, the use of Database Smart Flash Cache resulted in a significant 4

response time improvement. Where the workload was significantly constrained by disk I/O and adequate Database Smart Flash Cache was assigned, the gains were very significant with response times improving almost 5 times. These results demonstrate that the vastly superior read and write performance of the Sun Storage F5100 Flash Array can lead directly to improved transaction response times for disk-constrained applications. 5.0 Transaction Response Time Improvement 4.5 4.0 3.5 3.0 2.5 2.0 1.5 1.0 0.5 0.0 0 10 20 30 40 50 60 70 Oracle Database Smart Flash Cache Size (GB) Figure 3: Response Time Improvement with Increasing Database Smart Flash Cache Size Note that benefits may vary for write-intensive workloads, and improvements are likely to be less significant. Further investigations are underway to quantify the benefits in such environments; the results will be shared in a future whitepaper. Conclusion Oracle s Database Smart Flash Cache can make a big difference to application throughput for workloads that are disk bound, particularly read-mostly or read-only workloads. Note that where an unlimited amount of main memory is available, the best result will always be achieved by caching disk blocks in the SGA buffer cache. The following guidelines offer an indication of where to expect gains from Database Smart Flash Cache: The greater the number of disk IOPS done by a workload, the bigger the benefit from Database Smart Flash Cache The benefit increases up to the point where the knee of the throughput curve is reached, after which increasing the size of flash cache offers no further benefit (the combined cache size 5

may already exceed the size of the working set for the application) Disk-bound workloads are likely to see significant improvements in transaction response times Read-mostly and read-only workloads are likely to see the greatest benefit; a pilot study is the best way to determine the potential benefit of Database Smart Flash Cache for write-intensive workloads Although Database Smart Flash Cache reduces physical disk reads, it also benefits writes because it reduces the load on the disks caused by reads, therefore leaving more IOPs available for writes Available at no additional cost, Database Smart Flash Cache on Oracle Solaris and Oracle Enterprise Linux has the potential to offer considerable benefit to users of Oracle Database 11g Release 2 with disk-bound read-mostly or read-only workloads, through the simple addition of flash storage such as the Sun Storage F5100 Flash Array or the Sun Flash Accelerator F20 PCIe Card. 6

Oracle Database Smart Flash Cache September 2010 Authors: Allan Packer Kevin Jernigan Senthil Ramanujam Oracle Corporation World Headquarters 500 Oracle Parkway Redwood Shores, CA 94065 U.S.A. Worldwide Inquiries: Phone: +1.650.506.7000 Fax: +1.650.506.7200 oracle.com Copyright 2010, Oracle and/or its affiliates. All rights reserved. This document is provided for information purposes only and the contents hereof are subject to change without notice. This document is not warranted to be error-free, nor subject to any other warranties or conditions, whether expressed orally or implied in law, including implied warranties and conditions of merchantability or fitness for a particular purpose. We specifically disclaim any liability with respect to this document and no contractual obligations are formed either directly or indirectly by this document. This document may not be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without our prior written permission. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro Devices. Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. UNIX is a registered trademark licensed through X/Open Company, Ltd. 0110