Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C Applications using only one AIX processor

Status
Not open for further replies.

polani

Instructor
Jun 4, 2003
159
CA
Guys,

On our AIX boxes , running with two processor ( MP Support installed - AIX 5.2 Ml05 )
i have continously monitored only processor utlization . It means that all the time , only one of the two processors is 100% busy while other one completely remain idle .

So it means that our application is using only one processor , irregardless of availaibility of two physical processors in server.

It is a C application , serving for trading system.

Now question is that , how i can cause this application and all it's inherited threads to use both of available processors ( rather than using one ) ?? Can WLM or bindprocessor help me in this regards ???,,, Sure enough , if this appliaction is single threaded , i can not ask my application vendor to make it multithreaded as they may charge company with huge amounts


Kindly advice the best possible solution

Regards

Polani


Here comes polani Once again!!!

P690 Certified Specailist
HACMP & AIX Certified Specailist
AIX & HACCMP Instructor
 
Can you confirm both CPU's are available

lsdev -C c processor


Mike

"A foolproof method for sculpting an elephant: first, get a huge block of marble, then you chip away everything that doesn't look like an elephant."

 
If checking mrn's hint turns out that you have 2 CPUs, then it might be interessting to see if your application works with only 1 or more processes and if they are single or multi threaded. You can check this with svmon -P and have a look for the process name (example from a TSM server process):

Code:
...
     Pid Command          Inuse      Pin     Pgsp  Virtual 64-bit Mthrd LPage
  397398 dsmserv          33139     3287      135    30769      N     Y     N
...

Notice the 'Y' at the 'Mthrd' column.

If it turns out to be mutli threaded, maybe ask the IBM support for help - something seems to be wrong. If not, try bindprocessor, but usually several single threaded processes are distributed over several CPUs without using bindprocessor.

If it is only 1 process and this is single threaded, your company has to check if it asked to buy an application for a mutli processor environment, making use of more than one CPU...

laters
zaxxon
 
Hi Guys

Thanks for many help

Yes i have checked again for processor availibility but svmon -p command for the application is showing that it is not multithreaded application
-----------------------------------------
svmon -p
--------------------------------

364616 KSE 14299 4769 3132 24894 N N N


So guys!! What will be the possible solutions for making the application run on two processors. Can bindprocessor or WLM help me to cause this application to use both processors ?????


Please advice

Thanks


Polani

Here comes polani Once again!!!

P690 Certified Specailist
HACMP & AIX Certified Specailist
AIX & HACCMP Instructor
 
If it consists of more than one single threaded process yes, if not no.

laters
zaxxon
 
Hi zaxxon,

when i grep the application process on AIX , it shows something like that
./KSBOrderRServer -f f/AIXCONF/KSBOrderRServer.conf

There are no child processes of this application existsing on AIX.

Does it mean , it is a single threaded application ? Even if it is true, can wlm not help me as i can allocate share of processing power of system ( which would be logically combination of two proceesors ) to the application class ????

Advices required!!


Polani




Here comes polani Once again!!!

P690 Certified Specailist
HACMP & AIX Certified Specailist
AIX & HACCMP Instructor
 
svmon -P" told you already, that this process is not using multi threading.

Children are not threads. Children are copies of their parents while threads are "light weight" processes, working for the "main" process itself.
You can list processes and their children with ps and other tools but not threads. For listing threads, I guess you need some other tool, which I don't know, but won't help you anyway since svmon told you a 'N'.

For WLM I don't have any experience, but just found the Redbook for it
laters
zaxxon
 
Single threaded apps run one one CPU. Check if your license allows more than one install on the same sevfer, under a different user ID and .profile.

If not, might be time to look for a new app.



BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top