Linux/CPU:修订间差异
来自康健生活
| 第149行: | 第149行: | ||
</syntaxhighlight>|<syntaxhighlight lang="javascript"> | </syntaxhighlight>|<syntaxhighlight lang="javascript"> | ||
64 | 64 | ||
</syntaxhighlight>|root@kangjian:~#}} | |||
== 超线程 == | |||
如果有两个逻辑 CPU 具有相同的 <code>core id</code>,则超线程已经被打开。 | |||
{{shc_out|<syntaxhighlight lang="bash"> | |||
cat /proc/cpuinfo | |||
</syntaxhighlight>|<syntaxhighlight lang="javascript"> | |||
core id : 0 | |||
core id : 1 | |||
core id : 2 | |||
core id : 3 | |||
core id : 4 | |||
core id : 5 | |||
core id : 0 | |||
core id : 1 | |||
core id : 2 | |||
core id : 3 | |||
core id : 4 | |||
core id : 5 | |||
</syntaxhighlight>|root@kangjian:~#}} | </syntaxhighlight>|root@kangjian:~#}} | ||