I was wondering how can I check on my running machine, whether the kernel is configured for SMP or not? Of course, I can look into the kernel .config
file and can search for it. But, the question is let's say I don't have a source code, how will I check the SMP configuration? Is there any proc file to check it?
The following says that I have no multi-cores:
#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
The output of uname -a
says:
Linux 136.170.193.3 3.3.8-2.4 #2 SMP Fri Dec 13 07:11:03 EST 2013 mips GNU/Linux
A bit confusing here. Someone on the comments suggested me to check uname -a
. I am not sure whether the results are reliable or not. Can I assume that with the keyword SMP produced by uname -a
, the kernel is configured as SMP?
To check an employee's SMP entitlement via their employee record. Select the employee, click Employee, then click Employee Record. Click Absence, then click S.M.P. and click Entitlement. This is the 15th week before the Expected On (EWC) date entered on the Dates tab.
Symmetric multiprocessing or shared-memory multiprocessing (SMP) involves a multiprocessor computer hardware and software architecture where two or more identical processors are connected to a single, shared main memory, have full access to all input and output devices, and are controlled by a single operating system ...
Core 0 (SMP disabled) means it is using Core 0 (first core). SMP for symmetric multi-processing is disabled meaning it will not use multiple cores.
Synchronization basics Because the Linux kernel supports symmetric multi-processing (SMP) it must use a set of synchronization mechanisms to achieve predictable results, free of race conditions.
Can I assume that with the keyword SMP produced by uname -a, the kernel is configured as SMP?
Yes. The version string returned by uname is generated when kernel is compiled.
The "top" command may help towards this, you can see the list of running tasks and the current processor id on which they are executing by using -
top -H
then press f
to go to field selection, and j
enable the CPU core column, and Enter
to display.
the core information will be displayed under P
column.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With