1820695 Members
2444 Online
109627 Solutions
New Discussion юеВ

Bound and Unbound CPU

 

Bound and Unbound CPU

Hi, I have a question regarding how can I find out when I need to add more bound cpu in a vpar enviroment.

e.g: I have a cell with 4 cpu, 1 bound and 3 unbound, Java appl running, excesive use of cpu.

Regards
Christian
12 REPLIES 12
RAC_1
Honored Contributor

Re: Bound and Unbound CPU

I would not go for adding one more cput just for java. Are you up to date on java patches?? ps -efx|grep java_process

Look at initial heap size, max heap size etc. you should be fine if you control that and patches.

Anil
There is no substitute to HARDWORK
Alzhy
Honored Contributor

Re: Bound and Unbound CPU

Two options to modify CPU count on vPars:

(1) Use vparmgr the GUI

X-Windows environment
cd /var/opt/vparmgr/bin
./vparmgr
(Adjust

(2) Use the vParmodify Command

vparmodify -p vparname -m cpu::N

In your case, you mention you already have a total of 4 CPU's - 1 bound and 3 unbound. If this vPar allows for CPU's beyond 4 (check via vparstatus), then you can add CPU's to it from other cells via the above commands.

Hakuna Matata.
Craig Rants
Honored Contributor

Re: Bound and Unbound CPU

Christian,
You may want to look at your bound vs. unbound config.

Remember the rule:
Only bound processors can handle I/O interrupts.

If you have an I/O interrupt issue, you could be adversly affecting your one bound cpu.

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut

Re: Bound and Unbound CPU

Craig, that is the issue, I know that the bound cpu handle the I/O, in our environment whe have a lot of page in swap, and disk writes for loging.
My idea is to put 3 cpu bound and 1 unboud, but I need to find out if I realy need to put this amount of bound cpu.
In this case I don't care about to leave only one unbound cpu for migrating this cpu to diferent vpar.
Alzhy
Honored Contributor

Re: Bound and Unbound CPU

Hmm... I never thought the number of "bound CPUs" is a factor in I/O..? All of our vPar environments are configured to have a minimum of 1 and the nPar maximum CPU's with 1 bound CPU each for flexibility -- since most of our applications are CPU intensive.

If your vPar is CPU bound, then it is just simply a matter of adding more CPU's -- specially on Java environments..

How do you know you have an I/O interrupt problem?

Hakuna Matata.

Re: Bound and Unbound CPU

Nelson, this is the issue that I need to know how to find out, I see that I have a lot of I/O procceses,
For example, some Java proc. when it start, redirect 2 Gb of memory to the swap area, this is I/o proc.

Regars.
Alzhy
Honored Contributor

Re: Bound and Unbound CPU

Nope.. Java is simply a virtual memory hog... it requires an enormous amount of "virtual memory reservation".. which the system should provide but is not actually used (is. swapped/paged to/from..).

Eons ago, I used this tool on an early 11i system attached to a number of Storage arrays and other "instruments".. it allowed me to check on the status of IO Interrupts and also allow for migration from one CPU to another..

http://www.software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=INTRMIGR

But I really do not think your problem is with I/O interrupts... What kind of storage are you using? Also, what kind of work does Java do? RDBMS connection pooling? HTPC? Gene Sequencing?...



Hakuna Matata.

Re: Bound and Unbound CPU

Nelson, we have a 3 IAS app. server with j2ee containers, this app serve for the steel bussiness. work in "real time".
The jvm process RDBMS connections and business code.

Our storage is an XP 128
Craig Rants
Honored Contributor

Re: Bound and Unbound CPU

I agree with Nelson, JAVA is way more memory intensive than cpu intensive. However if you are able, it would be a quick vpar change and reboot to see if switching your bound/unbound config releaves your problem.

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Alzhy
Honored Contributor

Re: Bound and Unbound CPU

Great storage (XP128)... but how is your individual disk performance (sar -d 5 5 and make sure you do not have wait and svc times in excess of 10ms..).. also what does "sar 5 5) show you? Any significant WaitIOs?

And more importantly.. what speed CPU's are you using? rp8400,7410 or SD with 875Mhz CPU's?

What's your average number of ALL processes? No of ALL non-root/system processes?

Depending on the number of users, I'd say bump up your CPU's accordingly..
Hakuna Matata.

Re: Bound and Unbound CPU

Nelson:

-what does "sar 5 5) show you? Any significant WaitIOs?
No, I saw normal values


- what speed CPU's are you using? rp8400,7410 or SD with 875Mhz CPU's?
SD32 with pa8700+ (875 Mhz)

-What's your average number of ALL processes? No of ALL non-root/system processes?
210 Processess
61 running and 140 sleep (avg)

Regards


Alzhy
Honored Contributor

Re: Bound and Unbound CPU

How about memory & swap? How much physmem and swap did you allocate? Are you consistently near 100% CPU Util?

What's your dbc_max_pct set to?

Also, how many "java" processes related to Oracle and non-root? If you have at least a dozen AND you only have 4GB of RAM

Unless you have hundreds of users or hundreds of connects, your 4x875 should still have enough oomph to server your 3 IAS environments..

Other wise either it is a tuning issue or you really are CPU bound...
Hakuna Matata.