AIX CPU usage


 
Thread Tools Search this Thread
Operating Systems AIX AIX CPU usage
# 1  
Old 10-01-2016
AIX CPU usage

hi,
We have two LPARs, both have same capacity and believe same configuration. ulimit settings for oracle user is unlimited for both LPARs. Installed oracle databases with same configurations on both LPARs, both databases sync every second so volume is same. Both LPARs/databases have identical jobs running at exact time.
We run net-backup process at same time on both LPARs every night. LPAR1 finishes in 30 min but LPAR2 takes 2 hours to complete.
When I observed, i noticed backup processes running on LPAR1 consuming 35 to 40% CPU for every PID. And i noticed backup processes running on LPAR2 consuming only 5 to 10% CPU for every PID.
I'm understanding that backup process in LPAR2 delays because it's not utilizing available CPU, please correct me if 'm wrong? Secondly how we can make or instruct the AIX to utilize more CPUs for the backup processes running on LPAR2?

-Thanks in advance
-Bala
# 2  
Old 10-03-2016
If you are certain that you are using the same disk infrastructure and there is no lower class of IO rate given by the SAN (or any other infrastructure, e.g. different number of paths, fabric port settings etc.) then my first, perhaps wildly inaccurate, guess would be a missing index.

This could lead to more IO and therefore less CPU because there is less CPU work to do, you are doing more waiting for IO.

If the LPAR is otherwise idle, have a look at the output from vmstat 10 10 and see what the Wait column (towards the very end) tells you.

Other things to consider might be lower memory which might be causing paging. From the same output, look at the pages in & out (somewhere in the middle) and that might illustrate that. You can also have a look at lsps -a and if it's a bit heavy that could be an indication of low memory.

Beyond that, you would be looking into the oracle parameter file for variations.


I hope that this helps,
Robin
# 3  
Old 10-03-2016
As Robin says especially have a look for IO.

In general it might be helpful to have nmon running for monitoring. So you can compare lot's of different system parameters from both hosts while holding them side by side.
# 4  
Old 10-03-2016
IO is high, IO could see from database side. I thought LPAR2 IO is high because it does not get sufficient CPU, am I making right statement?
# 5  
Old 10-04-2016
It depends what you name as IO. When you use for example the OS tool iostat you can see how bytes have been read/written but also the number of IOs and the time in percentage, how much has been spent for IO.
I am no Oracle DBA and have no access so I don't know what you see.

Way back we had some SAN storage, that was far from being reached it's max bandwith MB/s wise, but it had so many small IOs, it wasn't able to handle more.

So with just one or two sentences by you describing it, it is hard to guess around what could be the reason.
Since the task is running for a longer time, it is really recommended to monitor also for this time.
Please do youself a favour, download nmon (I think it is actually installed already with the OS these days) and have it run in the background and get this performance data on both boxes.
It is really easy to setup and when you have the data, use lpar2rrd and paint some pictures so you can compare those graphs to get a clue.

Just google for nmon ibm and you will find also the documentation with examples.
# 6  
Old 10-04-2016
I would still say to check that all the indices you expect exist and are valid on the server with the problem, something like:-
Code:
SELECT OWNER,INDEX_NAME,STATUS
FROM DBA_INDEXES
WHERE STATUS NOT LIKE 'VALID'
ORDER BY OWNER,INDEX_NAME ;

If it's not there, you can use DBA_OBJECTS instead and give it OBJECT_TYPE of INDEX

You could also recalculate the statistics that Oracle uses to pick how it uses the data/indices, with something like a REBUILD INDEX or COMPUTE STATISTICS etc.
Have you got an explain plan from the database to show you what it's doing when it is running a long transaction.

My favoured explanation is that it is either missing an index or not using one, consequently you end up reading the whole table (lots of IO) and performing the equivalent of a massive if in a loop to get the data you want. The explain plan is key. If you see something about a full table scan on a huge table, that is a very good bet.

Try to get a comparable one on the good side and see if there is a difference.

It's been ages since I had this sort of thing so I can't remember how you generate it. I think we might even have used a client tool (Toad or Oracle Discoverer perhaps?) to give us the information. There will be a DBA command line way too I'm sure. From memory (no pun intended) it might be to do with the view V$SQL_PLAN, but I no longer have access to systems like that any more.


I hope that this helps,
Robin
# 7  
Old 10-04-2016
This is a RMAN incremental backup. Why does it uses indexes for copying the file? I would agree if this is a long running SQL or any DML statements.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Tricky situation with process cpu usage - AIX

OS: AIX so we frequently receive a lot of cpu related alerts. all types of checks have been created to keep an eye on the cpu but a lot of these checks make too much noise as the CPU is always being seen as high. the system and application owners say there's no issue with the cpu. so now,... (6 Replies)
Discussion started by: SkySmart
6 Replies

2. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

3. Solaris

Multi CPU Solaris system shows 100% CPU usage.

Hello Friends, On one of my Solaris 10 box, CPU usage shows 100% using "sar", "vmstat". However, it has 4 CPUs and prstat and glance are not showing enough processes to justify high CPU utilization. ========================================================================= $ prstat -a ... (4 Replies)
Discussion started by: mahive
4 Replies

4. Solaris

current CPU usage, memory usage, disk I/O oid(snmp)

Hi, I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP. I want the oids for above tasks. can you please tell me that Thank you (2 Replies)
Discussion started by: S_venkatesh
2 Replies

5. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

6. AIX

Which tools can show the AIX CPU, Memory and I/O usage?

If somebody knows there are some tools can show how many CPU, memory useage on AIX and can automatically send email? Such as when setup if CPU is used over 80%, send alert by email automatically. Maybe BMC has this tool? (6 Replies)
Discussion started by: rainbow_bean
6 Replies

7. Shell Programming and Scripting

How to calculate Memory and CPU Usage on AIX

I have written a script that will calculate CPU usage and Memory usage of a particular process on AIX Unix. I know the PID and I am using the command -- # for CPU Usage MSG_CPU_USG=`ps uax | grep ${PID} | awk {'print $3'}` #for Memory Usage MSG_MEM_USG=`ps uax | grep ${PID} | awk {'print... (0 Replies)
Discussion started by: asutoshch
0 Replies

8. AIX

AIX 5.3 P570 - CPU Usage reports 1500000000.003

Does anyone had an issue with AIX reporting huge CPU Usage Times for jobs? I am seeing process using ps that are reporting billions for the CPU Times. This only seems to happen once in awhile. (0 Replies)
Discussion started by: vigsgb
0 Replies

9. UNIX for Advanced & Expert Users

Monitoring CPU usage on AIX 5.3 with SNMP

Hi I would like to monitor CPU usage ( %) , memory utilization and such on an AIX 5.3 with snmp. How would I do that ? :confused: If I do "snmpwalk -c public -v1 hosttomonitor" I get nothing about the CPU. I've done this on Linux ( not much trouble doing it on linux ) but I'm having a hard... (2 Replies)
Discussion started by: art
2 Replies

10. Programming

Monitor CPU usage and Memory Usage

how can i monitor usages of CPU, Memory, Hard disk etc. under SUN Solaries through a c program or java program i want to store that data into database so i can show it graphically thanks in advance (2 Replies)
Discussion started by: Gajanad Bihani
2 Replies
Login or Register to Ask a Question