Showing posts with label AIX. Show all posts
Showing posts with label AIX. Show all posts

Tuesday, August 6, 2013

Large Pages for Oracle(tested and tried)


DBA        Shutdown database     
Unix         Configure support for large pages by setting the following kernel tunable parameters       
     value to set lgpg_size = 16777216 
     value to set lgpg_regions = 385      
     value to sev_pinshm = 1   
     vmo -p -o v_pinshm=1
     vmo -p -o lgpg_regions=385   (DBA to provide this value of 385)
     vmo -p -o  lgpg_size=16777216      (16MB page size)     
Unix         chuser capabilities=CAP_BYPASS_RAC_VMM,CAP_PROPAGATE <user_id>       
      Unix          run bosboot –a –d /dev/hdiskxx for each hdisk that has hd5 on it.
      otherwise the next reboot will take longer
Unix          Bounce server 
DBA         Set the env variable "ORACLE_SGA_PGSZ" to 16m in profile file of oracle user         
DBA         setup lock_sga=true in init.ora  
                 setup sga_target=6G  in init.ora for <user_id>
DBA          Startup database          
Unix          Verify that large pages are being used by oracle
                   ps -ef | grep _pmon
                   svmon -P <PID> | head
DBA          Verify that lock_sga is true        


Please keep in mind that once large pages are setup, if they are not used by Oracle, then they cannot be used for anything else resulting in excessive paging.

We need to either pursue enabling large pages aggressively until successfully enabled, or revert back to non-large page use until such time as resources can be brought to bear to successfully pursue this option. Otherwise the system is essentially useless.


Performance issues with Oracle/GPFS:

Performace degradation is expected when convertin from JFS2 (buffered filesystem) to GPFS (non-buffered filesystem) for the Oracle.

Before upgrade all non-kernel or application memory was utilized for filesystem cache (see MEMNEW tab in nmon reports). This cache was effectively preventing a large percentage of physical read I/O requests initiated by Oracle from being serviced by the I/O subsystem as it was already in the filesystem buffer cache. When the change was made to GPFS 64GB+ of buffer cache was removed. Which resulted all read I/O requests issue by Oracle are converted into physical I/O requests that must be serviced by the SAN. This is also confirmed by the marked increase in physical I/O being reported (see I/O sec in DISKSUMM tab in nmon reports).

Solution: 

1) Revert back to JFS2 from GPFS until required
2) Drastically increase size of database buffer cache in SGA (80GB (50% of total memory, could be easily added to SGA based on nmon report). This is highly recommended .

If option 2 is selected performance will still not go back to what is was before converting due to how blocks in a FTS scan are read/buffered in the database buffer cache The behavior is highly version specific. So although the impact will be minimal in the current database version (10.2.0.4), it will likely degrade again when upgrading to 11g due to a change in how multi-block are read/cached. 


Let me know if you need some help.

http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.prftungd/doc/prftungd/large_page_ovw.htm

Monday, August 5, 2013

AIX admin

I will be posting more on AIX administration going forward. Place for Unix admins.

I also work on EMC symmetrix/Cx and Netbackup. Used to work on TSM but havent worked on it for a while.

Feel free to drop in your comments.

Note: Most of the contents in my blog is inspired from other blogs or have been taken from vendors sites.

Saturday, August 3, 2013

Powerpath on AIX

Will write something soon, working on a resolution for PP 5.5.0.6 on AIX 6.1 TL8, corrupt ODM.

If any suggestions or questions let me know.

Monday, June 25, 2012

xpdf install on AIX 5.3 and 6.1

There is only one XPDF available on IBM website. version1.

We are currently running. version 3 on our AIX 5.3 & 6.1. I am not sure why they are behind.

http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/alpha.html

The RPMs required for installation are listed below. You can exempt one rpm. I think it it gettext.

Capture

Preserve Install

It is the easiest of the methods (default method).

Try to remove all the SAN Disks before initiating the install, so as to avoid deleting the data.

Make sure you a good mksysb image.

Common issues are 0554 when dealing with powerpath . (VERY IMPORTANT)

Do install the drivers first and then upgrade from the service pack.

Use the IBM link below , will solve the issue most of the time.

https://www-304.ibm.com/support/docview.wss?q1=led%20554&dc=DB520&rs=1209&uid=isg3T1000132&context=HW1A1&cs=UTF-8&lang=en&loc=en_US&wv=1