linux에서 제공하는 파일 시스템으로서 커널의 관련된 정보들을 다수 포함한다.
/proc/cpuinfo 에는 해당 시스템의 cpu 정보를 나타낸다.
multicore, hyperthreading 여부에 따라서 sibling의 값이 변한다.
cpu(개수)- core(개수) - hyperthreading 여부(1/0)
1-1-0 : 1
2-1-0: 1
1-1-1 : 2
1-2-0 :2
2-2-0 : 2
2-2-1 : 4
이를 통해 cpu 개수를 구하는데 사용할 수 있다.
참고 링크
http://doc.callmematthi.eu/static/webArticles/Understanding%20Linux%20_proc_cpuinfo.pdf
https://serverfault.com/questions/326035/what-does-siblings-mean-in-proc-cpuinfo
What does siblings mean in /proc/cpuinfo?
Does it mean the number of virtual processors in a physical processor?
serverfault.com
'컴퓨터공학 > 운영체제&컴퓨터구조' 카테고리의 다른 글
멀티쓰레드란 (0) | 2019.11.02 |
---|---|
멀티 코어란? (0) | 2019.11.02 |