Not using all CPU's?


 
Thread Tools Search this Thread
Operating Systems AIX Not using all CPU's?
# 1  
Old 11-22-2012
LPAR is not using all CPU's

Hi guys,

I am a bit confused here,

I have attached the nmon report extracted from one of my systems.

I've never seen something like this. It appears that all the cpu usage is being utilized on one CPU and the others appear to be idle or hardly used. I've seen this in a few systems recently. Now I know that their paging space is not setup correctly. and I'm going though the steps to show them that it needs to be changed. I have attached a simplified nmon log if someone can look at it and tell me if they can see why only one cpu is being utilized would be great as I've not seen this before.

Here is the lparstat

Code:
Partition Number                           : 4
Type                                       : Shared-SMT-4
Mode                                       : Capped
Entitled Capacity                          : 4.00
Partition Group-ID                         : 32772
Shared Pool ID                             : 0
Online Virtual CPUs                        : 40
Maximum Virtual CPUs                       : 60
Minimum Virtual CPUs                       : 1
Online Memory                              : 65536 MB
Maximum Memory                             : 131072 MB
Minimum Memory                             : 4096 MB
Variable Capacity Weight                   : 0
Minimum Capacity                           : 0.10
Maximum Capacity                           : 6.00
Capacity Increment                         : 0.01
Maximum Physical CPUs in system            : 16
Active Physical CPUs in system             : 16
Active CPUs in Pool                        : 16
Shared Physical CPUs in system             : 16
Maximum Capacity of Pool                   : 1600
Entitled Capacity of Pool                  : 1500
Unallocated Capacity                       : 0.00
Physical CPU Percentage                    : 10.00%
Unallocated Weight                         : 0
Memory Mode                                : Dedicated
Total I/O Memory Entitlement               : -
Variable Memory Capacity Weight            : -
Memory Pool ID                             : -
Physical Memory in the Pool                : -
Hypervisor Page Size                       : -
Unallocated Variable Memory Capacity Weight: -
Unallocated I/O Memory entitlement         : -
Memory Group ID of LPAR                    : -
Desired Virtual CPUs                       : 40
Desired Memory                             : 65536 MB
Desired Variable Capacity Weight           : 0
Desired Capacity                           : 4.00
Target Memory Expansion Factor             : -
Target Memory Expansion Size               : -
Power Saving Mode                          : Disabled

During that day here was the nmon uptime:

Code:
    12:04AM   up 2 days, 9 hrs,  0 users,    load average: 39.55, 42.90, 44.14


Last edited by vpundit; 11-23-2012 at 01:38 PM..
# 2  
Old 11-22-2012
also here is the paging:

Code:
Page Space      Physical Volume   Volume Group    Size %Used Active Auto  Type Chksum
paging01        hdisk715          rootvg       12800MB     4   yes   yes    lv     0
paging00        hdisk715          rootvg       12800MB     4   yes   yes    lv     0
hd6             hdisk714          rootvg       29952MB     2   yes   yes    lv     0

# 3  
Old 11-22-2012
  1. Nobody needs so much paging space. Remove paging01 and 00 and shring hd6 to something reasonable like maybe 10GB to be on the safe side. If your system ever uses paging space, it will start to be very slow, usually. If the disks are SAN disks, it could be that it might a tad faster, but I would try to have enough memory or a tuned box to avoid paging at all costs. 54GB of paging space makes no sense at all.
    If anything continously uses paging space, you most probably have a memory leak somewhere. You can check processes using paging space with svmon -P; maybe consult the man page for details.
  2. I opened the nmon excel sheet, but I only see some overall statistics and something about CPU 4. You can use something like sar -P ALL 1 999 for example to have check for how much load is on your logical CPUs, but since there is SMT activated and the logical CPUs are no real CPUs, you can't say for sure which CPU is having much taffic or not. I was curious myself some time ago and asked Nigel Griffiths (nagger), author of nmon and a well-known AIX engineer/architect(?) in this thread (me as player2):
    developerWorks : AIX and UNIX : Performance Tools Forum : NMON: CPU total graph does not match ...
    What might be interessting is how the CPUs dispatch parallel requests. You can check this with mpstat -s 1 1 for utilization of your logical CPUs. If they are not about close percentage per non logical CPU, it might not be of a high benefit to have SMT activated. Can try this out maybe. You can turn off etc. SMT with smtctl; check the man page for it.
    You can also check if your processes are using multithreading, ie. take advantage of SMT by using svmon -P and check for the column with the appropriate heading "mthread" or something, don't remember exactly.

Last edited by zaxxon; 11-22-2012 at 03:58 PM.. Reason: smtctl not smtctrl
# 4  
Old 11-22-2012
Like zaxxon I agree that you have excessive paging space. And, basically, the fact that your application is using paging space in spite of having 64G byte of activated memory implies a poorly configured application. "Paging space" is so 1970-80's.

I have not looked at your nmon data, but from what you say in your first post it sounds as if your application is mono-threaded. This can be verified yes/no using
$ ps -emo THREAD

