Mandalika's scratchpad | [ Work blog @Oracle | My Music Compositions ] |
Old Posts: 09.04 10.04 11.04 12.04 01.05 02.05 03.05 04.05 05.05 06.05 07.05 08.05 09.05 10.05 11.05 12.05 01.06 02.06 03.06 04.06 05.06 06.06 07.06 08.06 09.06 10.06 11.06 12.06 01.07 02.07 03.07 04.07 05.07 06.07 08.07 09.07 10.07 11.07 12.07 01.08 02.08 03.08 04.08 05.08 06.08 07.08 08.08 09.08 10.08 11.08 12.08 01.09 02.09 03.09 04.09 05.09 06.09 07.09 08.09 09.09 10.09 11.09 12.09 01.10 02.10 03.10 04.10 05.10 06.10 07.10 08.10 09.10 10.10 11.10 12.10 01.11 02.11 03.11 04.11 05.11 07.11 08.11 09.11 10.11 11.11 12.11 01.12 02.12 03.12 04.12 05.12 06.12 07.12 08.12 09.12 10.12 11.12 12.12 01.13 02.13 03.13 04.13 05.13 06.13 07.13 08.13 09.13 10.13 11.13 12.13 01.14 02.14 03.14 04.14 05.14 06.14 07.14 09.14 10.14 11.14 12.14 01.15 02.15 03.15 04.15 06.15 09.15 12.15 01.16 03.16 04.16 05.16 06.16 07.16 08.16 09.16 12.16 01.17 02.17 03.17 04.17 06.17 07.17 08.17 09.17 10.17 12.17 01.18 02.18 03.18 04.18 05.18 06.18 07.18 08.18 09.18 11.18 12.18 01.19 02.19 05.19 06.19 08.19 10.19 11.19 05.20 10.20 11.20 12.20 09.21 11.21 12.22
(Originally posted on blogs.sun.com at:
http://blogs.sun.com/mandalika/entry/identifying_ideal_oracle_database_objects)
The Sun Storage F5100 Flash Array and Sun Flash Accelerator F20 PCIe Card help accelerate I/O bound applications such as databases. The following are some of the guidelines to identify Oracle database objects that can benefit by using the flash storage. Even though the title explicitly states "Oracle", some of these guidelines are applicable to other databases and non-database products. Exercise discretion, evaluate and experiment before implementing these recommendations as they are.
Heavily used database tables and indexes are ideal for flash storage
- The database workloads with severe I/O bottlenecks can fully realize the benefits of flash devices
Top 5 Timed Foreground Events
section in any AWR report that was collected on the target database system is useful in finding whether disk I/O is a bottleneck
User I/O
Wait Class is an indication of I/O contention on the system
Identify the I/O intensive tables and indexes in a database with the help of Oracle Enterprise Manager Database Control, a web-based tool for managing Oracle database(s)
An alternate way to identify the I/O intensive objects in a database is to analyze the AWR reports that are generated over a period of time especially when the database is busy
SQL ordered by ..
tables in each AWR report
INSERT
& UPDATE
statements with more elapsed and DB times
The database tables that are updated frequently & repeatedly, along with the indexes created on such tables are good candidates for the flash devices
SQL ordered by Reads
is useful in identifying the database tables with large number of physical reads
The database table(s) from which large amounts of data is read/fetched from physical disk(s) are also good candidates for the flash devices
To identify I/O intensive indexes, look through the explain plans of the top SQLs that are sorted by Physical Reads
Examine the File IO Stats
section in any AWR report that was collected on the target database system
Examine Segments by Physical Reads, Segments by Physical Writes
and Segments by Buffer Busy Waits
sections in AWR report
Sun flash storage may not be ideal for storing Oracle redo logs
A redo log write that is not aligned with the beginning of the 4K physical sector results in a significant performance degradation
- In general, Oracle redo log files default to a block size that is equal to the physical sector size of the disk, which is typically 512 bytes
However with a block size of 4K for the redo logs, there will be significant increase in redo wastage that may offset expected performance gains
In addition to the I/O intensive database objects, customers running Oracle 11g Release 2 or later versions have the flexibility of using flash devices to turn on the "Database Smart Flash Cache" feature to reduce physical disk I/O. The Database Smart Flash Cache is a transparent extension of the database buffer cache using flash storage technology. The flash storage acts as a Level 2 cache to the (Level 1) SGA. Database Smart Flash Cache can significantly improve the performance of Oracle databases by reducing the amount of disk I/O at a much lower cost than adding an equivalent amount of RAM.
F20 Flash Accelerator offers an additional benefit - since it is a PCIe card, the I/O operations bypass disk controller overhead.
The database flash cache can be enabled by setting appropriate values to the following Oracle database parameters.
db_flash_cache_file db_flash_cache_size
Check Oracle Database Administrator's Guide 11g Release 2 (11.2) : Configuring Database Smart Flash Cache documentation for the step-by-step instructions to configure Database Smart Flash Cache on flash devices.
2004-2019 |