Operating System - HP-UX
1829581 Members
4033 Online
109992 Solutions
New Discussion

Processor-Process Binding on HP UX 11i

 
manu_5
Frequent Advisor

Processor-Process Binding on HP UX 11i

Hi,
Can Anybody let me know how to create a processor set in HP UX and bind a Process Id TO the same .Like in sun we have psrset and pbind .How to do the same in HP
6 REPLIES 6
Steven Gillard_2
Honored Contributor

Re: Processor-Process Binding on HP UX 11i

This functionality is available as of 11i with the Processor Sets bundle:

http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=PSETS

Without that, you can still bind a process to a single CPU with the mpsched command. See the mpsched(1) man page for details.

Regards,
Steve
Sunil Sharma_1
Honored Contributor

Re: Processor-Process Binding on HP UX 11i

hi,

there is no way in hp unix that you can bind any process to perticuler CPU as we can do it in Solaris.

For HP Unix you have to bye a separate product called HP PRM(Process Resource Manager) with the help of PRM you can get this functionality.

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
manu_5
Frequent Advisor

Re: Processor-Process Binding on HP UX 11i

Hi Steven,

Thanks for the response , But i am not able to find the man page of "mpshed".
Steve Lewis
Honored Contributor

Re: Processor-Process Binding on HP UX 11i

HP-UX does support processor affinity, which has 2 levels of binding.

This is not as comprehensive as the processor sets package or PRM.

Man mpctl shows that you can either force a process to be bound to a cpu, or (preferrably) give a process affinity to a cpu, allowing the HP-UX scheduler to override if necessary. You can also discover how many cpus are installed.

See the attached C program which binds a process id (arg 1) to a cpu (arg 2).