Analyzing CPU usage


 
Thread Tools Search this Thread
Operating Systems AIX Analyzing CPU usage
# 8  
Old 10-22-2011
Quote:
Originally Posted by newaix
>>actually the server has 4 virtual cpus, is entitled to use 3.6 and being p5 that means 8 threads >>

Can you please clarify this.
your vmstat output says something like lcpu 8 ent 3.6 - if you would run lparstat -i you would see that you have under the value of virtual cpus active 4 virtual cpus.

With micropartitioning you do not have 'physical' cpus at all. What you effectively have is cpu time allowance. So in your setup you are allowing to utilize the system by default 90% time of 4 cpus. With the number of virtual cpus you are allowing the system to spread its load across 4 physical cpus. And each virtual cpu can keep the cpu up to 100% of the time if the workload does require it - if a virtual cpu is not needed at all by the workload, it is folded (given back to the cpu pool of the frame for the other lpars to use it if they need it).

Entitled cpu (time) is guaranteed to your lpar - that means if your lpar is asking for those cpus, it will get them no matter how busy the frame pool is. Ideally this value should be set to the average utilization of any given lpar over a 24 hrs cycle. Virtual cpus are the maximum allowance of cpus that can be used. The difference between ent cpu and virtual cpus comes from the frame pool - activated but currently not used by other lpars cpus that have been either not directly assigned as entitled cpus to other lpars or being handed back to the cpu pool by the scheduler as currently not required. Ideally this is set to the maximum peak utilization value of your lpar and should be higher than your peak utilization. Virtual cpus are always 'full cpus' as each virtual cpu can grow to 100% cpu time. If you reach the amount of cpus (vmstat -Iwt output - pc column) or if your runqueue (the very first column in the same output) is frequently exceeding the amount of lcpus (very top of the output - 8 in your case) than you do not have enough virtual cpus entitled. Each virtual cpus gives you 2 lcpus or threads available to the applications.

If you change the amount of virtual cpus without changing your ent cpus, than this actually means that you are spreading your cpu time allowance across more physical cpus allowing your lpar to be more flexible and the frame to better utilize resources. How much the right amount for your lpar is depends on various different factors like what are your applications are doing.
If your applications are doing many threads with only little load (like typical webservers) than many virtual cpus worth little entitlement (like 10 virtual cpus for 1 ent cpu) might make sense. If you have a multithread medium load workload like the typical oracle DB than you should experiment on what seems to be the optimum for your lpar but usually something between 25 and 50% will be most likely ideal for your lpar (1 ent cpu, 2-4 virtuals). If you have a few big thread workload (like the typical sybase workload with one engine) than the ideal amount of virtual cpus is 1 virtual cpu per engine + 1 cpu for the kernel (on p5 + p6) or 1 virtual cpu per engine (on p7) where one virtual cpu should be between 25% and 80% of one entitled cpu (again depending on what your DB is doing - fewer for oltp, more for reporting workloads. Generally a virtual cpu should not be worth more than 80% of an entitled cpu or the entire virtualization doesnt make any sense.
Regards
zxmaus
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Overall CPU Usage

Hi Guys, I am a newbie on the forum. This is my first post, so first of all I would like to introduce myself. I am a SAS Analyst programmer working for an Health Insurance client. SAS is installed on a 16 CPU AIX Server with partitions running with shared processor. I have couple of... (2 Replies)
Discussion started by: saurabhiim2003
2 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. UNIX for Dummies Questions & Answers

CPU usage

can anyone tell me How to check memory and CPU usage of a certain process (1 Reply)
Discussion started by: ccp
1 Replies

7. Programming

CPU usage and memory usage

Please tell me solaris functions/api for getting following information 1- Function that tells how much memory used by current process 2- Function that tells how much memory used by all running processes 3- Function that tells how much CPU is used by current process 4- Function that tells how... (1 Reply)
Discussion started by: mansoorulhaq
1 Replies

8. UNIX for Dummies Questions & Answers

cpu usage

when i got the cpu usage values of the all process running in my sytem i see that 140% of the cpu is used. (using ps aux command) i have a 4 cpu system. can we say that averagely 35% of each cpu is used? and if i want to speak more precisely, how can i find out that, which cpu is used at... (4 Replies)
Discussion started by: gfhgfnhhn
4 Replies

9. 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

10. Filesystems, Disks and Memory

cpu usage

hi, In response to your cpu usage answer I too read sys/sysinfo.h but , if we put these values to access the repective time fields in the array pst_cpu_time which is a member of the structure pst_dynamic values doesn't seem to match, why is like this? (0 Replies)
Discussion started by: sushaga
0 Replies
Login or Register to Ask a Question