如何确认我的 CentOS 服务器是否支持多 CPU?

如何确认我的 CentOS 服务器是否支持多 CPU?

CentOS 5.8 | VMWare

我有一台运行 CentOS 5.8 强化版的服务器。我一直在使用单个 CPU,并计划添加另一个(通过 vmware)。

当我运行 uname 时,我看到 SMP,这让我相信系统已经在使用多 CPU 内核:

[root@foobox ~]# uname -a
Linux box.foo.int 2.6.18-308.1.1.el5 #1 SMP Wed Mar 7 04:17:30 EST    
2012 i686 i686 i386 GNU/Linux

但是如果我检查 /boot/grub/grub.conf,我会看到:

default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-308.1.1.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-308.1.1.el5 ro root=LABEL=/ clocksource=tsc noapic nolapic
        initrd /initrd-2.6.18-308.1.1.el5.img
title CentOS (2.6.18-308.1.1.el5PAE)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-308.1.1.el5PAE ro root=LABEL=/ clocksource=tsc noapic nolapic
        initrd /initrd-2.6.18-308.1.1.el5PAE.img
title CentOS-base (2.6.18-308.1.1.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-308.1.1.el5 ro root=LABEL=/ clocksource=tsc noapic nolapic
        initrd /initrd-2.6.18-308.1.1.el5.img

我应该在 grub.conf 文件中的某个地方看到 SMP 吗?这是否意味着服务器正在运行不支持多 CPU 的内核?

答案1

单独的 SMP 内核已成为过去。如今,所有这些都已在 stock 中编译。在 vmware 中添加 cpu 并运行以下命令

cat /proc/cpuinfo

添加后重新启动时将会列出第二个 CPU。

相关内容