如何检查内核中是否启用了SMP?

dex*_*ous 6 linux-kernel embedded-linux

我想知道如何在运行的计算机上检查内核是否配置为SMP?当然,我可以查看内核.config文件并进行搜索。但是,问题是,我没有源代码,如何检查SMP配置?是否有任何proc文件要检查?

下面说我没有多核:

#cat /proc/cpuinfo

processor               : 1
cpu model               : Broadcom BMIPS5000 V1.1  FPU V0.1
BogoMIPS                : 651.26
cpu MHz                 : 1305.018
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 64
extra interrupt vector  : yes
hardware watchpoint     : no
ASEs implemented        :
shadow register sets    : 1
kscratch registers      : 0
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available
Run Code Online (Sandbox Code Playgroud)

输出为uname -a

Linux 136.170.193.3 3.3.8-2.4 #2 SMP Fri Dec 13 07:11:03 EST 2013 mips GNU/Linux
Run Code Online (Sandbox Code Playgroud)

这里有点混乱。评论上有人建议我检查一下uname -a。我不确定结果是否可靠。我是否可以假设使用关键字关键字SMP产生uname -a,将内核配置为SMP?

tri*_*tan 5

我是否可以假设使用 uname -a 生成的关键字 SMP,将内核配置为 SMP?

是的。uname 返回的版本字符串是在编译内核时生成的。