SlideShare una empresa de Scribd logo
1 de 13
Oracle database
Smart Flash Cache
Johan Louwers
Johan.Louwers@capgemini.com
Oracle Database – Smart Flash Cache

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.

Oracle Database and Flash Cache | JAN-2014 | Johan Louwers
Copyright ©2013 Capgemini. All Rights Reserved

2
Oracle Database – SGA Memory Architecture
 SGA (System Global Area)
• Java Pool
• Shared Pool
• Redo Buffer
• Large Pool
• Streams Pool
• Buffer Cache

Oracle Database and Flash Cache | JAN-2014 | Johan Louwers
Copyright ©2013 Capgemini. All Rights Reserved

3
Oracle Database – Flash Cache Lifecycle
A) Storage read
•

When a block is retrieved from the storage it is stored within
the buffer cache of the system global area.

•

When the block is deemed no longer needed it is,
traditionally, removed from the buffer cache and a new call
to the storage is done when it is needed again.

Oracle Database and Flash Cache | JAN-2014 | Johan Louwers
Copyright ©2013 Capgemini. All Rights Reserved

4
Oracle Database – Flash Cache Lifecycle
A) Storage read
•

When a block is retrieved from the storage it is stored within
the buffer cache of the system global area.

•

When the block is deemed no longer needed it is,
traditionally, removed from the buffer cache and a new call
to the storage is done when it is needed again.

B) Flash cache write
•

When using Smart Flash Cache a block is not removed
from the buffer cache however is evicted to the flash cache
instead.

Oracle Database and Flash Cache | JAN-2014 | Johan Louwers
Copyright ©2013 Capgemini. All Rights Reserved

5
Oracle Database – Flash Cache Lifecycle
A) Storage read
•

When a block is retrieved from the storage it is stored within
the buffer cache of the system global area.

•

When the block is deemed no longer needed it
is, traditionally, removed from the buffer cache and a new
call to the storage is done when it is needed again.

B) Flash cache write
•

When using Smart Flash Cache a block is not removed
from the buffer cache however is evicted to the flash cache
instead.

C) Flash cache read
•

When a block is needed again and is not available in the
buffer cache in the SGA it is retrieved (if available) from the
flash cache instead.

•

If a block is not available in the SGA buffer cache AND it is
not available in the flash cache, only then a call to the
storage is done.

Oracle Database and Flash Cache | JAN-2014 | Johan Louwers
Copyright ©2013 Capgemini. All Rights Reserved

6
Oracle Database – Flash Cache Advantages


Advantages
•

By limiting the number of IO calls to the storage the overall
performance of your database is extremely improved.

•

By limiting the load on your shared storage not only this
specific database benefits, all databases and applications
that make use benefit due to a lower overall load on the
shared storage.

Oracle Database and Flash Cache | JAN-2014 | Johan Louwers
Copyright ©2013 Capgemini. All Rights Reserved

7
Oracle Database – Flash Cache Hardware


Available hardware
•

Flash Cache is (in general) offered via one or more PCIe
cards that are seen by the operating system as a separate
device. A growing number of vendors are in the market

Oracle Database and Flash Cache | JAN-2014 | Johan Louwers
Copyright ©2013 Capgemini. All Rights Reserved

8
Oracle Database – Flash Cache Implementation


Operating system considerations
•

Generally speaking ALL PCIe flash cards will work on
almost every popular operating system including MS
Windows, Linux and Solaris.

•

The database functions used to make use of the Oracle
database Flash Cache will ONLY work on Oracle Linux and
Oracle Solaris and not on any other operating system

Oracle Database and Flash Cache | JAN-2014 | Johan Louwers
Copyright ©2013 Capgemini. All Rights Reserved

9
Oracle Database – Flash Cache Implementation


Operating system device
•

Generally a flash card will be showing as a device in /dev/
on your operating system.

•

Example of a EMC VFcache controller card on Linux:

•

Example of a EMC Vfcache card drive representation on
Linux

•

Depending on the make and model of your card you will
have to follow the specific instructions of the vendor to
ensure the card is installed on your system in the correct
manner.

