From owner-freebsd-questions@FreeBSD.ORG Sun Nov 16 14:41:12 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B17E106568C for ; Sun, 16 Nov 2008 14:41:12 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA04.westchester.pa.mail.comcast.net (qmta04.westchester.pa.mail.comcast.net [76.96.62.40]) by mx1.freebsd.org (Postfix) with ESMTP id 348688FC20 for ; Sun, 16 Nov 2008 14:41:11 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA10.westchester.pa.mail.comcast.net ([76.96.62.28]) by QMTA04.westchester.pa.mail.comcast.net with comcast id fno41a0030cZkys54qh8n6; Sun, 16 Nov 2008 14:41:08 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA10.westchester.pa.mail.comcast.net with comcast id fqgx1a0092P6wsM3WqgyUW; Sun, 16 Nov 2008 14:40:59 +0000 X-Authority-Analysis: v=1.0 c=1 a=rk3OoIYMtrsA:10 a=AGMKkuXPI-8A:10 a=QycZ5dHgAAAA:8 a=u69_v4ge6XhYLnnUB1EA:9 a=y_A8NvwwWDiPHeYbrrYA:7 a=Npm-pZiMqmOFnzJPeoHrrfYECu8A:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 86B0C33C36; Sun, 16 Nov 2008 06:40:57 -0800 (PST) Date: Sun, 16 Nov 2008 06:40:57 -0800 From: Jeremy Chadwick To: Ott =?iso-8859-1?Q?K=F6stner?= Message-ID: <20081116144057.GA3864@icarus.home.lan> References: <49202F59.7050802@zzz.ee> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <49202F59.7050802@zzz.ee> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-questions@freebsd.org Subject: Re: top incorrectly reporting process time 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, 16 Nov 2008 14:41:12 -0000 On Sun, Nov 16, 2008 at 04:34:01PM +0200, Ott Köstner wrote: > On several FreeBSD machines I have the following problem: What FreeBSD version? (It matters) > # top -bUmysql > last pid: 99112; load averages: 0.22, 0.12, 0.09 up 2+06:07:05 > 16:17:43 > 132 processes: 1 running, 131 sleeping > > Mem: 718M Active, 2494M Inact, 455M Wired, 77M Cache, 214M Buf, 213M Free > Swap: 4096M Total, 4096M Free > > > PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU > COMMAND > 1079 mysql 9 20 0 81564K 60268K sigwai 1 0:01 0.00% mysqld > > > ^^^^^^^ > ------------------------------------------------------------------------------------------------------------ > > 1015 mysql 1 8 0 7056K 1368K wait 1 0:00 0.00% sh > > > However mysqld time is actually > > # ps -ax|grep mysql > 1015 con- I 0:00.01 /bin/sh /usr/local/bin/mysqld_safe > --defaults-extra-file=/var/db/mysql/my.cnf > 1079 con- S 70:03.64 [mysqld] > ^^^^^^^^^^^ > ------------------------------------------------------------------------------------------------------------ > > 99156 p0 S+ 0:00.00 grep mysql > > Anyone who can explain this? Does the behaviour change if you mount /proc? (This would mainly apply to RELENG_6 and earlier only) -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |