From owner-freebsd-xen@FreeBSD.ORG Fri May 18 11:44:00 2012 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F1FEF106566B for ; Fri, 18 May 2012 11:44:00 +0000 (UTC) (envelope-from hugo@barafranca.com) Received: from mail.barafranca.com (mail.barafranca.com [67.213.67.47]) by mx1.freebsd.org (Postfix) with ESMTP id BB1138FC08 for ; Fri, 18 May 2012 11:44:00 +0000 (UTC) Received: from localhost (unknown [172.16.100.24]) by mail.barafranca.com (Postfix) with ESMTP id CAA00ED for ; Fri, 18 May 2012 11:27:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at barafranca.com Received: from mail.barafranca.com ([172.16.100.24]) by localhost (mail.barafranca.com [172.16.100.24]) (amavisd-new, port 10024) with ESMTP id hZt0GLRsHxpy for ; Fri, 18 May 2012 11:26:46 +0000 (UTC) Received: from [192.168.1.1] (a89-152-174-115.cpe.netcabo.pt [89.152.174.115]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.barafranca.com (Postfix) with ESMTPSA id 9958499 for ; Fri, 18 May 2012 11:26:45 +0000 (UTC) Message-ID: <4FB631EE.1050000@barafranca.com> Date: Fri, 18 May 2012 12:26:38 +0100 From: Hugo Silva User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: "freebsd-xen@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: top seems to report wrong CPU usage (HVMPV) X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 May 2012 11:44:01 -0000 Hello, 89 processes: 4 running, 71 sleeping, 14 waiting CPU: 77.1% user, 0.0% nice, 21.1% system, 1.8% interrupt, 0.0% idle Mem: 151M Active, 194M Inact, 96M Wired, 3508K Cache, 60M Buf, 41M Free Swap: 512M Total, 596K Used, 511M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU COMMAND 82983 2002 77 0 115M 103M RUN 0:02 15.97% cc1plus 13 root -8 - 0K 48K - 2:20 0.98% geom{g_down} 11 root 155 ki31 0K 16K RUN 19.7H 0.00% idle 12 root -60 - 0K 224K WAIT 1:12 0.00% intr{swi4: clock} When running virtualized (hvm+pv, haven't really tried just hvm) I keep noticing that there's a huge discrepancy between the %cpu top claims a process is using vs the total cpu% being used. In the above example, that is the view from a FreeBSD 9.0-rel-p1 hvm+pv amd64 jailhost (cc1plus is running in a jail); -SH was given to top. From inside the jail, we see: CPU: 90.8% user, 0.0% nice, 9.2% system, 0.0% interrupt, 0.0% idle Mem: 154M Active, 187M Inact, 100M Wired, 8568K Cache, 60M Buf, 36M Free Swap: 512M Total, 596K Used, 511M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU COMMAND 83454 78 0 118M 106M RUN 0:02 19.97% cc1plus There is a *huge* discrepancy. I'm not sure what could be the cause. If it helps, the dom0 is running Xen 3.3.2 on NetBSD -current. Is anyone else seeing similar behavior from the system? Thanks, Hugo