oracle performance on m5000 with f20 flash cache - …€¦ · · 2012-06-21(apps server, esb)...
TRANSCRIPT
Oracle Performance on M5000 with F20 Flash Cache
Benchmark Report
September 2011
copyright © 2011 by benchware.ch slide 2
1 About Benchware
2 Flash Cache Technology
3 Storage Performance Tests
4 Conclusion
Contents
copyright © 2011 by benchware.ch slide 3
Benchware Ltd
Strong foundation in core technologies like Oracle database system, server and storage systems
• System Architecture, Component Evaluation, Reviews
• Performance Analysis & Optimization
• Benchmarking
• Database Engineering
Services and Products
copyright © 2011 by benchware.ch slide 4
Benchware Ltd
• Vendor-independent company - Benchware is completely committed to customers’ interests
• Holistic approach in designing, tuning and benchmarking Oracle systems
• Long experience track record - Responsible for system architecture of largest DWH and OLTP
systems, mainly telecom and finance industry
- Oracle since 1984 (Oracle Version 3)
- Performance tuning and benchmarking since 1993 (Oracle Version 7)
Value proposition
copyright © 2011 by benchware.ch slide 5
Oracle Database
Different versions, patches and options, about hundred configuration parameters.
Server & Operating System
Different server Systems, processors and CPU architectures, (x86, IA-64, UltraSparc, SPARC64, Power), #cores, multithreading, main memory, bus architecture. Different operating Systems and patches, over hundred configuration parameters, virtualization of resources.
Volume & File Management
Different volume managers (VxVM, ASM) and file Systems (UFS, VxFS, ext3, JFS, ZFS, raw devices), different I/O methods (async, direct), a lot of config parameters (#LUNS, queue depth, max i/o unit), software striping and/or mirroring, multipathing.
Storage System
Different storage Systems, storage tiers and storage technology: spindle count and speed, RAID management, cache management, server interface technology, storage system options like remote copy, hardware striping and/or mirroring, virtualization of resources.
Storage Network (FC-, IB- or IP-based)
Bandwidth, latency during remote storage mirroring (sync, async) due to switches, hubs and distance.
Application Network (IP-based)
Bandwidth, latency during remote database mirroring (sync, async) due to switches and sql*net and tcp/ip stack (frame size, …).
Benchware Ltd
Volume & File Management
Database System
Storage System St
ora
ge N
etw
ork
Middleware (apps server, esb)
Application
Ap
plic
atio
n N
etw
ork
Syst
em
Man
agem
en
t, O
pe
rati
on
s, S
ecu
rity
,
Re
sso
urc
e M
anag
em
en
t
Server & Operating
System
Complex architecture of Oracle platforms needs benchmarking
Performance of complex technology stack is NOT predictable – unless running a benchmark
copyright © 2011 by benchware.ch slide 6
Benchware Ltd
Volume & File Management
Database System
Storage System St
ora
ge N
etw
ork
Middleware (apps server, esb)
Application
Ap
plic
atio
n N
etw
ork
Server & Operating
System
Benchware Performance Suite
Object of measurement
Syst
em
Man
agem
en
t, O
pe
rati
on
s, S
ecu
rity
,
Re
sso
urc
e M
anag
em
en
t
• Benchware Performance Suite
- Benchware Monitor
- Benchware Loader
• Performance measurement at the interface between application and technology stack
• Key Performance Metrics can be used for SLA between IT operation and business
• Benchware uses Oracle Database stack to generate all kind of loads for cpu, server, storage and database
copyright © 2011 by benchware.ch slide 7
Server Performance Server-bound Oracle operations All operations in RAM - no I/O operations
OLTP systems
DWH systems
Efficiency Metrics
Unit
• in-memory SQL scalability cc-numa
virtualization
speed throughput
[µs] [s] [bps] [tps] [rps]
• pl/sql algorithms
quicksort
Benchware Ltd
CPU Performance CPU-bound Oracle operations All operations in Level 1, 2, 3 CPU cache
OLTP systems
DWH systems
Efficiency Metrics
Unit
• pl/sql basic operations multithreading virtualization
speed throughput
[s] [ops]
• pl/sql algorithms
fibonacci, prime numbers
Library of Oracle benchmark tests - implemented in PL/SQL, Java and SQL
[s] seconds [ms] milli seconds (10-3) [µs] micro seconds (10-6) [ns] nano seconds (10-9)
less important important very important
[bps] buffers per second [rps] rows per second [tps] transactions per second [ops] operations per second
[MBps] mega bytes per second [GBps] giga bytes per second [iops] i/o operations per second [qpm] queries per minute
copyright © 2011 by benchware.ch slide 8
Database Performance Mixed resource usage: CPU, memory, storage
OLTP systems
DWH systems
Efficiency Metrics Unit
• data load uncompressed, compressed
scalability speed throughput service time
[ms] [s] [rps] [tps] [qpm]
• data scan
• data aggregation & reports
• OLTP transactions insert, select, update
Benchware Ltd
Storage Performance I/O-bound Oracle operations
OLTP systems
DWH systems
Efficiency Metrics Unit
• sequential I/O 1 MByte, read and write
RAID tiering striping
virtualization
service time throughput
[ms] [MBps] [GBps]
[iops] • random I/O 8 kByte, read and write
Library of Oracle benchmark tests - implemented in PL/SQL, Java and SQL
[s] seconds [ms] milli seconds (10-3) [µs] micro seconds (10-6) [ns] nano seconds (10-9)
less important important very important
[bps] buffers per second [rps] rows per second [tps] transactions per second [ops] operations per second
[MBps] mega bytes per second [GBps] giga bytes per second [iops] i/o operations per second [qpm] queries per minute
copyright © 2011 by benchware.ch slide 9
1 About Benchware
2 Flash Cache Technology
3 Storage Performance Tests
4 Conclusion
Contents
copyright © 2011 by benchware.ch slide 10
Flash Cache Technology
Architecture without Flash Cache
Serv
er S
yste
m
Sto
rage
Sys
tem
CPU’s Main Memory
Database Buffer Cache
Storage System Cache
Access times (Sep 2011): • CPU cache (SRAM) 1 x 10-9 s • Database cache (DRAM) 100 x 10-9 s
• Storage system cache 1 x 10-3 s • Storage system disk 1 x 10-2 s
Hard Disk Drives (HDD)
FC-based network IP-based network
copyright © 2011 by benchware.ch slide 11
Flash Cache Technology
Architecture with F20 Flash Cache
Serv
er S
yste
m
Sto
rage
Sys
tem
CPU’s Main Memory
Database Buffer Cache
Storage System Cache
Flash Cache
Hard Disk Drives (HDD)
FC-based network IP-based network
PCI-based connection
F20 Flash Accelerator • 96 GByte • 100’000 IOPS read • < 1 ms • 1’100 MBps
Access times (Sep 2011): • CPU cache (SRAM) 1 x 10-9 s • Database cache (DRAM) 100 x 10-9 s • Flash cache 150 x 10-6 s • Storage system cache 1 x 10-3 s • Storage system disk 1 x 10-2 s
copyright © 2011 by benchware.ch slide 12
1 About Benchware
2 Flash Cache Technology
3 Storage Performance
4 Conclusion
Contents
copyright © 2011 by benchware.ch slide 13
Storage Performance Test
0
10'000
20'000
30'000
40'000
50'000
60'000
1 2 3 4 5 6 7 8 9 10
F20 Flash Cache
Repetition
Thro
ugh
pu
t in
[io
ps]
Random read after Oracle instance startup
When repeating the test series several times, we achieved a max value of 50’000 random IOPS. This is equivalent to ~200 hdd with 15k rpm (250 IOPS) or ~280 hdd with 10k rpm (180 IOPS)
copyright © 2011 by benchware.ch slide 14
Storage Performance Test
Random read after Oracle instance startup
CPU Read Write Total Read Write Total REDO Time
Run Tst Code #N #J #T Rows/sec Ops/sec [%] [IOPS] [IOPS] [IOPS] [MB/s] [MB/s] [MB/s] [MB/s] [sec]
--- --- ---- --- ---- ---- ---------- ---------- ---- -------- -------- -------- ------- ------- ------- ------ ------
7 1 T626 1 64 1 2.91E+03 2.27E+00 9 2965 1962 4928 23 15 39 0 902
2 T626 1 64 1 5.20E+03 4.07E+00 10 5302 1840 7142 41 14 56 0 503
3 T626 1 64 1 8.36E+03 6.52E+00 12 8508 2046 10554 66 16 82 0 314
4 T626 1 64 1 1.31E+04 1.02E+01 19 13371 2197 15568 104 17 122 0 200
5 T626 1 64 1 2.17E+04 1.69E+01 19 22082 2493 24574 173 20 192 0 121
6 T626 1 64 1 2.77E+04 2.16E+01 22 28186 2160 30346 220 17 237 0 95
7 T626 1 64 1 3.46E+04 2.69E+01 29 35211 2009 37220 275 16 291 0 76
8 T626 1 64 1 4.09E+04 3.20E+01 33 41676 1832 43508 326 14 340 0 64
9 T626 1 64 1 4.52E+04 3.53E+01 33 46035 1487 47522 360 12 371 0 58
10 T626 1 64 1 4.92E+04 3.86E+01 33 50154 1113 51268 392 9 401 0 53
F20
Fla
sh C
ach
e
Top 5 Timed Foreground Events
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Avg
wait % DB
Event Waits Time(s) (ms) time Wait Class
------------------------------ ------------ ----------- ------ ------ ----------
db file sequential read 2,025,346 52,705 26 46.7 User I/O
db flash cache single block ph 645,759 769 1 .7 User I/O
Ru
n 7
Ts
t 1
R
un
7
Tst
10
Top 5 Timed Foreground Events
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Avg
wait % DB
Event Waits Time(s) (ms) time Wait Class
------------------------------ ------------ ----------- ------ ------ ----------
db flash cache single block ph 2,653,213 2,921 1 41.0 User I/O
db file sequential read 5,026 95 19 1.3 User I/O
copyright © 2011 by benchware.ch slide 15
1 About Benchware
2 Flash Cache Technology
3 Storage Performance Tests
4 Conclusion
Contents
copyright © 2011 by benchware.ch slide 16
Conclusion
0
50
100
150
200
250
300
Server Flash Cache Shared Storage Database License
Sun M5000 • SPARC64 VII • Oracle license core
factor 0.75 • 2 sockets, 2.4 GHz • 8 cores, 16 threads • 64 GB RAM • 2 x 4 Gb FC HBA • Solaris 10 ~ 110k USD
F20 Flash Accelerator • 96 GByte ~ 5k USD
Oracle Enterprise Edition • Enterprise Edition • Partition Option ~ 280k USD
Sun M5000 with F20 Flash Cache All prices are list prices
Shared high-end Storage • 40 disks • 300 GB • 15k rpm • 12 TB raw • 10 TB usable RAID-5
~ 120k USD
copyright © 2011 by benchware.ch slide 17
Conclusion
• Flash Cache advantages - Very high random and sequential I/O throughput
- Service times for single block access < 1 msec
- Unburden shared storage system
Sun M5000 with F20 Flash Cache
copyright © 2011 by benchware.ch slide 18
Conclusion
• Flash Cache management - Automatically managed by Oracle
– Oracle instance parameter db_flash_cache_size
– All database objects benefit from Flash Cache
- Manually managed by application
– Objects can be pinned to Flash Cache
– Useful for hotspot database objects (needs capacity planning)
– SQL> ALTER TABLE <name> STORAGE (FLASH_CACHE KEEP);
Sun M5000 with F20 Flash Cache
copyright © 2011 by benchware.ch slide 19
Conclusion
• Flash Cache limitations - For read operations only
- Available for Oracle 11.2 on Solaris and OEL only
• Bottom line - A small hardware investment dramatically increases I/O throughput
and decreases I/O latency by factors
Sun M5000 with F20 Flash Cache
copyright © 2011 by benchware.ch slide 20
Conclusion
• Benchware uses fair, reproducible and representative benchmark tests delivering understandable key performance metrics (KPM)
• Benchware uses a list of defined price performance ratios (PPR) to evaluate platform cost
• Benchware publishes price performance ratios (PPR) to its customers only
Sun M5000 with F20 Flash Cache