Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Oct 2001 14:25:26 -0700 (PDT)
From:      Matt Sykes <matt-sykes@excite.com>
To:        mikea <mikea@mikea.ath.cx>
Cc:        freebsd-questions@freebsd.org, freebsd-stable@freebsd.org
Subject:   Re: 0.00% CPU for all processes
Message-ID:  <11182819.1003181127845.JavaMail.imail@patti.excite.com>

next in thread | raw e-mail | index | archive | help

On Mon, 15 Oct 2001 16:14:44 -0500, mikea wrote:

>  On Mon, Oct 15, 2001 at 01:50:51PM -0700, Matt Sykes wrote:
>  
>  > Looks like it works!
>  > 
>  > In top, cvsup gradually comes up to about 40%, stays there a while,
>  > then disappears (I couldn't think of another longish process to test
>  > with).  I guess that's correct.  Before it would start at 2% then
>  > quickly go back to 0%.
>  > 
>  > dmesg says "Timecounter 'PIIX' frequency 3579545"; I guess that's
>  > alright.
>  > 
>  > One thing which surprises me, though --- all other processes are zero.
>  > Is this normal?  This is my first time seeing FreeBSD run.  I have an
>  > identical box here running linux (and each box runs a minimum of
>  > services), where at least top will show nonzero CPU percentage in top,
>  > usually around 0.5%.  Does linux have more fine-grained timing, or is
>  > it cheating, or does the margin of error render this test essentially
>  > meaningless anyway?
>  
>  You could install Setiathome; it's a useful thing to do and it will
>  definitely keep your CPU 100% busy all the time. 
>  
>  Here's a quite typical "top" display for my 2xPIII-866 machine: 
>  
>  > last pid: 23745;  load averages:  2.00,  2.02,  2.00                   
up 6+22:34:59  16:10:31
>  > 90 processes:  3 running, 87 sleeping
>  > CPU states:  0.2% user, 98.6% nice,  1.0% system,  0.2% interrupt, 
0.0% idle
>  > Mem: 132M Active, 687M Inact, 143M Wired, 35M Cache, 112M Buf, 5664K
Free
>  > Swap: 858M Total, 4K Used, 858M Free
>  > 
>  >   PID USERNAME PRI NICE  SIZE    RES STATE  C   TIME   WCPU    CPU
COMMAND
>  >   436 nobody    62   1 15524K 15360K RUN    1 161.2H 98.97% 98.97%
setiathome
>  >   439 nobody    62   1 19632K 19452K CPU0   0 161.2H 98.24% 98.24%
setiathome
>  > 23745 mikea     29   0  2032K  1096K CPU1   0   0:00  0.94%  0.24% top
>  >   508 mikea      2   0 63724K 60848K select 0  36:54  0.00%  0.00%
XF86_SVGA
>  >   322 root       2   0   900K   444K select 1  31:46  0.00%  0.00%
moused
>  >   237 root       2   0   524K   320K select 0   4:02  0.00%  0.00% natd
>  >   531 mikea      2   0  2348K  1476K select 0   2:43  0.00%  0.00%
xclock
>  >   395 root       2   0  1972K  1192K select 1   2:29  0.00%  0.00% nmbd
>  >   530 mikea      2   0  2440K  1616K select 0   1:48  0.00%  0.00%
xload
>  >   261 root       2 -12  1284K   784K select 1   1:34  0.00%  0.00% ntpd
>  >   410 root       2   0  2328K  1400K select 0   0:46  0.00%  0.00%
httpd
>  >   572 root       4   0  3988K  2612K bpf    1   0:44  0.00%  0.00%
tcpdump
>  >   578 root       2   0  2496K  1620K select 0   0:41  0.00%  0.00%
sendmail
>  >   512 mikea      2   0  2812K  2140K select 1   0:15  0.00%  0.00%
fvwm2
>  >   906 root       2   0  2652K  2044K select 0   0:14  0.00%  0.00%
named
>  >   387 root       2   0   532K   300K select 0   0:06  0.00%  0.00%
dhclient
>  >   254 root       2   0   936K   584K select 1   0:05  0.00%  0.00%
syslogd
>  >   616 mikea      2   0  4580K  3772K select 1   0:04  0.00%  0.00%
xterm
>  > 22246 mikea      2   0 16704K 14264K select 1   0:04  0.00%  0.00%
netscape.bin
>  
>  This was with these services running:
>  Apache, VNC, 2 telnet sessions, natd and ipfw for the other 5
>  boxes in my network, and bunches of other stuff. Don't expect
>  to see them unless they really use enough CPU to be noticeable
>  -- and modern CPUs generally are fast enough that little things
>  like telnet and natd just won't show up. 
>  

You showed my point, I think.  Top shows at 0.24% for your
machine, and your CPU is many times faster.  Since mine is
*always* at 0.00%, I'm still not completely convinced my 
clock problem has been solved.

-Matt







_______________________________________________________
Send a cool gift with your E-Card
http://www.bluemountain.com/giftcenter/



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?11182819.1003181127845.JavaMail.imail>