"리눅스 하이퍼스레딩 확인"의 두 판 사이의 차이

5번째 줄: 5번째 줄:
==방법 1: cpuinfo==
==방법 1: cpuinfo==
<source lang='dos'>
<source lang='dos'>
[root@jmnote ~]# cat /proc/cpuinfo | grep 'cpu cores' | head -1
[root@jmnote ~]# cat /proc/cpuinfo | egrep 'siblings|cpu cores' | head -2
siblings : 8
cpu cores : 4
cpu cores : 4
[root@jmnote ~]# cat /proc/cpuinfo | grep 'siblings' | head -1
siblings : 8
</source>
</source>
:→ siblings가 cpu cores의 2배이므로 하이퍼스레딩 활성된 것임


==방법 2: dmidecode #1==
==방법 2: dmidecode #1==
<source lang='dos'>
<source lang='dos'>
[root@jmnote ~]# dmidecode -t processor | grep 'Core Count' | head -1
[root@jmnote ~]# dmidecode -t processor | egrep 'Core Count|Thread Count' | head -2
Core Count: 4
Core Count: 4
[root@jmnote ~]# dmidecode -t processor | grep 'Thread Count' | head -1
Thread Count: 8
Thread Count: 8
</source>
</source>
:→ Thread Count가 Core Count의 2배이므로 하이퍼스레딩 활성된 것임


==방법 3: dmidecode #2==
==방법 3: dmidecode #2==

2014년 6월 18일 (수) 17:39 판

Checking if HyperThreading is enabled or not?
리눅스 하이퍼스레딩 확인
리눅스 하이퍼쓰레딩 활성화 확인 방법

1 방법 1: cpuinfo

[root@jmnote ~]# cat /proc/cpuinfo | egrep 'siblings|cpu cores' | head -2
siblings	: 8
cpu cores	: 4
→ siblings가 cpu cores의 2배이므로 하이퍼스레딩 활성된 것임

2 방법 2: dmidecode #1

[root@jmnote ~]# dmidecode -t processor | egrep 'Core Count|Thread Count' | head -2
	Core Count: 4
	Thread Count: 8
→ Thread Count가 Core Count의 2배이므로 하이퍼스레딩 활성된 것임

3 방법 3: dmidecode #2

dmidecode -t processor | grep HTT
실행예시 (활성화됨)
[root@jmnote ~]# dmidecode -t processor | grep HTT | head -1
		HTT (Hyper-threading technology)
실행예시 (비활성화됨)
[root@jmnote2 ~]# dmidecode -t processor | grep HTT | head -1
                     HTT (Multi-threading)

4 같이 보기

5 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}