Oracle Database and Flash Cache | JAN-2014 | Johan Louwers
Copyright ©2013 Capgemini. All Rights Reserved

10
Oracle Database – Flash Cache Implementation


Oracle Database implementation
•

DB_FLASH_CACHE_FILE
–

•

Should point to the location(s) of the flash device(s) to be used.

DB_FLASH_CACHE_SIZE
–

Should state the size (per location) that can be used for flash
cache.

db_flash_cache_file = /dev/raw/sda, /dev/raw/sdb, /dev/raw/sdc
db_flash_cache_size = 32G, 32G, 64G

Oracle Database and Flash Cache | JAN-2014 | Johan Louwers
Copyright ©2013 Capgemini. All Rights Reserved

11
About – Johan Louwers

Johan Louwers - Oracle
and Cloud Computing
I am spearheading innovation within
the Capgemini Group by developing
the ‘Capgemini Oracle Run’ hosting
and computing cloud and ensuring our
clients have a completely managed
enterprise IT environment.

Capgemini Expert on:
• Infrastructure Transformation
• Cloud Computing
• Oracle Technology

Contact me:
Johan.Louwers@capgemini.com
@johanlouwers
@CapgeminiOracle
http://johanlouwers.blogspot.com
http://www.capgemini.com/experts/
oracle-and-cloud-computing/johanlouwers

Oracle Database and Flash Cache | JAN-2014 | Johan Louwers
Copyright ©2013 Capgemini. All Rights Reserved

12
About Capgemini
With more than 130,000 people in 44 countries, Capgemini is one
of the world's foremost providers of consulting, technology and
outsourcing services. The Group reported 2012 global revenues
of EUR 10.3 billion.
Together with its clients, Capgemini creates and delivers
business and technology solutions that fit their needs and drive
the
results
they
want.
A
deeply
multicultural
organization, Capgemini has developed its own way of
working, the Collaborative Business Experience™, and draws on
Rightshore®, its worldwide delivery model.
Learn more about us at www.capgemini.com.

www.capgemini.com
The information contained in this presentation is proprietary.
Copyright © 2013 Capgemini. All rights reserved.
Rightshore® is a trademark belonging to Capgemini.

Más contenido relacionado

La actualidad más candente

7. accelerating performance w_flash-13-10-10
7. accelerating performance w_flash-13-10-107. accelerating performance w_flash-13-10-10
7. accelerating performance w_flash-13-10-10
Doina Draganescu
 
Advanced caching techniques with ehcache, big memory, terracotta, and coldfusion
Advanced caching techniques with ehcache, big memory, terracotta, and coldfusionAdvanced caching techniques with ehcache, big memory, terracotta, and coldfusion
Advanced caching techniques with ehcache, big memory, terracotta, and coldfusion
ColdFusionConference
 

La actualidad más candente (20)

ODA solution in-a-box
ODA solution in-a-boxODA solution in-a-box
ODA solution in-a-box
 
Ehcache Architecture, Features And Usage Patterns
Ehcache Architecture, Features And Usage PatternsEhcache Architecture, Features And Usage Patterns
Ehcache Architecture, Features And Usage Patterns
 
7. accelerating performance w_flash-13-10-10
7. accelerating performance w_flash-13-10-107. accelerating performance w_flash-13-10-10
7. accelerating performance w_flash-13-10-10
 
ODA: What's New?
ODA: What's New?ODA: What's New?
ODA: What's New?
 
Advanced caching techniques with ehcache, big memory, terracotta, and coldfusion
Advanced caching techniques with ehcache, big memory, terracotta, and coldfusionAdvanced caching techniques with ehcache, big memory, terracotta, and coldfusion
Advanced caching techniques with ehcache, big memory, terracotta, and coldfusion
 
What's So Special about the Oracle Database Appliance?
What's So Special about the Oracle Database Appliance?What's So Special about the Oracle Database Appliance?
What's So Special about the Oracle Database Appliance?
 
Ehcache3 — JSR-107 on steroids
Ehcache3 — JSR-107 on steroidsEhcache3 — JSR-107 on steroids
Ehcache3 — JSR-107 on steroids
 
