CPU Binding in HP UX (psrset)

Hi All,

I would like to know the behaviour of psrset in the following model.

I have a 4 CPU machine on which i have a couple of databases running and a web application running.

supposing i have processers 0 1 2 and 3

I bind processor 0 and 1 to the web application.

This ensures that at any time the web application will not use anything other than the two processors 0 and 1.

I would like to know that at the same time can any of the other processes use these cpu's 0 and 1.

Bottom line :

  • I want a process to run exclusively on 2 cpu's only

  • I don't want these two cpu's to be exclusively available only for that process. ie if other processes require these cpu's they should be able to use them.

Is the above possible on HP UX 11.11 or 11i using psrset.

Thanks in advance.

Nilesh

I don't use psrset but the documentation says it won't work that way. I don't use mpctl(2) either but the documentation says that system call can do what you want.

Sounds like to me you want PRM, Process resource management.

http://docs.hp.com/en/B8733-90013/ch05s02.html

The problem is i cannot use PRM. This is not allowed by the web application.