From owner-freebsd-amd64@FreeBSD.ORG Fri Jun 3 06:43:46 2005 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 18F1616A41C for ; Fri, 3 Jun 2005 06:43:46 +0000 (GMT) (envelope-from vitos.laszlo@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id B231643D1D for ; Fri, 3 Jun 2005 06:43:45 +0000 (GMT) (envelope-from vitos.laszlo@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so614798wri for ; Thu, 02 Jun 2005 23:43:45 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:organization:to:subject:date:user-agent:mime-version:content-type:message-id; b=CdwU6TYMLB0RUeVjUYmXhbTDnJF64jBJ3dAT2J9w2H0bl5ndozC09mrStiBAjcQqbEgamRG41g1fZUpib3OcBtnwM7Z9H59pqtL1b9KVJJI9xlt/Cd+qpAiTN1t+A25P7Qy1A1prEqp1ijN/qWAoz9j7v/Urjp1XTlJ9jqE++iI= Received: by 10.54.39.69 with SMTP id m69mr1035614wrm; Thu, 02 Jun 2005 23:43:45 -0700 (PDT) Received: from laca.evol.ro ([193.230.202.166]) by mx.gmail.com with ESMTP id d6sm1012854wra.2005.06.02.23.43.44; Thu, 02 Jun 2005 23:43:45 -0700 (PDT) From: Laszlo Vitos Organization: - To: freebsd-amd64@freebsd.org Date: Fri, 3 Jun 2005 09:43:40 +0300 User-Agent: KMail/1.8 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_cw/nCs4APN9Fnxh" Message-Id: <200506030943.40215.vitos.laszlo@gmail.com> X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: top showing incorrect CPU and WCPU on amd64? X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jun 2005 06:43:46 -0000 --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--