solid state storage in oracle environments

36
Solid State Storage in Oracle Environments Mark Henderson & Rick Stehno

Upload: saburo

Post on 23-Mar-2016

67 views

Category:

Documents


2 download

DESCRIPTION

Solid State Storage in Oracle Environments. Mark Henderson & Rick Stehno. CAUTION : We successfully completed all of these system and storage modifications in our lab to perform our benchmark tests. Before implementing any of these - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Solid State Storage in Oracle Environments

Solid State Storage in Oracle EnvironmentsMark Henderson & Rick Stehno

Page 2: Solid State Storage in Oracle Environments

CAUTION: We successfully completed all of these system and storage modifications in our lab to perform our benchmark tests.

Before implementing any of thesemodifications in your environment, be sure to test them completely to determine if theyshould be used in your environment.

Page 3: Solid State Storage in Oracle Environments

3

IP3%

StorageSystems

34%

StorageSemiconductors

44%

Networking19% Focused on Storage and Networking

12,000+ Patents and Patent Applications $2.5B Annual Revenue Global Presence, 3000+ Employees 300,000+ Storage Systems Deployed

Company Highlights

12 years of Successful Partnership Spanning Silicon, Boards and Storage Systems

Technology and Manufacturing Partner for the Oracle 2500 & 6000 Storage Systems

Designed and Tested for Interoperability with Oracle Operating Systems and Applications

LSI-Oracle Partnership

LSI Overview

Page 4: Solid State Storage in Oracle Environments

4

Who we are:• Rick Stehno is an Oracle Technologist/DBA with LSI Corporation

which designs and manufactures high performance storage systems. Rick works with Oracle and LSI's various OEM's to create and promote solutions using LSI's storage systems with the various Oracle technologies. Rick has been in the IT field for over 34 years and working with Oracle databases since 1989.

• Mark Henderson is a Technical Marketing Manager with LSI Corporation which designs and manufactures high-performance midrange storage systems for major OEMs. Mark works with Oracle and LSI’s various channels to create and promote solutions that address customer problems and create competitive advantage. He has a degree in Computer Systems Engineering, has designed high-end flight simulators, participated in computer science and networking research at US DOE labs, architected HPC centers, and has been involved with Storage Resellers, Fibre Channel Director SAN technology and MAID storage systems.

Page 5: Solid State Storage in Oracle Environments

5

Solid State Storage Comes in Many Forms

• Is delivered to the market in three basic forms• Server Cards – think memory expansion• Network device – the most well known is the Oracle 5100• Solid State Disk – which are installed in either Servers or RAID

systems– SSD installed in servers has many of the same properties of server cards.

Page 6: Solid State Storage in Oracle Environments

6

Solid State Technology (And do you really care?)

• Internally they are similar to a bunch of your average jump drives

• Solid State Storage is a consumable resource – but don’t panic!– It wears out, not unlike regular old rotating disk drives– Bad blocks on drives, remapped sectors

• There are two technologies that you may hear about– MLC Multi-Level cell– SLC Single-Level cell

• The technology is simply a discussion of *cost*, not price.

Page 7: Solid State Storage in Oracle Environments

7

OK so now that I have this super fast device – what does that mean? The obvious, well isn’t…• It’s all equally accessible – no short stroking • While it doesn’t rotate, mixed reads and writes do slow it down• Scanning the Device for bad sectors is a thing of the past• It may not be necessary to stripe for performance• In cache cases you might not even need to mirror SSDs• Using Smart Flash Cache AND moving data objects to SSD decreased

performance• Online Redo Logs are best handled by HDD because of the sequential

writes

Page 8: Solid State Storage in Oracle Environments

8

Look at the Solid State price per GB!!!($/IOP vs. $/GB)

$

GB

IOPS

Page 9: Solid State Storage in Oracle Environments

9

Oracle Smart Flash Cache & Database Stroage Tiering

Smart Flash Cache• Technology available in 11gR2 + a patch• Extends Oracle Buffer Cache• Can use any technology

– Flash Cards, Network Flash, Solid State Disk, even USB drives• Point Oracle at the flash resource and it’s all automatic• Least interaction between storage admin and DBA

Database Storage Tiering• Tiered storage often uses Flash as a “Tier 0” layer• Can be higher performance AND less expensive• Mix and Match Multi-technology solutions• Storage Arrays can hold multiple Tiers

– Some do so with more grace than others• Use Database Partitioning to drive Storage Tiering

Page 10: Solid State Storage in Oracle Environments

10

Where should you invest in Solid State?

• Where should you invest? – Server – Network– Storage

Page 11: Solid State Storage in Oracle Environments

11

Investing in Solid State in the Server

• Lowest latency• Low entry point• Dedicated to specific server• Not transportable• Great for buffer extension / acceleration• Varity of manufactures / sizes / capability

Page 12: Solid State Storage in Oracle Environments

12

Investing in Solid State in the Network

• Most dense flash storage• Looks like a drive

– Partitionable x4 – Not sharable

