*BSD News Article 75764


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.hawaii.edu!wongc
From: wongc@Hawaii.Edu (Christopher Y L Wong)
Subject: Re: CPU Utilization
X-Nntp-Posting-Host: uhunix2.its.hawaii.edu
Message-ID: <Dvt75A.Fqu@news.hawaii.edu>
Sender: news@news.hawaii.edu
Organization: University of Hawaii
X-Newsreader: TIN [version 1.2 PL2]
References: <4u34m6$qt3@news.hits.net>
Date: Thu, 8 Aug 1996 07:51:10 GMT
Lines: 45

Chris Wong (wongc@hits.net) wrote:
: I guess my previous post didn't get through.  Anyhow... I can't seem to
: get CPU percentages or any form of CPU utilization except uptime.

: Has anybody experienced this?  Is there something that isn't set up
: correctly?

: I'm using 2.1.0 btw.

: I've lived with it for so long but now...

I'm getting stuff like this:

dementia:/home2/wongc% vmstat 1
 procs   memory     page                    disks   faults      cpu
 r b w   avm   fre  flt  re  pi  po  fr  sr f0 w0   in   sy  cs us sy id
 1 0 0 23156  4848    3   0   0   0   2   0  0 11369472  246   17   6  0 0 0
 0 0 0 27416  4844    2   0   0   0   0   0  0  0  242   56   9  0  0  0
 0 0 0 27416  4844    1   0   0   0   0   0  0  0  238   34   6  0  0  0
 0 0 0 27416  4844    1   0   0   0   0   0  0  0  238   34   6  0  0  0

load averages:   0.06,  0.07,  0.02 18:40:06 29 processes:  1 running, 28 sleeping
Cpu states:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  0.0% idle
Memory: 12M Active, 620K Inact, 2480K Wired, 2140K Cache, 1324K Free
Swap:   72M Total, 66M Free, 8% Inuse

  PID USERNAME PRI NICE   SIZE   RES STATE   TIME   WCPU    CPU COMMAND
 9389 root      18    0   964K 1316K sleep   0:04  0.00%  0.00% tcsh
etc...

USER       PID %CPU %MEM   VSZ  RSS  TT  STAT STARTED       TIME COMMAND
root      9395  0.0  1.3   460  224  p2  R+    6:40PM    0:00.04 ps ux
root         1  0.0  0.5   436   76  ??  Is   Fri03PM    0:00.56 /sbin/init --
root         2  0.0  0.1     0   12  ??  DL   Fri03PM    0:02.78 (pagedaemon)
root         3  0.0  0.1     0   12  ??  DL   Fri03PM    0:02.37 (vmdaemon)
root         4  0.0  0.1     0   12  ??  DL   Fri03PM    5:48.70  (update)
root        60  0.0  1.1   184  192  ??  Ss   Fri03PM    2:36.02 syslogd
etc.. 0.0% all the way down.

ps ux SHOULD have some %CPU.
__
StrangeQuark
*sigh*
--
Any sufficiently advanced bug is indistinguishable from a feature.  -Kulawiec