Operating System - HP-UX
1855308 Members
2986 Online
104109 Solutions
New Discussion

Re: Does anybody know "Affinity" ?

 
Koichi Nomura
New Member

Does anybody know "Affinity" ?

Does anyone know HP-UX system utility called Affinity ?

I am in trouble with the problem which a cause isn't understood about.
The process of the network application is unusually finished with the SMP
environment once in one month.
And I cannot recover the application until the parent process is killed because
the process occupy the TCP port.
It doesn't occur except for the SMP environment though it thinks that it is
probably a matter of application.

I knew existence of an unsupported HP-UX system utility to bind a particular
process and all the children processes it spawns to one particular CPU.

Please give me any information about the utility called Affinity.

Thanks,

Koichi Nomura
Beacon Information Technology Inc.
1 REPLY 1
Berlene Herren_1
Super Advisor

Re: Does anybody know "Affinity" ?

Program affinity(1) allows you to run a process on specified CPU on a
multiprocessor system. This improves MP throughput and helps the load
distribution.


Usage: affinity { -s spu_id | -q | -u } pid [ pid ..]
affinity -q all

Program affinity(1) can be used to set (-s), unset (-u) and
query (-q) the state of processor affinity of one or many processes.

The "-q all" returns all the processes that were bound to a certain
processor. This option requires q4 debugger and be accessible through your PATH
environment variable.
Also, this option is not supported on 9.X release.

Root privilege is required to do unset, set and "-q all" operations.

If a child process were forked after parent process's affinity was set,
then parent process's processor affinity will be inherited.


This program runs on 9.0, 9.04 and 10.X.

You might want to repost this to the hardware folks.

Berlene