Page 13: Solid State Storage in Oracle Environments

13

Investing in Solid State Storage

• Persistent Storage• Multi-Server Shared Storage

– OVM– RAC– VMware

• Data Protection Methods• Database Partitioning• Automatic Storage Tiering

Page 14: Solid State Storage in Oracle Environments

14

So where should you invest in solid state?

Property \ Location Server Flash Network Flash Storage FlashPhysical Description Card Device Solid State DiskLatency Lowest Low LowEntry Price Point Lowest ($5k) Medium($50k) Low ($15-30k)Sharable Data No No YesPartition Sharing No Yes YesSingle Machine (SMP) Fit Yes Yes YesShared Multi-Machine Fit Real Application Clusters (RAC) No No YesPersistent Data (no power) No No YesData Protection (Snapshot, Volume Copy) No No YesSite Protection (Remote Volume Mirroring) No No YesAutomatic Storage Management (ASM) Compatible Yes Yes YesRecovery Manager (RMAN) Compatible Yes Yes YesOracle Smart Flash Cache Yes Yes YesVMware Shared Storage (HA and Advanced Features) No No Yes

“Depends…”

Page 15: Solid State Storage in Oracle Environments

15

Moving the Bottleneck

• High Performance array controller– Sustained throughput to the drives– Not just Cache numbers

• And the rest of the system has to be able to use the faster speed…

Server(s)

Network

Controller

Drives

FC

Page 17: Solid State Storage in Oracle Environments

17

Oracle Storage Array SSD Testing Results

% Response Gains

% Transaction Gains

0%200%400%600%800%

1000%1200%1400%1600%

Percent Improvement

Flash Cache on SSDMove Top 9 Objects to SSD

Avg R

espo

nse T

ime (

sec)

Avg Tran

sacti

on Tim

e (se

c)0

0.060.120.18

Smart Flash Cache

All HDD BaselineFlash Cache on SSD

All HDD Base-line

Flash Cache on SSD

Move Top 9 Objects to

SSD

00.020.040.060.080.1

0.120.140.160.180.2

Response Time (sec)

Avg Response Time (sec)Avg Transaction Time (sec)

Page 18: Solid State Storage in Oracle Environments

18

SAN Based SSD Testing

• We used an LSI 7900 Storage Array– Three Storage Drive Enclosures– (28) 15k RPM Fibre Channel drives in RAID 10 for ASM disk groups– (3) 15k RPM Fibre Channel drives in RAID 10 for Redo logs– (2) 73GB SSD in mirrored RAID for data protection

• Sever: Two Xeon 5150 @ 2.66GHz dual-core

• Oracle Enterprise Linux Release 5.5

Page 19: Solid State Storage in Oracle Environments

19

Database Configuration

• SGA=1.5GB• filesystemio_options=async • disk_async_io=TRUE • 1GB redo logs• ASM• 60GB Oracle Smart Flash Cache

– SQL> alter system set db_flash_cache_file='/u04/flash.dbf‘ scope=spfile;– SQL> alter system set db_flash_cache_size=60g scope=spfile;– SQL> show parameter flash

• NAME TYPE VALUE• -------------------------------------------------------------------------• db_flash_cache_file string /u04/flash.dbf• db_flash_cache_size big integer 60G

Page 20: Solid State Storage in Oracle Environments

20

WarpDrive™ PCIe Solid State Acceleration Card

• Provides scalable SSD performance inside-the-server

• Designed to supercharge application performance– Built for IOPS, throughput and both

random and sequential I/O workloads– Performance: 240K IOPs, 1.5GB/s,

50usec latency– Usable capacity 300GB (w/28% over-

provisioning)• No change to OS or applications• Built for broad OS support

– Bootable– Including RHEL, SLES, Windows

32/64 support

Page 21: Solid State Storage in Oracle Environments

21

WarpDive Testing Configuration

• HP ProLiant DL370 G6– Dual Intel Xeon Processor X5570– 48GB - 1333 DDR3– LSI 9210-8i SAS host bus adapter– LSI SAS 2x36 Expander– 146GB 2.5-in. SFF 6G SAS 10K RPM drives

• Software RAID 0 over 6 LUNs for the UNDO tablespace• Software RAID 0 over 6 LUNs for the Online REDO Logs• All tablespaces were striped over 10 individual LUNs when using HDD

Page 22: Solid State Storage in Oracle Environments

22

Database Configuration Single WarpDrive• SGA=16GB• filesystemio_options=async• disk_async_io=TRUE• 4GB redo logs• Benchmarks used Swingbench with 100 user load with no latency• 250 GB Oracle Smart Flash Cache

• SQL> alter system set db_flash_cache_file='/u05/flash.dbf‘ scope=spfile;

• SQL> alter system set db_flash_cache_size=250g scope=spfile;• SQL> show parameter flash

• NAME TYPE VALUE• -------------------------------------------------------------------------• db_flash_cache_file string /u05/flash.dbf• db_flash_cache_size big integer 250G

Page 23: Solid State Storage in Oracle Environments

23

