Peter Memishian wrote:
>  > # list the number of "configured" CPUs
>  > # (this is the maximum number available to the current OS
>  > # instance, but note that this may change after a reboot)
>  > $ ksh93 -c 'getconf NPROCESSORS_CONF'
> 
> That's not the maximum, that's the current number configured (aka ncpus in
> the kernel).  That is, it can change in response to DR events --
> e.g. cpu_configure() -> mp_cpu_configure() -> cpu_add_unit().

Ok... I learned something new... :-)
... and welcome to CR #6869888 ('AST/ksh93's "getconf" does not
recognize "NPROCESSORS_MAX"') ... ;-/

> _SC_NPROCESSORS_MAX is the maximum (aka max_ncpus in the kernel).

Ok... but isn't this just the theoretical limit supported by the kernel
? Or is this value calculated from the physically available CPUs ?

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz at nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)

Reply via email to