读文网>电脑>电脑硬件知识>CPU知识

Linux查看cpu个数

cpu电脑的重要组成部分,是不可缺少的角色。下面是读文网小编带来的关于linux查看cpu个数的内容,欢迎阅读!

Linux查看cpu个数:

Java代码

[root@lidongbo~]# cat /proc/cpuinfo

processor : 0

vendor_id : GenuineIntel

cpu family : 6

model : 15

model name : Intel(R) Pentium(R) Dual CPU E2200 @ 2.20GHz

stepping : 13

cpu MHz : 2200.010

cache size : 1024 KB

physical id : 0

siblings : 2

core id : 0

cpu cores : 2

apicid : 0

fpu : yes

fpu_exception : yes

cpuid level : 10

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 lm constant_tsc pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm

bogomips : 4403.65

clflush size : 64

cache_alignment : 64

address sizes : 36 bits physical, 48 bits virtual

power management:

processor : 1

vendor_id : GenuineIntel

cpu family : 6

model : 15

model name : Intel(R) Pentium(R) Dual CPU E2200 @ 2.20GHz

stepping : 13

cpu MHz : 2200.010

cache size : 1024 KB

physical id : 0

siblings : 2

core id : 1

cpu cores : 2

apicid : 1

fpu : yes

fpu_exception : yes

cpuid level : 10

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 lm constant_tsc pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm

bogomips : 4399.94

clflush size : 64

cache_alignment : 64

address sizes : 36 bits physical, 48 bits virtual

power management:

[root@lidongbo ~]#

通过上面信息我们可以知道

从processor 0 到processor 1可以看出来总共有2个核

从physical id : 0 可以看出有一个cpu(因为没发现physical id : 1)

从cpu cores : 2 可以看出cpu有两个内核

简单点

1. 查看物理CPU的个数

2. 查看逻辑CPU的个数

3. 查看CPU是几核

4. 查看CPU的主频

相关热搜

相关文章

【CPU知识】热点

【CPU知识】最新