Operating System - HP-UX
1833496 Members
2868 Online
110052 Solutions
New Discussion

Dedicating a CPU for a process

 
noname_2
Occasional Contributor

Dedicating a CPU for a process

Hi!
Is it possible in HPUX11i to dedicate a cpu for a specific process?
What do I mean?
I have some heavy process, that I want to know it gets the max. attention a CPU can give it.
I want that CPU to handle only and only that process, and not others, even if it has idle time.
I guess that if such a thing is possible, than only root can do it... but I don't know where to look for such a feature.

10x,
Noam
-
8 REPLIES 8
Pete Randall
Outstanding Contributor

Re: Dedicating a CPU for a process

Noam,

It's up to the application via a "set_affinity" call (or something like that), there's no way to bind a process to a particular processor.

Pete

Pete
Bill McNAMARA_1
Honored Contributor

Re: Dedicating a CPU for a process

Dietmar Konermann
Honored Contributor

Re: Dedicating a CPU for a process

You can configure either use processor affinity (see mpctl(2) or, beginning with 11.11 mpsched(1)).

Another option would be the use of the new PSET (processor set) feature, introduced with 11.11 plus patches. Using PSETs you can define subsets of processors and move processes to that subsets. The PRM (Process Resource Manager) also allows the utilization of PSETs.

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
MANOJ SRIVASTAVA
Honored Contributor

Re: Dedicating a CPU for a process

Noam


If u ahve a 32 bit application then u need care aas that is not mutlithreaded and it will grab one cpu and work , but if u want to priortise eetc then u need to have something like process resource manager .


Manoj Srivastava
Sritharan
Valued Contributor

Re: Dedicating a CPU for a process

Hi,

You can also use PRM(Process Resource Manager)to allocate the cpu to handle the specific process.

Check out this link for more information.

http://docs.hp.com/hpux/onlinedocs/B8733-90001/B8733-90001.html


Thankz & Regardz
Sri
Known is a drop...unknown is an ocean -> quote from a movie
Jonathan Fears
Trusted Contributor

Re: Dedicating a CPU for a process

As some others have mentioned in other replies, HP Process Resource Manager (PRM) will be able to help. PRM allows groups to be created based on processor sets (Psets). PRM PSET groups are assigned whole CPUs instead of shares of available CPU cycles like other PRM groups. The use of Psets provide dedicated on-demand CPU for only the processes, applications, or users assigned to that group. No others are allowed to borrow the CPU(s) even if idle. PRM can also control memory allocation for Psets. To find out more about HP PRM, visit http://www.hp.com/go/prm. Information regarding a PRM trial product is also available from this site. The trial PRM product, licensed for a 90-day trial period, allows you to try a fully functional version of PRM.

Hope this helps,
Jonathan Fears
Gordon_3
Regular Advisor

Re: Dedicating a CPU for a process

HI all,

Regarding this interesting thing thread, wanna to know more on this, anybody know, say if bounding the process the single CPU, will it affect the job scheduling of that single process, what I mean is since that process only can use , say CPU 1, but somehow now CPU1 running busy job because of some job switch into CPU1, what will that single process do? Wait? Pls share yr point of view ,thx.

Gordon
Gordon
Jakes Louw
Trusted Contributor

Re: Dedicating a CPU for a process

The command "psrset" can be used to dedicate processors. HP doesn't like telling people about this, but it's FREE and bundled with 11i.......
Trying is the first step to failure - Homer Simpson