Steve's Power Systems BlogPower BlogContactLog inRegister
  • Power Blog
  • Contact

  • Register

IBM Power Systems Blog

Power Systems
  • Front Page
  • Categories
  • Archives
  • Latest comments
  • « Finding AIX down level filesets.
  • IBM Power6 to Power7 Upgrade »

Configure AIX and Oracle to use 16MB large pages.

Posted by steve on 28 Mar 2011 in AIX Tuning, AIX Tips

Here are the basic steps to configure AIX and Oracle to use large pages.

The AIX operating system allows shared memory to be allocated in pinned memory for improved performance. Pinned memory is always present in real memory; it is not paged in and out. The primary advantage of using pinned memory for the Oracle System Global Area (SGA) is that I/O from pinned memory is optimized for improved path length.

This is possible because the asynchronous I/O routines do not need to pin the SGA memory each time it is used for an I/O operation. Because of this performance improvement, it is best to use pinned memory to allocate the Oracle SGA.

When the Oracle initialization parameter LOCK_SGA is set to TRUE, Oracle will allocate shared memory for the SGA using the AIX pinned memory. (Note: shmget() is called with the SHM_PIN flag set.) In addition to setting the Oracle LOCK_SGA parameter to TRUE, the AIX operating system must be configured to allow pinned memory to be used for shared memory.

 

Find out how much memory Oracle needs for the SGA. Either ask the DBA or:

ipcs -mb | grep oracle

m 1048583 0x17ea85fc --rw-r----- oracle dba 7348436992

 

The last number is the size in bytes.

Divide the SGA size by 16777216 (AIX large page size) and add one to the result.

bc

7348436992/16777216
438

 

Configure AIX VMM to allocate the required number of large pages now and at reboot time.

vmo -o lgpg_size=16777216 -o lgpg_regions=439
vmo -r -o lgpg_size=16777216 -o lgpg_regions=439

 

Allow users to pin memory pages.

vmo -o v_pinshm=1
vmo -r -o v_pinshm=1

 

Set the oracle user attributes for pinning memory and using large pages.

chuser capabilities=CAP_BYPASS_RAC_VMM,CAP_PROPAGATE oracle

 

Ensure that your DBA has setup oracle pfile/spfile with 'lock_sga=TRUE'

 

If using Oracle 10.2.0.4, there is an oracle bug (Metalink note: 728444.1) regarding setting the page size correctly.
You will need to ensure the following is set before starting a database at 10.2.0.4 only.

export ORACLE_SGA_PGSZ=16m

 

Check that oracle is running and using large pages. The important line is the one starting L and you should check that PoolSize and inuse both have non zero values.

svmon -G

PageSize   PoolSize       inuse        pgsp         pin     virtual

s    4 KB         -     3417484        9190     2133523     2430414

m   64 KB         -       42236           0       26763       42236

L   16 MB       439         439           0         439           0

 

 

Tags: 16MBAIXLarge PagesOraclesvmonvmo

No feedback yet


Form is loading...

July 2026
Mon Tue Wed Thu Fri Sat Sun
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
 << <   > >>

IBM Power Systems Blog

IBM Power Systems - Administration, Tuning and Optimisation. These posts are my own personal opinions and comments only.

Search

Categories

  • All
  • AIX Tips
  • AIX Tuning
  • Command Line Tips
  • HMC Tips
  • LPM Information
  • NIM Tips
  • Performance Testing
  • Power System Affinity
  • PowerHA Tips
  • SRIOV and vNIC
  • Scripts and One Liners
  • VIO Server Tips

Recent Posts

  • AIX NIM Hints and Tips
  • Finding Multiple Install Sources for AIX
  • PowerHA and EMC Busy Devices
  • AIX Random Password Generation
  • VIO Server 3.1.0 and ssh host keys
  • VIO Server 3.1.0 Items to Review
  • Just when you thought you understood idle CPU time!!
  • 40Gbit Adapter Performance Testing
  • LPM Copy Time Statistics
  • IBM HMC Upgrades

Recent Comments

  • steve on How to configure IBM SRIOV Adapters
  • Howard Coles on How to configure IBM SRIOV Adapters
  • steve on AIX mpstat and lssrad part 1
  • Charin Kumjudpai on AIX mpstat and lssrad part 1
  • Gagandeep on LPM and multiple vSwitches
  • Fant Steele on VIO Server 3.1.0 and ssh host keys
  • steve on AIX NIM Hints and Tips
  • alan wilcox on AIX NIM Hints and Tips
  • steve on AIX buf_mode attribute for Virtual Ethernet Adapters
  • Bernhar on AIX buf_mode attribute for Virtual Ethernet Adapters
  • Gery on Reading VLANs from the SEA Adapter
  • steve on Reading VLANs from the SEA Adapter
  • patrice on Reading VLANs from the SEA Adapter
  • steve on Reading VLANs from the SEA Adapter
  • steve on AIX buf_mode attribute for Virtual Ethernet Adapters
  • Chris K. on AIX buf_mode attribute for Virtual Ethernet Adapters
  • jovi on AIX or VIOS Errors: 29FA8C20 and 7BFEEA1F
  • steve on AIX or VIOS Errors: 29FA8C20 and 7BFEEA1F
  • jovi on AIX or VIOS Errors: 29FA8C20 and 7BFEEA1F
  • steve on Creating EtherChannel Devices from Command Line

This collection ©2026 by Stephen Diwell • Contact • Help • Responsive CMS

Social CMS software
Cookies are required to enable core site functionality.