From owner-svn-src-all@FreeBSD.ORG Thu Nov 12 16:03:10 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 278891065693; Thu, 12 Nov 2009 16:03:10 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail03.syd.optusnet.com.au (mail03.syd.optusnet.com.au [211.29.132.184]) by mx1.freebsd.org (Postfix) with ESMTP id AE7878FC24; Thu, 12 Nov 2009 16:03:09 +0000 (UTC) Received: from besplex.bde.org (c220-239-235-116.carlnfd3.nsw.optusnet.com.au [220.239.235.116]) by mail03.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id nACG2jir024197 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 13 Nov 2009 03:02:48 +1100 Date: Fri, 13 Nov 2009 03:02:45 +1100 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org To: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= In-Reply-To: <86d43n23r0.fsf@ds4.des.no> Message-ID: <20091113022937.P1408@besplex.bde.org> References: <200911030928.nA39SjLx085597@svn.freebsd.org> <20091103214231.H23957@delplex.bde.org> <4AF4B6B2.3090706@delphij.net> <20091111230915.B3510@besplex.bde.org> <20091112050515.GA15002@server.vk2pj.dyndns.org> <86d43n23r0.fsf@ds4.des.no> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1144117182-1258041765=:1408" Cc: src-committers@FreeBSD.org, d@delphij.net, Peter Jeremy , svn-src-all@FreeBSD.org, Xin LI , Bruce Evans , svn-src-head@FreeBSD.org 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 16:03:10 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1144117182-1258041765=:1408 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Thu, 12 Nov 2009, [utf-8] Dag-Erling Sm=C3=B8rgrav wrote: > Peter Jeremy writes: >> 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. > > ...if by "a while" you mean "a year or two", because I can't imagine > that restriction surviving much longer than that. You can already get > off-the-shelf hardware with 64 threads per die. Can you imagine NCPU hitting a power wall or other technical barrier at not much larger than 64? > If screen real-estate > is a concern, we can switch the scale from 100 to 1, so 1.0 is full tilt > on one thread, etc., and use "%.5g", which should work for up to 99999 > threads (9999900%) The extra character needed for this is one of the smallest problems resulting from NCPU being huge. The problem expands like O(log(NCPU)) and causes a non-fatal formatting error when it occurs. Other problems expand like O(NCPU). A nearby one is the "pigs" display in systat. This wants to display a on single screen without scrolling, so it will soon take a 6 metre high display to fit just the idle pigs on a 1024- CPU system. These take at most 100% CPU each so they will be sorted after multi-threaded pigs taking more, but they will be sorted before most single-threaded pigs, thus displacing the latter from the window except with > 6 meter high displays. Bruce --0-1144117182-1258041765=:1408--