Re: svn commit: r198848 - head/bin/ps

[ Available lists | Index of svn-src-head | Month of Nov 2009 | Week of 12 Nov 2009 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Robert Watson <rwatson@FreeBSD.org>
Date
12 Nov 2009 14:18:28
Subject
Re: svn commit: r198848 - head/bin/ps
Message-ID
alpine.BSF.2.00.0911121416230.11129@fledge.watson.org


[ Hide this part ]
 
On Fri, 13 Nov 2009, Bruce Evans wrote:

>>> Just print %CPU in %4.0f format when it is >= 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.
>
> Oops.

With 128-thread hardware just around the corner, we should be working to scrub
assumption of 32 or 64 core limits wherever we find them. I don't know what
the next "reasonable" limit is, perhaps 1024, but arrays indexed by MAXCPU are
becoming decreasingly useful in that light. The dynamic per-CPU stuff for the
kernel addresses some but not all of these problems.

Robert N M Watson
Computer Laboratory
University of Cambridge


Elapsed time: 0.282 seconds