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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CPU Partitioning on a H80 w/6 processors 1

Status
Not open for further replies.

Suza

MIS
Nov 21, 2000
4
US
Is there a way to bind a program (DB2 and WebSphere)to using only 1 processor in an RS6000 (besides turning 5 of the 6 off!)? They spawn MANY processes when started so the bindprocess command doesn't seem efficient. Apparently the sales guy told the powers that be here that it can be done........how?
 
You can try using workload manager that comes with 4.3.3.

NeoRisc
 
Thanks! However, I've read through the info on WLM and as I understand it it only binds percentages of total CPU and prioritizing processes. I don't think this would address the licensing issues I'm stuck with or - am I missing something?
 
Try using a script to start your daemons, and write that script to search for the daemon's PIDs and bind them to the processors...

I hope it works...
 
That's a good idea -- and isn't there a way to pick up the PID of a process you've just set to run in the background?
Mike
michael.j.lacey@ntlworld.com
 
Hi suza there is a command in aix called bindprocessor that allows you to run a process on a particular processor the syntax is bindprocessor Process ProcessorNum eg if you intend to bind a process with id 18456 to processor 1 you run bindprocessor 18456 1. Hope this works


odey
 
Hello (again)...

This is a valid Korn Shell method:
[tt]
some_daemon &
DaemonPid=$!
bindprocessor $DaemonPid ProcessorNumber
[/tt]

I hope it works...
 
thx Elgis, *that's* what I couldn't remember (the $! thing)
Mike
michael.j.lacey@ntlworld.com
 
thanks! I'll give it a shot. Actually the bindprocessor command was my first inclination, but DB2 and WAS do not spawn single parent PIDs so I thought using such a script would be too complicated. We'll see, eh?
Suza
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top