Using Snap Clone with Enterprise Manager 12c
Using Snap Clone with Enterprise Manager 12cUsing Snap Clone with Enterprise Manager 12c
Using Snap Clone with Enterprise Manager 12c
 
Oracle Database appliance - Value proposition Webcast
Oracle Database appliance - Value proposition WebcastOracle Database appliance - Value proposition Webcast
Oracle Database appliance - Value proposition Webcast
 
Living with the Oracle Database Appliance
Living with the Oracle Database ApplianceLiving with the Oracle Database Appliance
Living with the Oracle Database Appliance
 
Delivering Pluggable Database as a Service
Delivering Pluggable Database as a ServiceDelivering Pluggable Database as a Service
Delivering Pluggable Database as a Service
 
IaaS for DBAs in Azure
IaaS for DBAs in AzureIaaS for DBAs in Azure
IaaS for DBAs in Azure
 
MySQL Enterprise Backup apr 2016
MySQL Enterprise Backup apr 2016MySQL Enterprise Backup apr 2016
MySQL Enterprise Backup apr 2016
 
My sql5.7 whatsnew_presentedatgids2015
My sql5.7 whatsnew_presentedatgids2015My sql5.7 whatsnew_presentedatgids2015
My sql5.7 whatsnew_presentedatgids2015
 
Distributed caching with java JCache
Distributed caching with java JCacheDistributed caching with java JCache
Distributed caching with java JCache
 
Power BI with Essbase in the Oracle Cloud
Power BI with Essbase in the Oracle CloudPower BI with Essbase in the Oracle Cloud
Power BI with Essbase in the Oracle Cloud
 
Oracle Database Appliance
Oracle Database ApplianceOracle Database Appliance
Oracle Database Appliance
 
MySQL Enterprise Backup
MySQL Enterprise BackupMySQL Enterprise Backup
MySQL Enterprise Backup
 
Architectural designs driving sql server performance and high availability
Architectural designs driving sql server performance and high availabilityArchitectural designs driving sql server performance and high availability
Architectural designs driving sql server performance and high availability
 
Deploying SOA on the Oracle Database Appliance
Deploying SOA on the Oracle Database ApplianceDeploying SOA on the Oracle Database Appliance
Deploying SOA on the Oracle Database Appliance
 

Similar a Oracle database smart flash cache

Oracle Cloud DBaaS
Oracle Cloud DBaaSOracle Cloud DBaaS
Oracle Cloud DBaaS
Arush Jain
 

Similar a Oracle database smart flash cache (20)

Effective Spark with Alluxio at Strata+Hadoop World San Jose 2017
Effective Spark with Alluxio at Strata+Hadoop World San Jose 2017Effective Spark with Alluxio at Strata+Hadoop World San Jose 2017
Effective Spark with Alluxio at Strata+Hadoop World San Jose 2017
 
Alluxio Use Cases at Strata+Hadoop World Beijing 2016
Alluxio Use Cases at Strata+Hadoop World Beijing 2016Alluxio Use Cases at Strata+Hadoop World Beijing 2016
Alluxio Use Cases at Strata+Hadoop World Beijing 2016
 
ZFS appliance
ZFS applianceZFS appliance
ZFS appliance
 
Oracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion EditionOracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion Edition
 
C6 oracles storage_strategy_from_databases_to_engineered_systems_to_cloud
C6 oracles storage_strategy_from_databases_to_engineered_systems_to_cloudC6 oracles storage_strategy_from_databases_to_engineered_systems_to_cloud
C6 oracles storage_strategy_from_databases_to_engineered_systems_to_cloud
 
Mini-Training: To cache or not to cache
Mini-Training: To cache or not to cacheMini-Training: To cache or not to cache
Mini-Training: To cache or not to cache
 
Oracle Cloud DBaaS
Oracle Cloud DBaaSOracle Cloud DBaaS
Oracle Cloud DBaaS
 
Oracle Storage a ochrana dat
Oracle Storage a ochrana datOracle Storage a ochrana dat
Oracle Storage a ochrana dat
 
