Operating System - HP-UX
1833431 Members
3121 Online
110052 Solutions
New Discussion

bind a process to a processor

 
Charles McCary
Valued Contributor

bind a process to a processor

Group,

quick question - Sun has a command called "pbind" that allows a sysadmin to bind a process to a particular processor. Does anyone know of a similar command in HP?

tx,

C
10 REPLIES 10
Christopher Caldwell
Honored Contributor

Re: bind a process to a processor

Buy PRM (process resource manager) :-(
Patrick Wallek
Honored Contributor

Re: bind a process to a processor

No such command that I know of.

The closest thing I can think of is an add-on product to HP-UX (costs $$$) called Process Resource Manager. I'm not sure that this product will do what you require, though. Not sure it's possible in HP-UX.
A. Clay Stephenson
Acclaimed Contributor

Re: bind a process to a processor

HP Offers a product called PRM (Process Resource Management) that will do that and more.
If it ain't broke, I can fix that.
Charles McCary
Valued Contributor

Re: bind a process to a processor

Any guestimate on cost?
Patrick Wallek
Honored Contributor
harry d brown jr
Honored Contributor

Re: bind a process to a processor

mpsched controls the processor (spu), or locality domain (locality-domain-id) on which a process executes. It can do this by binding a process to a particular processor or locality domain, or by setting the launch policy for the process.

from the man pages of mpsched

live free or die
harry
Live Free or Die
harry d brown jr
Honored Contributor

Re: bind a process to a processor

If you are running 10.20, there is also a way to peg a process to a cpu via a kernel hack, and unfortunately I don't remember how. Anyone have a kernel tuning manual?

live free or die
harry
Live Free or Die
Santosh Nair_1
Honored Contributor

Re: bind a process to a processor

HPUX has something called processor affinity. Its a method used on SMP systems to lock a process to a particular CPU. Look at the mpctl(2) system call.

Hope this helps.

-Santosh
Life is what's happening while you're busy making other plans
Deshpande Prashant
Honored Contributor

Re: bind a process to a processor

HI
The system call "mpctl" can be used to assign a process to a cpu. Check "man mpctl"
Other way will be to use th HP PRM software.

Thanks.
Prashant.
Take it as it comes.
Roger Baptiste
Honored Contributor

Re: bind a process to a processor

Charles,

I don't think PRM actually binds a process to a processor. It rather sets limits on the amount of CPU given to a process.

Regarding binding a process, i am not sure whether it worth the trouble, unless you are doing it at the application/programming level using multi-threading.

There is a hp doc which you can refer:
Doc id - UNX1030249

HTH
raj

Take it easy.