Dual WarpDrives with Oracle ASM(Database Configuration)• SQL> alter system set db_flash_cache_file='+DATAWH/flash.dbf'

scope=spfile;• SQL> alter system set db_flash_cache_size=250g scope=spfile;• SQL> show parameter flash

NAME TYPE VALUE-------------------------------------------------------------------------db_flash_cache_file string +DATAWH/flash.dbfdb_flash_cache_size big integer 250G

Page 24: Solid State Storage in Oracle Environments

24

Oracle Warp Drive Testing Results

Baseline Smart Flash Cache

Mirrored Warpdrives

0

50000

100000

150000

200000

250000

300000

350000

400000 TPM

Baseli

ne

Smart Flas

h Cac

he

Mirrored

Warp

drive

s0

1000

2000

3000

4000

5000

6000

7000

8000

TPS

Baseline Smart Flash Cache

Mirrored Warpdrives

0

20

40

60

80

100

120

Response Time (ms)

Page 25: Solid State Storage in Oracle Environments

25

Tools or Procedures to Investigate I/O Activity

Tools available in the database:• Statspack (Free, since 8i)• Automatic Workload Repository

(AWR) ‐ Requires license• Oracle Enterprise Manager ‐ OEM

The database views in specific areas:• v$filestat• v$sysstat• v$system_event• v$session_wait• turn on trace events

Operating System level tools:• For Linux/Unix

– Iostat– Vmstat

• For Windows– Performance Monitor using the Oracle

options

Page 26: Solid State Storage in Oracle Environments

26

• Instance CPU Section– Is the system is CPU bound?

• Tablespace I/O Statistics Section– Which tablespace(s) have the highest I/O activity?

• Segments by physical Reads– Most active physical reads objects– Percentage amount of the total Read I/O activity

Review Statspack or AWR Reports

Page 27: Solid State Storage in Oracle Environments

27

Additional AWR Analysis

• Segments by Physical Writes– List of the most active database objects based on physical writes and the

percentage amount of total Write I/O activity.

AWR was used to ID the top nine data objects to move

Page 28: Solid State Storage in Oracle Environments

28

LSI Oracle Enterprise Manager Plug-in

• Our Plug-in is intended to assist Database Administrators:

– To understand the storage configuration

– To comprehend performance trends

– View the current storage status

– Plan proactively for capacity needs

Page 29: Solid State Storage in Oracle Environments

29

OEM Plug-in Displays Storage Resources

Page 30: Solid State Storage in Oracle Environments

30

OEM Plug-in shows Database relationship to LUNS

Page 31: Solid State Storage in Oracle Environments

31

OEM Plug-in Performance Graphs

Page 32: Solid State Storage in Oracle Environments

32

OEM Plug-in Storage Array Performance

Page 33: Solid State Storage in Oracle Environments

33

Linux Tuning for Solid State Drives(both SAN based SSD and WarpDrive)• Align the SSD on a 4-KB boundary for optimal performance

• Use EXT-2 to bypass filesystem journaling– eliminates double writes to the SSD – which increases performance– prolongs the life of the SSD

• Modify the kernel I/O scheduler to NOOP for the SSD device

• Used the noatime filesystem mount option– eliminates the need for the system writes to the filesystem when objects are

only being read

Page 34: Solid State Storage in Oracle Environments

34

Linux Tuning Test Observations• Test results using a 500 user load with just operating system tuning

efforts applied:

– Overall: 35% performance increase• These changes not only increased the performance when using a 100-

user load, they also improved the performance of the higher user loads.

• System performance did not drop dramatically when using the 500-user load

Before After 0

100002000030000400005000060000700008000090000

Average TPM

Before After 0

200

400

600

800

1000

1200

1400

1600 TPS

Before (ms) After (ms)0

20

40

60

80

100

120Average Response (ms)

Page 35: Solid State Storage in Oracle Environments

35

Solid State Conclusions and Recommendations

• If you are I/O bound, AND you have CPU cycles– Take your storage admin out for coffee…– If you aren’t using ASM, consider it– Smart Flash Cache will get you an improvement, IFF you have CPU cycles– Best results using AWR / StatsPak, but it takes some work– Move Data Objects or Smart Flash Cache, not both

• SS in Server, Network or Storage will work, depending on goals– Shared storage requires a storage system

• A modest SSD investment can provide huge returns

• The LSI 7900 Engenio Storage System and the LSI WarpDrive can deliver performance using SSD technology to applications such as Oracle, for balanced performance and cost efficiency.

Page 36: Solid State Storage in Oracle Environments

36

[email protected]@lsi.com

Material taken from the following white papers:• Migration of Live Oracle Databases to LSI Storage• Oracle Storage Tiering within a LSI Engenio 7900• Where to Invest in Flash in an Oracle Environment• Practical Application of Solid State Disk (SSD) to an Oracle

Database on LSI Engenio Storage• Best Practices for Optimizing Oracle® Database Performance

with the LSI™ WarpDrive™ Acceleration Card

Resources and Contact Information