The "C" field in top on an SMP machine

The "C" field in top on an SMP machine

Post by Shaun Rowlan » Fri, 18 Jun 1999 04:00:00



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/

 
 
 

The "C" field in top on an SMP machine

Post by Andreas Kle » Sat, 19 Jun 1999 04:00:00




Quote:> 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 :-)

>   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

C like Cable TV....
You have two cable tv's built in ..

Aeh, CPU's .. ;-)

--
Andreas Klemm                               http://www.FreeBSD.ORG/~andreas
                                  http://www.freebsd.org/~fsmp/SMP/SMP.html
                                powered by Symmetric MultiProcessor FreeBSD
Latest song from our band: http://www.freebsd.org/~andreas/mp3/schaukel.mp3

 
 
 

The "C" field in top on an SMP machine

Post by David Malo » Sat, 19 Jun 1999 04:00:00



>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.

It is something like this - it may be the last cpu it was running on.
('cos top can't processes getting rescheduled while it is running the
info it shows could be inconsistant on occasion).

        David.

 
 
 

1. ***NYC***UNIX "C" and VAX "C" Programer/Analysts $75K-85K

We are searching for professionals with 3 to 5 years experience with
UNIX or VAX "C" programming.

Our clients are NY and NJ based International  Financial Firms.

If you have what it takes, we will make the introduction for you for
the right fit.

Let us know your knowledge base so we can present the position that
fits your interests and needs.

Contact: Andre K. Papp


E. And T. Associates
Phone: (212) 780-9194
Fax:     (212) 979-6180

2. Microchannel mksysb on PCI, 4.2.0

3. xml parser

4. ***NYC***UNIX "C" and VAX "C" Programer/Analysts

5. Help With Linux Mozilla Browser

6. How to convert "A+B+C" into "A B C" in C shell (sh)?

7. My Own Little DLL Hell

8. ***NYC***UNIX "C" and VAX "C" Programer/Analysts $75K-85K

9. Trap "^C" "^Z" and "^\"

10. "top" command for SMP systems?

11. "top" like utility for Muliprocessor SUN Machine

12. top with SMP machines