[size=large][color=darkred][b]查看linux 内核数目的命令[/b][/color][/size]
:[quote]~$ cat /proc/cpuinfo[/quote]
[quote]
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Xeon(TM) CPU 3.00GHz
stepping : 3
cpu MHz : 2992.249
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
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 pbe nx lm constant_tsc peb s bts pni dtes64 monitor ds_cpl cid cx16 xtpr
bogomips : 5984.49
clflush size : 64
power management:
[/quote]
其中cpu_cores就是cpu的内核数
:[quote]~$ cat /proc/cpuinfo[/quote]
[quote]
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Xeon(TM) CPU 3.00GHz
stepping : 3
cpu MHz : 2992.249
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
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 pbe nx lm constant_tsc peb s bts pni dtes64 monitor ds_cpl cid cx16 xtpr
bogomips : 5984.49
clflush size : 64
power management:
[/quote]
其中cpu_cores就是cpu的内核数