Professional Documents
Culture Documents
Unit 17 AIX Tuning Tips For Oracle PDF
Unit 17 AIX Tuning Tips For Oracle PDF
• Memory
• CPU
• I/O
• Network
• Miscellaneous
• Overview
• Memory
• CPU
• I/O
• Network
• Miscellaneous
Flashback
Buffer
Redo
Data Control
Parameter Log Archived
Files Files Files Log Files
File
Passwo
rd File Database
Virtual memory
Page Frame
Segment 0 Segment (256M)
Segment 1
Segment 2
Segment 3
Segment 4
...... Disk
Segment n-1
Segment n
Page
Size:4K/64K/16M/16G
Non-pinned Paging
working storage space
Pinned-memory
(cannot be stolen)
maxfree
minfree Number of
Number of free pages
free pages
Free list Free list
© Copyright IBM Corporation 2013
What types of pages are stolen?
lru_file_repage = 1 lru_file_repage= 0
minperm
(from minperm%
Steals the least default=3%) Steals the least
recently used recently used
pages numperm < minperm pages
Power Hypervisor
(shared memory pool)
8G AMS VIOS
2G 1G 2G
Paging spaces
Physical memory
Uncompressed
HMC administrator sets
Memory
expansion factor in the
True
ucomprsd
partition profile
exp_factor * true_mem =
XG
1.5X G target_exp_mem
Compress/
Compressed target_mem
True uncompre Memory
ss (expanded)
comprsd
SGA Memory Summary for DB: test01 Instance: test01 Snaps: 1046 -1047
• SQLPLUS:
SQL> show sga
SQL> show parameters
• Overview
• Memory
• CPU
• I/O
• Network
• Miscellaneous
• Overview
• Memory
• CPU
• I/O
• Network
• Miscellaneous
Redo
Data Control Log Archived
Parameter
File Files Files Files Log Files
Passwor
d File Database
24
© Copyright IBM Corporation 2013
Oracle RAC options for data storage
Database Files √ √ √
Control Files √ √ √
Oracle Binaries √ √
OCR √ √ √
Voting Disk √ √ √
Example:
1. Use RAID-5 or RAID-10 to create striped
LUNs (hdisks)
• Four 3+P (or 2+2) RAID arrays
• One (or more) LUNs per RAID array
• Each LUN is spread across 4 drives
• GPFS
– Stripes by default when multiple one LUNs configured per
filesystem.
– Strip size is configurable
• ASM
– Stripes by default when multiple one LUNs configured per
ASM disk group.
– Strip size is 128k (Fine-grained) or 1M (Coarse-grained)
• single-instance filesystems
– Use AIX PP or LV striping
– Use AIX Logical Volume 0 offset (9i Release 2 or later) for RAW LVs
Use Scalable Volume Groups (VGs), or use “mklv –T O” with Big
VGs Requires AIX APAR IY36656 and Oracle patch (bug 2620053)
• 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)
• AIX parameters
– minservers: minimum # of AIO server processes(systemwide)
• AIX 5.3 default = 1 (systemwi de), 6.1 default = 3 (per CPU)
• Overview
• Memory
• CPU
• I/O
• Network
• Miscellaneous
• Overview
• Memory
• CPU
• I/O
• Network
• Miscellaneous