Date: Sun, 16 Nov 2008 06:40:57 -0800 From: Jeremy Chadwick <koitsu@FreeBSD.org> To: Ott =?iso-8859-1?Q?K=F6stner?= <OttK@zzz.ee> Cc: freebsd-questions@freebsd.org Subject: Re: top incorrectly reporting process time Message-ID: <20081116144057.GA3864@icarus.home.lan> In-Reply-To: <49202F59.7050802@zzz.ee> References: <49202F59.7050802@zzz.ee>
next in thread | previous in thread | raw e-mail | index | archive | help
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 |
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081116144057.GA3864>