Bogdan
the reason for this question it's that i creat a 20 process and send to
cluster , anyway i just have only 2 computer in cluster and every computer
are SMP with 2 cpu.
the reason for the question it's to see in the same time the computer use
the both cpu that he have or only one.
-marcelo
On Wed, 17 Mar 2004, Bogdan Costescu wrote:
>On Tue, 16 Mar 2004, Marcelo Roitburd wrote:
>
>> how i can know what cpu it run the processor not just the hostname?
>
>MPI doesn't have such capabilities, so you'll have to call some
>functions of your own.
>
>It depends very much on the OS where the processes are running. Some
>OSes (like SGI's IRIX) have the concept of processor sets where a
>process is assigned such a set and any threads/processes created by
>this process can never execute on other processors.
>On Linux, using the standard kernel, it is not possible to confine a
>process to a given CPU. There were CPU affinity patches since kernel
>2.2 days, more recently there is some work in this direction related
>to NUMA systems (like Opteron SMP).
>
>The question is: why do you want to know on which CPU the process is
>running ? Do certain CPUs from the system have special properties ? Or
>do you want to know if it's a physical CPU or a logical one (when
>using hyperthreading) ?
>
>
--
-------------------------------------------
Marcelo Roitburd | 4th year computer sci.
marcelo_at_[hidden] | cell phone: 055-390817
Minha vida foi uma sucessao de acasos felizes
criminalista e imortal Evandro Lins e Silva
|