From owner-svn-src-all@FreeBSD.ORG Thu Nov 12 05:06:04 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 623511065670; Thu, 12 Nov 2009 05:06:04 +0000 (UTC) (envelope-from peterjeremy@acm.org) Received: from mail12.syd.optusnet.com.au (mail12.syd.optusnet.com.au [211.29.132.193]) by mx1.freebsd.org (Postfix) with ESMTP id A5D238FC1C; Thu, 12 Nov 2009 05:06:03 +0000 (UTC) Received: from server.vk2pj.dyndns.org (c122-106-232-83.belrs3.nsw.optusnet.com.au [122.106.232.83]) by mail12.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id nAC55GmW017225 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 Nov 2009 16:05:17 +1100 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.3/8.14.3) with ESMTP id nAC55GBB015217; Thu, 12 Nov 2009 16:05:16 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.3/8.14.3/Submit) id nAC55F14015216; Thu, 12 Nov 2009 16:05:15 +1100 (EST) (envelope-from peter) Date: Thu, 12 Nov 2009 16:05:15 +1100 From: Peter Jeremy To: Bruce Evans Message-ID: <20091112050515.GA15002@server.vk2pj.dyndns.org> References: <200911030928.nA39SjLx085597@svn.freebsd.org> <20091103214231.H23957@delplex.bde.org> <4AF4B6B2.3090706@delphij.net> <20091111230915.B3510@besplex.bde.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="d6Gm4EdcadzBjdND" Content-Disposition: inline In-Reply-To: <20091111230915.B3510@besplex.bde.org> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.20 (2009-06-14) Cc: svn-src-head@freebsd.org, Xin LI , svn-src-all@freebsd.org, src-committers@freebsd.org, d@delphij.net Subject: Re: svn commit: r198848 - head/bin/ps X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Nov 2009 05:06:04 -0000 --d6Gm4EdcadzBjdND Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2009-Nov-11 23:22:36 +1100, Bruce Evans wrote: >On Fri, 6 Nov 2009, Xin LI wrote: >> Will it sound reasonable to divide pcpu by ncpu and cap the number at 10= 0? > >I don't like that. It would break scripts even more than units changes. >It is hard for users to interpret too. Suddenly, processes taking >100% of 1 CPU would take 12.5% of 8 CPUs on a system with 8 CPUs, and >different %CPU on systems with a different number of CPUs. Solaris does this. I found it particularly annoying for identifying spinning, single-threaded processes - it's not as immediately obvious that 1.6% CPU means a spinning process on a T5000, and the granularity gets worse. >Just print %CPU in %4.0f format when it is >=3D 99.5 (or whatever rounds >to 100.0). This works up to 999.5 %CPU. Actually, %4.0f works up to 9999.5 %CPU because there's no '.' in the result. I think this is an excellent solution. And since FreeBSD currently has a hard limit of 64 CPUs, it's unlikely to be exceeded for a while. --=20 Peter Jeremy --d6Gm4EdcadzBjdND Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (FreeBSD) iEYEARECAAYFAkr7l4sACgkQ/opHv/APuIcj9ACfR+Ducpm4YRXDe3PfwM1D+H7E MbkAn0xiVXD1VR6SOsBdDzKmwK2oyvCd =1XgZ -----END PGP SIGNATURE----- --d6Gm4EdcadzBjdND--