On Fri, Jun 02, 2000 at 05:24:31PM -0400, Johan Kullstam wrote:
> Rod Moten <[EMAIL PROTECTED]> writes:
> 
> > I know this question has been asked before, but can't recall the answer.
> > How can you determine which processor a process it is running on will it is
> > executing?
> 

A patched top will do that:

  PID USER     PRI  NI  SIZE  RSS SHARE LC STAT %CPU %MEM   TIME COMMAND
24112 root      12   5  3912 3912  1156  2 R N  16.5  0.0   0:00 cc1
24163 root      14   5  3716 3716  1144  3 S N  15.1  0.0   0:00 cc1
24170 root      12   5  3572 3572  1148  1 R N  14.6  0.0   0:00 cc1
24174 root      12   5  3380 3380  1144  2 R N  14.6  0.0   0:00 cc1
24018 root      20   5  5712 5712  1540  1 R N  12.8  0.1   0:00 cc1
24115 root      12   5  4520 4520  1160  1 R N  12.8  0.1   0:00 cc1
24136 root      12   5  4836 4836  1212  2 R N  12.8  0.1   0:00 cc1
24148 root      13   5  4004 4004  1156  0 R N  12.8  0.0   0:00 cc1
24166 root      12   5  3456 3456  1148  1 R N  12.8  0.0   0:00 cc1
23931 root      20   5  5816 5816  1544  2 R N  12.3  0.1   0:01 cc1
23904 root      18   5  5728 5728  1544  3 R N  11.0  0.1   0:01 cc1
24087 root      12   5  5484 5484  1512  2 R N  10.5  0.1   0:00 cc1

It has 4 CPUs. LC indicates on which CPU a process is running on.


H.J.
-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/dmentre/smp-howto/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]

Reply via email to