I was wondering what the "C" field is in "top" on an SMP 3.2-RELEASE
box. Here is a sample of my top output: (I am building world now with
make -j8 and it is rocking all over :-)
last pid: 38852; load averages: 2.75, 1.17, 0.51 up 2+04:48:48 23:30:26
76 processes: 1 running, 72 sleeping, 3 zombie
CPU states: 24.1% user, 0.0% nice, 34.8% system, 0.2% interrupt, 40.9% idle
Mem: 78M Active, 10M Inact, 23M Wired, 4996K Cache, 7735K Buf, 7236K Free
Swap: 256M Total, 3508K Used, 252M Free, 1% Inuse
PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND
28008 rowland 2 0 29848K 27516K select 1 3:10 6.30% 6.30% XF86_SVGA
28662 rowland 2 0 2560K 1880K select 1 0:04 2.20% 2.20% xterm
272 root 2 0 788K 256K select 0 1:11 0.15% 0.15% moused
38772 root 2 0 400K 264K select 0 0:00 2.00% 0.10% make
I looked quickly at the src code for top, but I didn't get it from
that. I am going to check this out further soon, but I was wondering
if I could get a quick answer here. Is the "C" field the processor
which a process is running on? I would think that, but sometimes the
"STATE" says cup0 and the "C" says 1.
Thanks in advance.
--
http://www.cis.ohio-state.edu/~rowland/