Webinar: Cloud Archiving – Amazon Glacier, Microsoft Azure or Something Else?
Webinar: Cloud Archiving – Amazon Glacier, Microsoft Azure or Something Else?Webinar: Cloud Archiving – Amazon Glacier, Microsoft Azure or Something Else?
Webinar: Cloud Archiving – Amazon Glacier, Microsoft Azure or Something Else?
 
Inter connect2016 yss1841-cloud-storage-options-v4
Inter connect2016 yss1841-cloud-storage-options-v4Inter connect2016 yss1841-cloud-storage-options-v4
Inter connect2016 yss1841-cloud-storage-options-v4
 
Spark Summit EU talk by Jiri Simsa
Spark Summit EU talk by Jiri SimsaSpark Summit EU talk by Jiri Simsa
Spark Summit EU talk by Jiri Simsa
 
Spark Summit EU talk by Jiri Simsa
Spark Summit EU talk by Jiri SimsaSpark Summit EU talk by Jiri Simsa
Spark Summit EU talk by Jiri Simsa
 
Running Solr in the Cloud at Memory Speed with Alluxio
Running Solr in the Cloud at Memory Speed with AlluxioRunning Solr in the Cloud at Memory Speed with Alluxio
Running Solr in the Cloud at Memory Speed with Alluxio
 
Improving Memory Utilization of Spark Jobs Using Alluxio
Improving Memory Utilization of Spark Jobs Using AlluxioImproving Memory Utilization of Spark Jobs Using Alluxio
Improving Memory Utilization of Spark Jobs Using Alluxio
 
From cache to in-memory data grid. Introduction to Hazelcast.
From cache to in-memory data grid. Introduction to Hazelcast.From cache to in-memory data grid. Introduction to Hazelcast.
From cache to in-memory data grid. Introduction to Hazelcast.
 
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 version
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 versionOracle RAC 12c Collaborate Best Practices - IOUG 2014 version
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 version
 
Caching and JCache with Greg Luck 18.02.16
Caching and JCache with Greg Luck 18.02.16Caching and JCache with Greg Luck 18.02.16
Caching and JCache with Greg Luck 18.02.16
 
Alluxio Presentation at Strata San Jose 2016
Alluxio Presentation at Strata San Jose 2016Alluxio Presentation at Strata San Jose 2016
Alluxio Presentation at Strata San Jose 2016
 
HP flash optimized storage - webcast
HP flash optimized storage - webcastHP flash optimized storage - webcast
HP flash optimized storage - webcast
 
Oracle Database Appliance Workshop
Oracle Database Appliance WorkshopOracle Database Appliance Workshop
Oracle Database Appliance Workshop
 

Más de Johan Louwers

Multi Domain REST API routing for Data Mesh based Data Products
Multi Domain REST API routing for Data Mesh based Data ProductsMulti Domain REST API routing for Data Mesh based Data Products
Multi Domain REST API routing for Data Mesh based Data Products
Johan Louwers
 

Más de Johan Louwers (20)

Multi Domain REST API routing for Data Mesh based Data Products
Multi Domain REST API routing for Data Mesh based Data ProductsMulti Domain REST API routing for Data Mesh based Data Products
Multi Domain REST API routing for Data Mesh based Data Products
 
TClab Dynamic Solar Panel Positioning Systems
TClab Dynamic Solar Panel Positioning SystemsTClab Dynamic Solar Panel Positioning Systems
TClab Dynamic Solar Panel Positioning Systems
 
Oracle Cloud With Azure DevOps Pipelines
Oracle Cloud With Azure DevOps PipelinesOracle Cloud With Azure DevOps Pipelines
Oracle Cloud With Azure DevOps Pipelines
 
Oracle Cloud native functions - create application from cli
Oracle Cloud native functions - create application from cliOracle Cloud native functions - create application from cli
Oracle Cloud native functions - create application from cli
 
Oracle Labs - research mission & project potfolio
Oracle Labs - research mission & project potfolioOracle Labs - research mission & project potfolio
Oracle Labs - research mission & project potfolio
 
Install Redis on Oracle Linux
Install Redis on Oracle LinuxInstall Redis on Oracle Linux
Install Redis on Oracle Linux
 
