From owner-freebsd-questions@FreeBSD.ORG Sat Jul 16 17:55:01 2005 Return-Path: X-Original-To: freebsd-questions@FreeBSD.org Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 53A3E16A41C for ; Sat, 16 Jul 2005 17:55:01 +0000 (GMT) (envelope-from leblanc@keyslapper.net) Received: from english-breakfast.cloud9.net (english-breakfast.cloud9.net [168.100.1.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id C9A7443D45 for ; Sat, 16 Jul 2005 17:55:00 +0000 (GMT) (envelope-from leblanc@keyslapper.net) Received: from english-breakfast.cloud9.net (localhost.cloud9.net [127.0.0.1]) by english-breakfast.cloud9.net (Postfix) with SMTP id 23157B25B for ; Sat, 16 Jul 2005 13:54:58 -0400 (EDT) Received: from keyslapper.net (250-119.customer.cloud9.net [168.100.250.119]) by english-breakfast.cloud9.net (Postfix) with ESMTP id 6A68EB19C for ; Sat, 16 Jul 2005 13:54:57 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by keyslapper.net (Postfix) with ESMTP id CA20111496 for ; Sat, 16 Jul 2005 13:54:56 -0400 (EDT) Received: from keyslapper.net ([127.0.0.1]) by localhost (keyslapper.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27030-07 for ; Sat, 16 Jul 2005 13:54:56 -0400 (EDT) Received: by keyslapper.net (Postfix, from userid 1001) id 8B17B11488; Sat, 16 Jul 2005 13:54:56 -0400 (EDT) Date: Sat, 16 Jul 2005 13:54:56 -0400 From: Louis LeBlanc To: FreeBSD Questions Message-ID: <20050716175456.GA63333@keyslapper.net> Mail-Followup-To: FreeBSD Questions Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Nq2Wo0NMKNjxTN9z" Content-Disposition: inline X-PGP-Key: http://www.keyslapper.net/~leblanc/leblanc-at-keyslapper-net.asc User-Agent: Mutt/1.5.9i X-Virus-Scanned: amavisd-new at keyslapper.net X-AntiVirus: Checked by Vexira Antivirus v1.5 Cc: Subject: Top output isn't quite right X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jul 2005 17:55:01 -0000 --Nq2Wo0NMKNjxTN9z Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I'm confused about the output from top in 5.4-RELEASE-p4. The gkrellm CPU monitor is telling me I'm running at 95% load while updating the portsdb, but top tells me everything is taking 0.0% of the CPU. It may have something to do with the CPU HT being enabled, but I don't know. The system has one physical CPU, but with HT, some processes run on CPU 0 while others run on CPU 1. Any idea how to get top to get the actual (or virtual) CPU loads? Here is the output I'm seeing: last pid: 82084; load averages: 2.10, 1.88, 1.17 up 9+17:06:23 13:47:44 131 processes: 3 running, 128 sleeping CPU states: 73.3% user, 0.0% nice, 23.5% system, 0.0% interrupt, 3.1% idle Mem: 296M Active, 477M Inact, 148M Wired, 27M Cache, 111M Buf, 44M Free Swap: 2048M Total, 70M Used, 1978M Free, 3% Inuse PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND 81981 root 8 0 1524K 1368K wait 1 0:00 3.00% 0.15% make 1024 root 96 0 181M 167M select 0 86:36 0.10% 0.10% Xorg 81993 root 8 0 816K 652K wait 0 0:00 1.00% 0.05% make 1067 userid 20 0 15016K 8040K kserel 0 241:36 0.00% 0.00% gkrellm 628 www 20 0 233M 11852K kserel 0 12:00 0.00% 0.00% java 250 root 96 0 3428K 1208K select 0 6:29 0.00% 0.00% ppp 804 mysql 20 0 56568K 1728K kserel 0 3:43 0.00% 0.00% mysqld 401 _pflogd -58 0 1592K 580K bpf 0 1:42 0.00% 0.00% pflogd 76688 bind 20 0 7004K 3648K kserel 0 1:10 0.00% 0.00% named 12360 root 4 0 36548K 34824K accept 1 0:55 0.00% 0.00% perl 12358 root 4 0 37232K 35204K accept 1 0:55 0.00% 0.00% perl 12361 root 4 0 43136K 40080K accept 1 0:54 0.00% 0.00% perl 41249 userid 96 0 3452K 1648K select 0 0:37 0.00% 0.00% xscree= nsaver 1050 userid 96 0 3384K 1740K select 0 0:34 0.00% 0.00% fvwm2 893 root 96 0 5448K 640K select 0 0:29 0.00% 0.00% nmbd 14699 root 4 0 3628K 392K select 0 0:23 0.00% 0.00% master 651 root 96 0 21852K 2192K select 0 0:20 0.00% 0.00% httpd 310 root 96 0 1360K 280K select 0 0:17 0.00% 0.00% syslogd 64422 root 96 0 2436K 1544K select 0 0:13 0.00% 0.00% fam 339 root 96 0 1508K 584K select 0 0:12 0.00% 0.00% rpcbind --=20 Louis LeBlanc FreeBSD-at-keyslapper-DOT-net Fully Funded Hobbyist, KeySlapper Extrordinaire :) Please send off-list email to: leblanc at keyslapper d.t net Key fingerprint =3D C5E7 4762 F071 CE3B ED51 4FB8 AF85 A2FE 80C8 D9A2 Corollary: If you are given a take-home exam, you will forget where you live. --Nq2Wo0NMKNjxTN9z Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFC2Unwr4Wi/oDI2aIRAlWyAKCHag/wZvD8ONR9ABvfG9Oq4UUp9QCghmCf xiTh0vADeD9b9xg6qCqzaQs= =lYWq -----END PGP SIGNATURE----- --Nq2Wo0NMKNjxTN9z--