Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Oct 2002 08:35:10 -0700
From:      Nathan Kinkade <nkinkade@dsl-only.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: Top not showing correct CPU utilization
Message-ID:  <20021018153510.GB36930@sub21-156.member.dsl-only.net>
In-Reply-To: <20021018045345.E71AC3C35@sitemail.everyone.net>
References:  <20021018045345.E71AC3C35@sitemail.everyone.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Oct 17, 2002 at 09:53:45PM -0700, Elite Scholar wrote:
> Environment
> FreeBSD mybox.com 4.7-STABLE FreeBSD 4.7-STABLE #2: Sun Oct 13 16:41:48 PDT 2002     scholar@mybox.com:/usr/obj/usr/src/sys/MYKERNEL  i386
> 
> Description
> Built and installed custom kernel.  All seemed to have gone well except when I run "top".  It always shows 0.00% Utilized.  I know that setiathome should be showing 90's + utilization.  The weird part about this is that I did a "shutdown now" and I cut power to my box too early.  Then when I turned mybox back up "top" was working again.  When I did a dmesg to see what happened.  I saw an error stating that "/" was improperly unmounted.  So I figured that it's fixed but to make sure I did a "shutdown -r now" to see if it happens again.  And sure enough..  Back to 0.00% Utilization.  Any help would be appreciated.
> 
> last pid:   220;  load averages:  1.00,  0.97,  0.78                                       up 0+00:24:06  21:19:32
> 31 processes:  2 running, 29 sleeping
> CPU states:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  0.0% idle
> Mem: 33M Active, 14M Inact, 16M Wired, 60K Cache, 15M Buf, 61M Free
> Swap: 241M Total, 241M Free
> 
>   PID USERNAME   PRI NICE  SIZE    RES STATE   TIME   WCPU    CPU COMMAND
>   149 nobody      48  10 16556K 15380K RUN    22:55  0.00%  0.00% setiathome
<snip>

How did you upgrade your machine?  Did you download ALL system sources
and do a `make buildword -> make buildkernel -> make installkernel ->
reboot -> make installworld'?  I'm not sure if this is your problem, but
frequently when problems like this are aired on the list it turns out to
be a problem related to userland code being out of sync with the kernel
code.  Verify that all your sources are up to date.

Nathan


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




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