Fn project quick installation guide
Fn project quick installation guideFn project quick installation guide
Fn project quick installation guide
 
Oracle python pandas merge DataFrames
Oracle python pandas merge DataFramesOracle python pandas merge DataFrames
Oracle python pandas merge DataFrames
 
import data from Oracle Database into Python Pandas Dataframe
import data from Oracle Database into Python Pandas Dataframeimport data from Oracle Database into Python Pandas Dataframe
import data from Oracle Database into Python Pandas Dataframe
 
Voice assistants for the insurance industry
Voice assistants for the insurance industry Voice assistants for the insurance industry
Voice assistants for the insurance industry
 
Enterprise wide publish subscribe with Apache Kafka
Enterprise wide publish subscribe with Apache KafkaEnterprise wide publish subscribe with Apache Kafka
Enterprise wide publish subscribe with Apache Kafka
 
Industry 4.0 and Oracle Cloud
Industry 4.0 and Oracle CloudIndustry 4.0 and Oracle Cloud
Industry 4.0 and Oracle Cloud
 
Docker and microservices - moving from a monolith to microservices
Docker and microservices - moving from a monolith to microservicesDocker and microservices - moving from a monolith to microservices
Docker and microservices - moving from a monolith to microservices
 
Cloud native applications for banking
Cloud native applications for bankingCloud native applications for banking
Cloud native applications for banking
 
Conversational retail
Conversational retailConversational retail
Conversational retail
 
Oracle Cloudday security
Oracle Cloudday securityOracle Cloudday security
Oracle Cloudday security
 
Oracle Cloudday - the future of retail
Oracle Cloudday - the future of retailOracle Cloudday - the future of retail
Oracle Cloudday - the future of retail
 
Capgemini Oracle Cloud Access Security Broker
Capgemini Oracle Cloud Access Security BrokerCapgemini Oracle Cloud Access Security Broker
Capgemini Oracle Cloud Access Security Broker
 
Microservices in the oracle cloud
Microservices in the oracle cloudMicroservices in the oracle cloud
Microservices in the oracle cloud
 
Oracle cloud, private, public and hybrid
Oracle cloud, private, public and hybridOracle cloud, private, public and hybrid
Oracle cloud, private, public and hybrid
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 

