LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1892|回复: 14

请问一下,怎样知道自己的CPU,是否HT(超线程)??

[复制链接]
发表于 2005-9-16 17:46:37 | 显示全部楼层 |阅读模式
我是租用服务器的,只能用SSH连上去~~
 楼主| 发表于 2005-9-17 17:39:57 | 显示全部楼层
up~~~
回复 支持 反对

使用道具 举报

发表于 2005-9-20 15:49:51 | 显示全部楼层
机器前面的那个intel inside标志,是超线程的话有“HT”,标志。
回复 支持 反对

使用道具 举报

发表于 2005-9-20 17:07:33 | 显示全部楼层
dmesg |grep CPU

如果有CPU0 CPU1 就说明至少你的机器有2个cpu,具体是不是你可以看看dmesg里CPU具体型号。

当然用top也可以看到CPU工作状况
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-29 16:22:23 | 显示全部楼层
dmesg | grep CPU
Initializing CPU#0
CPU: Trace cache: 12K uops<6>CPU: L2 cache: 1024K
CPU: Physical Processor ID: 0
Intel machine check reporting enabled on CPU#0.
CPU:     After generic, caps: bfebfbff 00000000 00000000 00000000
CPU:             Common caps: bfebfbff 00000000 00000000 00000000
CPU: Trace cache: 12K uops<6>CPU: L2 cache: 1024K
CPU: Physical Processor ID: 0
Intel machine check reporting enabled on CPU#0.
CPU:     After generic, caps: bfebfbff 00000000 00000000 00000000
CPU:             Common caps: bfebfbff 00000000 00000000 00000000
CPU0: Intel(R) Pentium(R) 4 CPU 3.00GHz stepping 01
per-CPU timeslice cutoff: 2926.00 usecs.
enabled ExtINT on CPU#0
..... CPU clock speed is 2999.7831 MHz.
CPU0<T0:1999840,T1:999904,D:9,S:999927,C:1999854>

大家觉得这个CPU是HT来的吗?
回复 支持 反对

使用道具 举报

发表于 2005-9-30 21:31:08 | 显示全部楼层
并没有看到CPU1的信息啊,你是否显示全了。

另外你可以top ,里头也是非别对两个cpu显示出了cpu占用率的。
回复 支持 反对

使用道具 举报

发表于 2005-9-30 21:33:27 | 显示全部楼层
CPU0: Intel(R) Pentium(R) 4 CPU 3.00GHz
不过怎么也是个p4 3。0也不错了,还有一个简单办法。

看一看/etc/grub.conf 里面有几个启动项目。如果默认是 比如linx 2.4.20-8 swap 就代表内核用的是支持超线程cpu的。安装时候如果你的cpu是超线程的,安装完了系统就有两个选项 一个是swap的一个是普通的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-1 14:13:23 | 显示全部楼层
cat /etc/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/sda2
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8smp)
        root (hd0,0)
        kernel /vmlinuz-2.4.20-8smp ro root=LABEL=/ ide0=0x1f0,0x3f6,14 ide1=0x170,0x376,15 ide2=0 ide3=0 ide4=0 ide5=0 ide6=0 ide7=0 ide8=0 ide9=0
        initrd /initrd-2.4.20-8smp.img
title Red Hat Linux-up (2.4.20-8)
        root (hd0,0)
        kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ ide0=0x1f0,0x3f6,14 ide1=0x170,0x376,15 ide2=0 ide3=0 ide4=0 ide5=0 ide6=0 ide7=0 ide8=0 ide9=0
        initrd /initrd-2.4.20-8.img


好像是个普通的CPU哦 ̄
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-3 14:40:36 | 显示全部楼层
是吗??eddie_we ?
回复 支持 反对

使用道具 举报

发表于 2005-10-3 21:30:48 | 显示全部楼层
是啊 不时有么

title Red Hat Linux (2.4.20-8smp) 赫赫 打错了。。打成了swap了
root (hd0,0)
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表