Chinaunix

标题: centos 4.8无法识别双核多线程 [打印本页]

作者: yexingqi    时间: 2012-06-11 15:47
标题: centos 4.8无法识别双核多线程
请教一下:

我有一台服务器,二个物理CPU X5570,早期安装centos 4.8 的时候,没有在BIOS开启超线程,安装完毕后提示有8核的CPU。

安装后,我进BIOS将超线程开启,进入系统,系统只认出一颗物理CPU,加上超线程也是显示8核(正常应该显示16核)


其它相同的服务器,相同的CPU,相同的centos同一张ISO光盘均没有这个问题。
我怀疑是内核出了什么问题,请教一下,有没有什么办法能解决?因为服务器不能停机太长时间,所以没机会重装系统。

谢谢!
作者: yexingqi    时间: 2012-06-11 15:50
对比了一下同型号的服务器(硬件完全一模一样的),
这台有问题的服务器显示内核为:
uname -r
2.6.9-89.ELsmp

而正常能显示双核CPU的服务器显示为:
uname -r
2.6.9-89.ELlargesmp

盼各位给予指点,谢谢。
作者: yexingqi    时间: 2012-06-11 15:52
####  cat /proc/cpuinfo

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 26
model name      : Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz
stepping        : 5
cpu MHz         : 2926.149
cache size      : 8192 KB
physical id     : 16
siblings        : 1
core id         : 255
cpu cores       : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx rdtscp lm pni monitor ds_cpl est tm2 cx16 xtpr popcnt lahf_lm
bogomips        : 5856.21
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 26
model name      : Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz
stepping        : 5
cpu MHz         : 2926.149
cache size      : 8192 KB
physical id     : 0
siblings        : 1
core id         : 255
cpu cores       : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx rdtscp lm pni monitor ds_cpl est tm2 cx16 xtpr popcnt lahf_lm
bogomips        : 5852.09
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:

processor       : 2
vendor_id       : GenuineIntel
cpu family      : 6
model           : 26
model name      : Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz
stepping        : 5
cpu MHz         : 2926.149
cache size      : 8192 KB
physical id     : 18
siblings        : 1
core id         : 255
cpu cores       : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx rdtscp lm pni monitor ds_cpl est tm2 cx16 xtpr popcnt lahf_lm
bogomips        : 5851.92
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:

processor       : 3
vendor_id       : GenuineIntel
cpu family      : 6
model           : 26
model name      : Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz
stepping        : 5
cpu MHz         : 2926.149
cache size      : 8192 KB
physical id     : 2
siblings        : 1
core id         : 255
cpu cores       : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx rdtscp lm pni monitor ds_cpl est tm2 cx16 xtpr popcnt lahf_lm
bogomips        : 5852.00
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:

processor       : 4
vendor_id       : GenuineIntel
cpu family      : 6
model           : 26
model name      : Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz
stepping        : 5
cpu MHz         : 2926.149
cache size      : 8192 KB
physical id     : 20
siblings        : 1
core id         : 255
cpu cores       : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx rdtscp lm pni monitor ds_cpl est tm2 cx16 xtpr popcnt lahf_lm
bogomips        : 5851.97
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:

processor       : 5
vendor_id       : GenuineIntel
cpu family      : 6
model           : 26
model name      : Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz
stepping        : 5
cpu MHz         : 2926.149
cache size      : 8192 KB
physical id     : 4
siblings        : 1
core id         : 255
cpu cores       : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx rdtscp lm pni monitor ds_cpl est tm2 cx16 xtpr popcnt lahf_lm
bogomips        : 5852.08
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:

processor       : 6
vendor_id       : GenuineIntel
cpu family      : 6
model           : 26
model name      : Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz
stepping        : 5
cpu MHz         : 2926.149
cache size      : 8192 KB
physical id     : 22
siblings        : 1
core id         : 255
cpu cores       : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx rdtscp lm pni monitor ds_cpl est tm2 cx16 xtpr popcnt lahf_lm
bogomips        : 5851.99
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:

processor       : 7
vendor_id       : GenuineIntel
cpu family      : 6
model           : 26
model name      : Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz
stepping        : 5
cpu MHz         : 2926.149
cache size      : 8192 KB
physical id     : 6
siblings        : 1
core id         : 255
cpu cores       : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx rdtscp lm pni monitor ds_cpl est tm2 cx16 xtpr popcnt lahf_lm
bogomips        : 5852.06
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:
作者: yexingqi    时间: 2012-06-12 09:26
没人理我啊?
作者: yjs_sh    时间: 2012-06-13 09:34
大于或等于16个CPU的系统,需要使用bigsmp的内核。你从安装光盘里安装一下这个内核,重新启动使用新内核应该就可以的。不过要注意的是你之前如果安装了硬件驱动,需要在新内核下重新安装一次。
作者: ulovko    时间: 2012-06-13 10:00
回复 5# yjs_sh


    请问怎么安装bigsmp 内核?
作者: yexingqi    时间: 2012-06-13 16:06
本帖最后由 yexingqi 于 2012-06-13 16:07 编辑

谢谢yjs_sh!!!

同问一下,怎么安装bigsmp 内核啊?能否直接copy 相同版本的/boot下面所有的 文件,然后修改/boot/grub/grub.conf内容呢?

将以下内容修改:
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.9-89.ELsmp)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-89.ELsmp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.9-89.ELlargesmp.img
title CentOS-up (2.6.9-89.EL)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-89.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.9-89.EL.img
修改为:
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.9-89.ELsmp)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-89.ELlargesmp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.9-89.ELlargesmp.img
title CentOS-up (2.6.9-89.EL)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-89.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.9-89.EL.img

请问这样可以么?
作者: yexingqi    时间: 2012-06-14 10:07
我按上述方法操作成功。感谢!!
作者: quaine    时间: 2013-10-17 14:53
学习了,可能用的到




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2