Oracle database smart flash cache

  • 1. Oracle database Smart Flash Cache Johan Louwers Johan.Louwers@capgemini.com
  • 2. Oracle Database – Smart Flash Cache 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. Oracle Database and Flash Cache | JAN-2014 | Johan Louwers Copyright ©2013 Capgemini. All Rights Reserved 2
  • 3. Oracle Database – SGA Memory Architecture  SGA (System Global Area) • Java Pool • Shared Pool • Redo Buffer • Large Pool • Streams Pool • Buffer Cache Oracle Database and Flash Cache | JAN-2014 | Johan Louwers Copyright ©2013 Capgemini. All Rights Reserved 3
  • 4. Oracle Database – Flash Cache Lifecycle A) Storage read • When a block is retrieved from the storage it is stored within the buffer cache of the system global area. • When the block is deemed no longer needed it is, traditionally, removed from the buffer cache and a new call to the storage is done when it is needed again. Oracle Database and Flash Cache | JAN-2014 | Johan Louwers Copyright ©2013 Capgemini. All Rights Reserved 4
  • 5. Oracle Database – Flash Cache Lifecycle A) Storage read • When a block is retrieved from the storage it is stored within the buffer cache of the system global area. • When the block is deemed no longer needed it is, traditionally, removed from the buffer cache and a new call to the storage is done when it is needed again. B) Flash cache write • When using Smart Flash Cache a block is not removed from the buffer cache however is evicted to the flash cache instead. Oracle Database and Flash Cache | JAN-2014 | Johan Louwers Copyright ©2013 Capgemini. All Rights Reserved 5
  • 6. Oracle Database – Flash Cache Lifecycle A) Storage read • When a block is retrieved from the storage it is stored within the buffer cache of the system global area. • When the block is deemed no longer needed it is, traditionally, removed from the buffer cache and a new call to the storage is done when it is needed again. B) Flash cache write • When using Smart Flash Cache a block is not removed from the buffer cache however is evicted to the flash cache instead. C) Flash cache read • When a block is needed again and is not available in the buffer cache in the SGA it is retrieved (if available) from the flash cache instead. • If a block is not available in the SGA buffer cache AND it is not available in the flash cache, only then a call to the storage is done. Oracle Database and Flash Cache | JAN-2014 | Johan Louwers Copyright ©2013 Capgemini. All Rights Reserved 6
  • 7. Oracle Database – Flash Cache Advantages  Advantages • By limiting the number of IO calls to the storage the overall performance of your database is extremely improved. • By limiting the load on your shared storage not only this specific database benefits, all databases and applications that make use benefit due to a lower overall load on the shared storage. Oracle Database and Flash Cache | JAN-2014 | Johan Louwers Copyright ©2013 Capgemini. All Rights Reserved 7
  • 8. Oracle Database – Flash Cache Hardware  Available hardware • Flash Cache is (in general) offered via one or more PCIe cards that are seen by the operating system as a separate device. A growing number of vendors are in the market Oracle Database and Flash Cache | JAN-2014 | Johan Louwers Copyright ©2013 Capgemini. All Rights Reserved 8
  • 9. Oracle Database – Flash Cache Implementation  Operating system considerations • Generally speaking ALL PCIe flash cards will work on almost every popular operating system including MS Windows, Linux and Solaris. • The database functions used to make use of the Oracle database Flash Cache will ONLY work on Oracle Linux and Oracle Solaris and not on any other operating system Oracle Database and Flash Cache | JAN-2014 | Johan Louwers Copyright ©2013 Capgemini. All Rights Reserved 9
  • 10. Oracle Database – Flash Cache Implementation  Operating system device • Generally a flash card will be showing as a device in /dev/ on your operating system. • Example of a EMC VFcache controller card on Linux: • Example of a EMC Vfcache card drive representation on Linux • Depending on the make and model of your card you will have to follow the specific instructions of the vendor to ensure the card is installed on your system in the correct manner. Oracle Database and Flash Cache | JAN-2014 | Johan Louwers Copyright ©2013 Capgemini. All Rights Reserved 10
  • 11. Oracle Database – Flash Cache Implementation  Oracle Database implementation • DB_FLASH_CACHE_FILE – • Should point to the location(s) of the flash device(s) to be used. DB_FLASH_CACHE_SIZE – Should state the size (per location) that can be used for flash cache. db_flash_cache_file = /dev/raw/sda, /dev/raw/sdb, /dev/raw/sdc db_flash_cache_size = 32G, 32G, 64G Oracle Database and Flash Cache | JAN-2014 | Johan Louwers Copyright ©2013 Capgemini. All Rights Reserved 11
  • 12. About – Johan Louwers Johan Louwers - Oracle and Cloud Computing I am spearheading innovation within the Capgemini Group by developing the ‘Capgemini Oracle Run’ hosting and computing cloud and ensuring our clients have a completely managed enterprise IT environment. Capgemini Expert on: • Infrastructure Transformation • Cloud Computing • Oracle Technology Contact me: Johan.Louwers@capgemini.com @johanlouwers @CapgeminiOracle http://johanlouwers.blogspot.com http://www.capgemini.com/experts/ oracle-and-cloud-computing/johanlouwers Oracle Database and Flash Cache | JAN-2014 | Johan Louwers Copyright ©2013 Capgemini. All Rights Reserved 12
  • 13. About Capgemini With more than 130,000 people in 44 countries, Capgemini is one of the world's foremost providers of consulting, technology and outsourcing services. The Group reported 2012 global revenues of EUR 10.3 billion. Together with its clients, Capgemini creates and delivers business and technology solutions that fit their needs and drive the results they want. A deeply multicultural organization, Capgemini has developed its own way of working, the Collaborative Business Experience™, and draws on Rightshore®, its worldwide delivery model. Learn more about us at www.capgemini.com. www.capgemini.com The information contained in this presentation is proprietary. Copyright © 2013 Capgemini. All rights reserved. Rightshore® is a trademark belonging to Capgemini.