AIX Configuration & Tuning For Oracle DB
AIX Configuration & Tuning For Oracle DB
AIX Configuration & Tuning For Oracle DB
8/29/2008
Agenda
Basic AIX Configuration/Tuning for Oracle
Preparing the runtime environment
Memory
I/O
Network
8/29/2008
8/29/2008
8/29/2008
8/29/2008
8/29/2008
Example:
For a 6-way LPAR with SMT enabled, maxpgahead=8 and
j2_maxPageReadAhead=8:
minfree = 1440 = 120 x 6 x 2
maxfree = 1536 = 1440 + (max(8,8) x 6 x 2)
8/29/2008
CPU Considerations
8/29/2008
CPU
Oracle 9i
Oracle CPU count does not recognize change in # cpus
AIX scheduler can still use the added CPUs
Oracle 10g
Oracle CPU count recognizes change in # cpus
Memory
Oracle 9i or 10g
SGA can be dynamically resized, but has an upper bound
by the parameter SGA_MAX_SIZE.
2006 IBM Corporation
8/29/2008
8/29/2008
PP Striping
Use minimum Physical Partition (PP) size (mklv -t, -s parms)
Spread AIX Logical Volume (LV) PPs across multiple hdisks in VG
(mklv e x)
2006 IBM Corporation
8/29/2008
Asynchronous I/O
AIX parameters (smit aio) -- only applicable to file system based configs
minservers = 10 * # cpus
maxservers = (10 * # disks) / # cpus
maxreqs = a multiple of 4096 > 4 * #disks * queue_depth
enable at system restart
Typical settings: minservers=100, maxservers=100,
maxreqs=16384
Oracle parameters (init.ora)
disk_asynch_io = TRUE
filesystemio_options = {ASYNCH | SETALL}
Monitor usage:
Watch for Oracle alert log or trace file messages:
Warning lio_listo returned EAGAIN
AIX Monitoring
pstat a | grep aios
iostat A (AIX 5.3)
NMON -A and -t options
2006 IBM Corporation
8/29/2008
no caching on reads
no caching on reads
Use CIO for Oracle .dbf, control files and online redo logs only!!!
8/29/2008
JFS
JFS2
Oracle 9i
Oracle 10g
Set filesystemio_options=SETALL
-orUse dio mount option
Set filesystemio_options=SETALL
-orUse dio mount option
Set filesystemio_options=SETALL
-orUse cio mount option
8/29/2008
Oracle Binaries
Do not use CIO or DIO
2006 IBM Corporation
8/29/2008
8/29/2008
8/29/2008
http://store.oracle.com/
Oracle Technology Network
http://otn.oracle.com
IBM Redbooks:
http://www.ibm.com/redbooks
Techdocs Technical Sales Library
http://w3.ibm.com/support/techdocs
2006 IBM Corporation
8/29/2008