From owner-freebsd-questions@FreeBSD.ORG Sun Jan 1 19:34:34 2006 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 390CB16A422 for ; Sun, 1 Jan 2006 19:34:34 +0000 (GMT) (envelope-from kirk@strauser.com) Received: from kanga.honeypot.net (kanga.honeypot.net [208.162.254.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43DEA43D83 for ; Sun, 1 Jan 2006 19:34:26 +0000 (GMT) (envelope-from kirk@strauser.com) Received: from localhost (localhost [127.0.0.1]) by kanga.honeypot.net (Postfix) with ESMTP id CC59B9B4B9 for ; Sun, 1 Jan 2006 13:34:24 -0600 (CST) Received: from kanga.honeypot.net ([127.0.0.1]) by localhost (kanga.honeypot.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 98498-12 for ; Sun, 1 Jan 2006 13:34:21 -0600 (CST) Received: from kanga.honeypot.net (unknown [IPv6:2001:470:1f01:224:1::2]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by kanga.honeypot.net (Postfix) with ESMTP id 9763798CBD for ; Sun, 1 Jan 2006 13:34:21 -0600 (CST) From: Kirk Strauser To: freebsd-questions@freebsd.org Date: Sun, 1 Jan 2006 13:33:00 -0600 User-Agent: KMail/1.8.3 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2348950.Hm5rVoqemm"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200601011334.18506.kirk@strauser.com> X-Virus-Scanned: amavisd-new at honeypot.net Subject: What's using my system? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Jan 2006 19:34:34 -0000 --nextPart2348950.Hm5rVoqemm Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I'm staring at "top" running on my 6.0-STABLE system. It's my desktop machine, and also serves a light web/mail load (including a few jails). Basically, the system should be idle about 99% of the time when I'm not actively doing something on it. And yet it's not. The CPU never gets above about 75% idle, but top never shows any processes doing much of anything. The "last pid" field only rarely increases, so I'm relatively sure there's no processing forking off children that die too quickly for top to notice them. So, what could be using my CPU? And other than top and tailing various logfiles, what tools could help me find out? Example top output: last pid: 72475; load averages: 0.26, 0.80, 1.69 = up 28+21:59:16 13:26:30 214 processes: 4 running, 210 sleeping CPU states: 14.7% user, 0.0% nice, 10.5% system, 3.9% interrupt, 70.9% id= le Mem: 752M Active, 186M Inact, 219M Wired, 63M Cache, 112M Buf, 23M Free Swap: 4096M Total, 161M Used, 3934M Free, 3% Inuse PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMM= AND 61660 root 1 96 0 89288K 74624K select 37:50 1.71% Xorg 61791 kirk 1 96 0 34704K 25600K select 12:17 1.12% kdei= nit 61822 kirk 1 96 0 40616K 28980K select 14:55 1.03% kdei= nit 68111 kirk 1 96 0 33584K 23292K select 0:16 0.15% kdei= nit 1525 ldap 3 20 0 134M 7136K kserel 80:59 0.00% slapd 61811 kirk 3 20 -76 16516K 10860K kserel 76:40 0.00% artsd 1442 mysql 5 20 0 59576K 2752K kserel 44:14 0.00% mysq= ld 1449 nagios 3 20 0 3900K 1228K kserel 37:36 0.00% nagi= os 61864 kirk 3 96 0 78260K 61128K RUN 25:34 0.00% amar= okapp 83630 bind 1 4 0 12024K 8704K select 14:49 0.00% named 1400 mailman 1 8 0 8828K 2716K nanslp 14:15 0.00% pyth= on2.3 1403 mailman 1 8 0 8532K 4088K nanslp 13:35 0.00% pyth= on2.3 1397 mailman 1 8 0 9016K 2700K nanslp 12:47 0.00% pyth= on2.3 1398 mailman 1 8 0 8792K 5216K nanslp 12:26 0.00% pyth= on2.3 =2D-=20 Kirk Strauser --nextPart2348950.Hm5rVoqemm Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDuC655sRg+Y0CpvERAlgOAJ9CcfNqbEkNiZiAa4KM5TAuveNxyACfdl5D 9tT3pdMyq/pShPz10zlHaRc= =5sYL -----END PGP SIGNATURE----- --nextPart2348950.Hm5rVoqemm--