Subject: Re: top and CPU/RUN
To: Chris Amthor <amthor@chroam.de>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-sparc
Date: 04/12/2003 20:13:19
On Sat, Apr 12, 2003 at 07:33:07PM +0200, Chris Amthor wrote:
> Hi all,
> 
> I've a question about the process-management of NetBSD:
> 
> When I run the "top" utility, it shows always one process (itself, of
> course) on CPU, but sometimes multiple processes as "RUN".
> 
> (i) How comes that more than one process can be "RUN"? What exactly
> does "RUN" mean?

it means runnable: it would be on CPU if there was more CPU.

> 
> (ii) What is about machines with more than one CPU? (Since I don't
> have one, I connot figure out this myself). Is there one process "CPU"
> for each processor on SMP systems?

Yes:
25145 bouyer    62    0   932K 1428K CPU/1      0:45 88.92% 88.92% tcsh
10454 bouyer     2    4    82M   98M select/0 428:23  5.37%  5.37% opera
    6 root      18    0     0K   91M syncer/1 110:20  0.10%  0.10% [ioflush]
 2488 bouyer    28    0   204K  940K CPU/0      0:00  0.51%  0.05% top

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 24 ans d'experience feront toujours la difference
--