Oracle Database I/O Performance Tuning for Write-Intensive Workloads
n Part III
6. Oracle ASM Storage
Architecture
6.1. Disk Group Design
ASM provides striping and mirroring across disks within a
disk group.
A typical architecture may use:
- +DATA
for database data files.
- +RECO
for recovery-related files.
- Separate
storage resources for redo logs where justified by measured contention and
supported by the storage architecture.
However, creating separate disk groups does not necessarily
mean that the underlying physical disks or storage controllers are independent.
If two ASM disk groups are backed by the same SAN pool or
physical storage devices, separating them logically may not eliminate the
actual I/O bottleneck.
Before redesigning disk groups, identify:
- Which database files generate
the highest I/O.
- Whether the bottleneck is read
or write latency.
- Whether the storage array is
saturated.
- Whether redo and data-file I/O
compete for the same resources.
- Whether the workload is limited
by IOPS, bandwidth, or latency.
Oracle's I/O configuration guidance emphasizes investigating
high-I/O files before segregating storage. Also consider optimum physical block
size such as 4k for redo logs or using more disk spindles for applications with
huge redo generation rate. Also considering better redundancy architecture in
ASM layer…
6.2. ASM Redundancy
ASM supports several redundancy models.
|
Redundancy |
Protection |
Typical use |
|
External |
No ASM mirroring |
Storage already provides suitable
redundancy |
|
Normal |
Two-way mirroring |
General-purpose deployments |
|
High |
Three-way mirroring |
Environments requiring additional
protection |
|
Flex |
Flexible file-level redundancy |
Architectures requiring flexible
protection policies |
The correct choice depends on the underlying storage
architecture, failure domains, and availability requirements.
Do not switch from Normal to External redundancy merely to
improve I/O performance.
That decision changes the data protection architecture and
should be made only after reviewing the storage redundancy and failure
scenarios.
6.3. ASM Striping
ASM supports Fine and Coarse striping.
These settings influence how ASM distributes file data
across disks.
However, the original recommendation to configure Fine
striping for redo logs and Coarse striping for all data files is too
simplistic.
ASM file templates and file-type defaults should generally
be retained unless a specific requirement justifies changing them.
In Oracle ASM, most file types use Coarse striping by
default, while some file types, such as control files, use Fine striping by
default.
6.4. ASM AU_SIZE
The AU size is determined when creating a disk group.
For Oracle Database 19c, the standard default for external,
normal, and high redundancy disk groups is 1 MB, while Flex disk groups default
to 4 MB.
Larger AU sizes can be useful in specific environments,
especially when large sequential I/O workloads justify them.
However:
- Larger
AU does not automatically improve write throughput.
- AU
size is not a substitute for proper storage striping.
- It
should not be changed based solely on the OLTP or DWH classification.
- Existing
disk groups should not be redesigned without a clear architectural reason.
6.5.
Evaluate and load testing using Oracle Orion – Storage I/O Calibration
Oracle Orion is a storage benchmarking tool designed to
simulate Oracle Database I/O workloads without requiring an installed or
running database.
It can simulate storage workloads similar to those generated
by Oracle databases, including ASM striping behavior.
Orion can measure:
- IOPS.
- MB/s
throughput.
- I/O
latency.
- Performance
under different queue depths.
- Random
and sequential I/O performance.
- Small
and large I/O behavior.
Supported workload patterns
|
Workload |
Description |
Typical use case |
|
Small Random |
Small random I/O |
OLTP |
|
Large Random |
Large random I/O |
Mixed workloads |
|
Large Sequential |
Sequential I/O streams |
DWH, backups |
|
Mixed read/write |
Configurable read/write ratio |
Write-intensive workloads |
run Type of workload to run (simple, normal, advanced, dss, oltp).
simple - Tests random small (8K) IOs at various
loads, then random large (1M) IOs at various loads.
normal - Tests combinations of random small (8K)
IOs and random large (1M) IOs.
advanced - Tests the
workload specified by the user using optional parameters.
dss - Tests with random large (1M) IOs at
increasing loads to determine the maximum throughput.
oltp - Tests with random small (8K) IOs at
increasing loads to determine the maximum IOPS.
[root@kamrani bin]# cd
/u01/app/oracle/product/19.19.0/dbhome_1/bin/
[root@kamrani bin]# ./orion
-run advanced -type rand -size_small 8 -size_large 128 -num_disks 1 -num_small
1 -num_large 1 -matrix max -testname pop -hugenotneeded -cache_size 2000
ORION: ORacle IO Numbers -- Version
RDBMS_19.3.0.0.0DBRU_LINUX.X64_190417
pop_20261117_0813
Calibration will take approximately 5 minutes.
Using a large value for -cache_size may take longer.
Setting ftype=0
Maximum Large MBPS=18.09 @ Small=1 and Large=1
Maximum Small IOPS=206 @ Small=1 and Large=1
Small Read Latency: avg=4842.555 us, min=66.113 us,
max=37056.596 us, std dev=3212.132 us @ Small=1 and Large=1
Minimum Small Latency=4842.555 usecs @ Small=1 and Large=1
Small Read Latency: avg=4842.555 us, min=66.113 us,
max=37056.596 us, std dev=3212.132 us @ Small=1 and Large=1
Small Read / Write Latency Histogram @ Small=1 and Large=1
Latency: # of IOs (read) # of IOs (write)
0 - 64 us: 0 (
0.00%) 0
( 0.00%)
64 - 128 us: 13
( 0.10%) 0
( 0.00%)
128 - 256 us: 15
( 0.23%) 0 (
0.00%)
256 - 512 us: 391
( 3.38%) 0 ( 0.00%)
512 - 1024 us: 169
( 4.75%) 0 ( 0.00%)
1024 - 2048 us: 1231
( 14.69%) 0 ( 0.00%)
2048 - 4096 us: 3641
( 44.08%) 0 ( 0.00%)
4096 - 8192 us: 5892 ( 91.65%) 0 (
0.00%)
8192 - 16384 us: 888 ( 98.82%) 0 (
0.00%)
16384 - 32768 us: 142 ( 99.97%) 0 (
0.00%)
32768 - 65536 us: 4 (100.00%) 0 (
0.00%)
65536 -
268435456 us: 0 (100.00%) 0 (
0.00%)
[root@kamrani bin]#
Important for your ASM storage testing
I recommend:
- Start
with -run oltp to establish an OLTP-oriented storage baseline.
- Use
-run advanced to investigate specific random I/O sizes and concurrency
levels.
- Compare
latency, IOPS, and throughput rather than looking only at maximum IOPS.
- Correlate
Orion results with actual ASM and database workload measurements.
One important safety warning: Orion tests can
overwrite data on the LUNs configured in its input file. Never run
write tests against active production ASM disks. Use dedicated disposable test
LUNs.
How can you safely test ASM storage?
My recommendation:
- Provision a separate test LUN
from the same storage system.
- Ensure it has comparable
characteristics (multipathing, storage tier, cache policy and RAID
configuration).
- Do not add this LUN to a
production ASM disk group.
- Configure Orion to use only this
dedicated test LUN.
- Run read-only and write tests
separately.
One more important detail: Orion's.lun input file must
reference the actual test device paths. Do not assume that specifying
-num_disks 1 protects the first production disk or automatically selects a safe
device.
6.6. SLOB – Simulating Real
Oracle Database Workloads (https://github.com/therealkevinc/SLOB_2.5.4)
Unlike Orion, SLOB generates workloads through
an actual Oracle Database.
It is designed to stress Oracle database I/O and evaluate
how the database and storage infrastructure behave under concurrent workloads.
SLOB is an excellent tool for testing I/O performance as
seen by Oracle. Unlike Swingbench which mimics a real application and
therefore spends much of its execution cycle on the server CPU, SLOB
concentrates exclusively on generating I/O from the Oracle stack.
Note: SLOB installs against an Oracle database.
It does not install against a pluggable database.
SLOB possesses the following characteristics:
- SLOB
supports testing Oracle logical read (SGA buffer gets) scaling
- SLOB
supports testing physical random single-block reads (db file sequential
read)
- SLOB
supports testing random single block writes (DBWR flushing capacity)
- SLOB
supports testing extreme REDO logging I/O
- SLOB
consists of simple PL/SQL
- SLOB
is entirely free of all application contention
SLOB is particularly useful for evaluating:
- Random read workloads.
- Random read/write workloads.
- Concurrent UPDATE operations.
- Storage scalability.
- Buffer cache pressure.
- I/O latency under concurrent
database sessions.
To more info about SLOB usage visit: https://kevinclosson.net
The discussion continues in the next part….
References and further reading
Ø Oracle 19c –
Managing Operating System Resources.
Ø Oracle 19c –
I/O Configuration and Design.
https://docs.oracle.com/en/database/oracle/oracle-database/19/tgdba/IO-configuration-and-design.html
Ø Oracle 19c –
ASM Storage Requirements and AU Size.
Ø Oracle 19c –
Administering ASM Disk Groups.
Ø Oracle
Database – COMMIT_WAIT.
https://docs.oracle.com/en/database/oracle/oracle-database/26/refrn/COMMIT_WAIT.html
Ø Oracle
Database – COMMIT Statement.
https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/COMMIT.html
Ø Red Hat –
Factors Affecting I/O and Filesystem Performance.
Ø Red Hat –
Setting the Disk Scheduler.
Ø Red Hat –
Discarding Unused Blocks.
Ø GitHub Kevin:
https://github.com/therealkevinc , https://kevinclosson.net
Ø Oracle Memory
Architecture: https://docs.oracle.com/en/database/oracle/oracle-database/21/cncpt/memory-architecture.html
Ø Oracle 26ai –
Using Parallel Execution: https://docs.oracle.com/en/database/oracle/oracle-database/26/vldbg/using-parallel.html
Part 2: https://database-box.blogspot.com/2026/11/oracle-database-io-performance-tuning_01361558103.html
*****************Alireza Kamrani**********************