lost and found ( for me ? )

KVM virsh : How to check whether your Intel's CPU turns on Hyper Threading or not

Here's an explanation of how to check whether your Intel's CPU turns on Hyper Threading or not w/ virsh command.

# cat /proc/cpuinfo | grep "model name" | uniq
model name      : Intel(R) Xeon(R) CPU           X5650  @ 2.67GHz

just type "virsh nodeinfo"

# LANG=C virsh nodeinfo
CPU model:           x86_64
CPU(s):              12
CPU frequency:       2666 MHz
CPU socket(s):       1
Core(s) per socket:  6
Thread(s) per core:  2
NUMA cell(s):        1
Memory size:         12317420 kB

Totally 12 cores.
1 socket * 6 cores * 2 threads = 12 cores

In case of AMD. 
plz note that AMD does not support Hyper Threading.

# cat /proc/cpuinfo | grep "model name" | uniq
model name : AMD Phenom(tm) II X4 925 Processor

# LANG=C virsh nodeinfo
CPU model:           x86_64
CPU(s):              4
CPU frequency:       800 MHz
CPU socket(s):       1
Core(s) per socket:  4
Thread(s) per core:  1 
NUMA cell(s):        1
Memory size:         7927716 kB

ht flags of /proc/cpuinfo means that OS ( not CPU ! ) supports Hyper Threading.

# cat /proc/cpuinfo | grep flags | grep ht | uniq
flags  : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt npt lbrv svm_lock nrip_save

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.