Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Jun 2005 09:43:40 +0300
From:      Laszlo Vitos <vitos.laszlo@gmail.com>
To:        freebsd-amd64@freebsd.org
Subject:   top showing incorrect CPU and WCPU on amd64?
Message-ID:  <200506030943.40215.vitos.laszlo@gmail.com>

next in thread | raw e-mail | index | archive | help
--Boundary-00=_cw/nCs4APN9Fnxh
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello,

I observed a strange behavior of top on FreeBSD 5.4-RELEASE on AMD64. It seems 
like the CPU and WCPU columns in top are an average over the running time of 
a process. A small test program confirmed this. It sleeps for 2 seconds, then 
goes over a few iterations of: hogs the cpu in a loop, then sleeps again for 
a few seconds.
The result: CPU and WCPU never reach 100%, nor 0%, they are growing/shrinking 
in small increments during the process' run time, depending on whether the 
process is sleeping or looping.
Attached is the test program. Can anyone confirm whether this is the expected 
behavior (and if so, why?)?

Thanks in advance,
laca

--Boundary-00=_cw/nCs4APN9Fnxh--



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