/proc/cpuinfo isn't available in Solaris. There are ways to count the number of physical CPUs available but the nature of Illumos Solaris is that several clients share their own "zone" on a server (almost like a VM) so if a server has 32 cpu's but the zone is only allocated 8 then the entire zone will be allowed to burst for a short time and then rate limited which is not ideal. the ideal solution is to allow an option like --processors to allow the number of processors to use to be set.
Hi,
Wanted to report another solaris specific issue. I can report this separately if needed:
get_proc()
{
set +e
nproc=$(grep -c processor /proc/cpuinfo)
[[ -z $nproc || $nproc -eq 0 ]] && nproc=1
set -e
}
/proc/cpuinfo isn't available in Solaris. There are ways to count the number of physical CPUs available but the nature of Illumos Solaris is that several clients share their own "zone" on a server (almost like a VM) so if a server has 32 cpu's but the zone is only allocated 8 then the entire zone will be allowed to burst for a short time and then rate limited which is not ideal. the ideal solution is to allow an option like --processors to allow the number of processors to use to be set.