[ To find logical cpu count ]
AIX | bindprocessor -q | awk '{ print $NF+1 }' |
HP-UX | (pa-risc)
/opt/ignite/bin/print_manifest or ioscan -fknC processor (ia64) machinfo | grep -v 'core.*logical' | awk '/[0-9] logical/ { print $1 }' |
SunOS | psrinfo | grep 'on-line' | wc -l | awk '{ print $1 }' |
Linux | cat /proc/cpuinfo | awk '/processor/ { print }' | wc -l | awk '{ print $1 }' |
Windows | (wmic cpu get NumberOfLogicalProcessors | findstr /v NumberOfLogicalProcessors | findstr /v "^$" | Measure-Object -Sum | select Sum | findstr /v "^$" | select -Last 1).Trim() |
No comments:
Post a Comment