From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 19 19:28:14 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DA2F3C41 for ; Tue, 19 Aug 2014 19:28:14 +0000 (UTC) Received: from mx1.scaleengine.net (beauharnois2.bhs1.scaleengine.net [142.4.218.15]) by mx1.freebsd.org (Postfix) with ESMTP id B2EFD36AB for ; Tue, 19 Aug 2014 19:28:14 +0000 (UTC) Received: from [192.168.1.2] (senat1-01.HML3.ScaleEngine.net [209.51.186.5]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id 008173A0FC for ; Tue, 19 Aug 2014 19:28:13 +0000 (UTC) Message-ID: <53F3A564.8070202@freebsd.org> Date: Tue, 19 Aug 2014 15:28:36 -0400 From: Allan Jude User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Re: stopped processes using cpu? References: In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LdRWu2V8oeX8hrP86qOFPGCkvE87uPsMJ" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Aug 2014 19:28:14 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --LdRWu2V8oeX8hrP86qOFPGCkvE87uPsMJ Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 2014-08-19 15:21, Dieter BSD wrote: > 8.2 on amd64 > Top(1) with no arguments reports that some firefox processes are using = cpu > dispite being stopped (via kill -stop pid) for at least several hours. > Adding -C doesn't change the numbers. Ps(1) reports the same. > Interestingly, a firefox that isn't stopped is (correctly?) reported as= > using 0 cpu. The 100% idle should be correct, but who knows. >=20 > last pid: 51932; load averages: 0.07, 0.99, 1.42 up 14+19:02:56 08:4= 8:28 > 267 processes: 1 running, 138 sleeping, 128 stopped > CPU: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle > Mem: 1665M Active, 653M Inact, 240M Wired, 95M Cache, 372M Buf, 815M Fr= ee > Swap: 8965M Total, 560K Used, 8965M Free >=20 > PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND= > 44188 a 9 44 0 303M 187M STOP 113:19 13.43% firefox= -bin > 92986 b 11 44 0 164M 62848K STOP 0:18 5.03% firefox= -bin > 16507 c 11 44 0 189M 88976K STOP 0:13 0.24% firefox= -bin > 2265 root 1 44 0 248M 193M select 625:38 0.00% Xorg > 51271 d 10 44 0 233M 128M ucond 12:12 0.00% firefox= -bin > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.o= rg" >=20 I wonder if jhb@'s new top code solves this. He adjusted the way CPU usage is tracked to be more responsive, and not based on averages --=20 Allan Jude --LdRWu2V8oeX8hrP86qOFPGCkvE87uPsMJ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJT86VnAAoJEJrBFpNRJZKfbNYP/3Ebs/0uWT8uZF4IC/9qIafO S3U2GDpt9QH7BLhfn3LLa8zDRF7cBdy01uPNPtjAo9zOWByt5QFs6b9BliMq1HLM f8swamTFHuHJFFHGu2qyLA6AwsMkZtE/jdkBT7eYzQD9iip/A2GvLzpR/H6onkyQ Bj8EP4piMD8RC5ntXPTJ9Fj72PJQozwtX7Ikjh8PdrEFXgW66fRIJz1fXf1JjmsH t4vABZWe4XGvqE391pGXyFR/l/5J94+OOOgZkcU30oh0aohrso1LgdwMMmjzb5MY O25b8yJ8yqwawFDge+dkTPCNB05o5UNCpa/ENnev+vXQLmgbSHhwHhrqrRQam65i QhUeB8kRGz+CB9RajxF3x1bKYZzbY1sgIflmuUIV+b9sBBMaFZ5YjZFKKOamTr+M sU10vd2JRxEkdZ6MI0k45cOfaVvtL+goMypbNfpsA7WcDzXiUBZfhTVVRlunqvbR gZWYKNrSd9GIWaEbyekko7LvXGg+fS1ul4TUGXK3kNSOBu79w7bIqh3DfNYx59hW zNhxGsR8+o6LJZEQGOUVEdgBPgV11udAneoEWkskYi49QnzjxurfRzpor6Sfs6rQ vBE6ZXjpj4ou+1ZbB8wWkjrYNGqv48qw3Q/mVb1jHYOsmpMI1tjHAUtnY7kD6117 fbIiXZ9YHtTCUpOIeLzM =oiZv -----END PGP SIGNATURE----- --LdRWu2V8oeX8hrP86qOFPGCkvE87uPsMJ--