Friday, July 28, 2017

▷ Logical cpu (논리적 CPU 개수)

[ 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

◈ Recent Post

▷ UITest demo with TestOne (Mobile, Keypad and Drag until found tip)

[ UITest Demo Environment ] 1. UITest Solution: TestOne 2. Description 데모 설명    How to use keypad, and to drag until found.     키패드를...

◈ Popular Posts