There are several ways to get an idea of how your processors are being scheduled: sar, topas, nmon (actually topas and nmon are the same program, different views of data), mpstat. However, I do not recommend 1 sec intervals. 5 sec is what I use when I am in a hurry, 10/15/60 seconds is what I prefer when observing a system live.
For a 24 hour nmon collection (to be viewed using nmon analyzer) I use a 360 second interval (6 minutes) for 240 samples per day.
# 5  
Old 11-22-2012
thanks for the info guys! really appriciate it. I know the paging space is excessive i haven't been here to long, i keep finding things like this.

I have to try some of those commands and run some compaires.

I had a test running just a few min ago and memory is hitting 99%.

Code:
┐
│ Memory ──────────────────────────────────────────────────────────────────────│
│          Physical  PageSpace |        pages/sec  In     Out | FileSystemCache│
│% Used       99.5%      2.4%  | to Paging Space   0.0    0.0 | (numperm) 14.0%│
│% Free        0.5%     97.6%  | to File System   12.5 3443.5 | Process   77.7%│
│MB Used   65224.7MB  1311.1MB | Page Scans        0.0        | System     7.8%│
│MB Free     311.3MB 54240.9MB | Page Cycles       0.0        | Free       0.5%│
│Total(MB) 65536.0MB 55552.0MB | Page Steals       0.0        |           -----│
│                              | Page Faults    4297.0        | Total    100.0%

# 6  
Old 11-22-2012
Most (or all) Unix'es and Linux'es show a very high mem usage as the part of RAM, that is not needed for processes, is used for file caching. Nothing to worry about, that's just normal.
# 7  
Old 11-22-2012
Quote:
Originally Posted by zaxxon
Most (or all) Unix'es and Linux'es show a very high mem usage as the part of RAM, that is not needed for processes, is used for file caching. Nothing to worry about, that's just normal.
thank you!

just one more question,

concerning the load average. I should be concerned about this now as that seems a bit high right? during the test i didn't see it reach as high but close to.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Why Entitlement CPU can't be set to same as Virtual CPU?

I read that Entitlement CPU should be set to max 75% compare to Virtual CPU. May I know the reason. I have set the Entitlement CPU = Virtual CPU on AIX . It works fine . Can you help to understand. (1 Reply)
Discussion started by: gabhanes
1 Replies

2. Red Hat

Esxi INTEL cpu vs esxi AMD cpu

Hi i have 2 esxi. one is amd based cpu and the other is intel based cpu. i have a redhat linux machine that was created in amd cpu esxi, now i need to migrate it (powered off) to INTEL based esxi. will the redhat machine will be OK with that? Thanks (2 Replies)
Discussion started by: guy3145
2 Replies

3. AIX

Entitled CPU lesser Than Used CPU !!

Hi All, It may be a n00b question, but i really want to know , How Entitled Capacity is less and Used CPU is more when there is no Free CPU is available in the managed system. I have 5LPARs in a MS with Dual VIO. Managed System CPU details Available: 0.20 Assigned to partitions: 15.80... (11 Replies)
Discussion started by: Thala
11 Replies

4. UNIX for Dummies Questions & Answers

Is it possible to combine multiple CPU to act as a single CPU on the same server?

We have a single threaded application which is restricted by CPU usage even though there are multiple CPUs on the server, hence leading to significant performance issues. Is it possible to merge / combine multiple CPUs at OS level so it appear as a single CPU for the application? (6 Replies)
Discussion started by: Dissa
6 Replies

5. Solaris

Difference between CPU CHIP and CPU ID

Hi All, What is the difference between CPU CHIP and CUP ID on SUN/ Oracle M5000 servers.. Thanks in advance (3 Replies)
Discussion started by: kumarmani
3 Replies

6. Solaris

CPU and CPU-Utilization

Hi, I am a weblogic Admin I our env there are 5 servers running in one Solaris 10 Sparc machine. But when i tried for process status using <top> command I got the following output load averages: 1.75, 2.18, 2.12; up 134+08:28:49 22:24:21 79 processes: 77 sleeping, 1 running,... (1 Reply)
Discussion started by: Joseph Antoine
1 Replies

7. Solaris

cpu-shares vs cpu-cap in solaris

Can anyone tell me difference between cpu-shares vs cpu-cap in solaris & how FSS will work with cpu-caps ? (9 Replies)
Discussion started by: fugitive
9 Replies

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

9. UNIX for Dummies Questions & Answers

how to get persistant cpu utilization values per process per cpu in linux (! top,ps)

hi, i want to know cpu utilizatiion per process per cpu..for single processor also if multicore in linux ..to use these values in shell script to kill processes exceeding cpu utilization.ps (pcpu) command does not give exact values..top does not give persistant values..psstat,vmstat..does njot... (3 Replies)
Discussion started by: pankajd
3 Replies

10. Solaris

How to down a particular CPU in a server, witch is having 16 CPU's

Hi.., my dout is a solaris server is having 16 cpu's. in tht one cpu running some error process, accupaying more space. I wanna down tht particular CPU only with out interrupting the other 15 CPU's. how can i do this. is there any command for this ?? (5 Replies)
Discussion started by: b.janardhanguru
5 Replies
Login or Register to Ask a Question