출처:Intel Docs
출처:selfish-developer.com/
위 출처에서 언급되는 Big/Little 멀티코어 하드웨어는 ARM big.LITTLE솔루션내용으로 보임.
taskset
임.// taskset -pc {pid} : pinning 정보 보기
// taskset -pc {Masking ex) 0-3 or 1,2,3,4} {pid} : pinning 설정하기
user@user:/proc/4007/task/4007$ taskset -pc 4007
pid 4007's current affinity list: 0-3
user@user:/proc/4007/task/4007$ taskset -pc 1,2,3 4007
pid 4007's current affinity list: 0-3
pid 4007's new affinity list: 1-3
- 기본적인 물리적인 cpu 확인 방법은
/proc/cpuinfo
에서 가능함.- 그냥 봐도 가능하지만,
grep
을 이용하여 간략히 걸러서 볼 수 있음.
// 물리적인 cpu 개수
$ grep "physical id" /proc/cpuinfo | sort -u wc -l
// cpu 1개 당 물리적 코어 개수
$ grep "physical id" /proc/cpuinfo | sort -u wc -l
// cpu 전체 코어 개수
$ grep "physical id" /proc/cpuinfo | sort -u wc -l