相关疑难解决方法(0)

如何知道Linux系统的核心数?

我想知道我的系统有多少个内核,所以我在谷歌搜索了同样的问题。我得到了一些命令,例如lscpu命令。当我尝试这个命令时,它给了我以下结果:

$ lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    1
Core(s) per socket:    4
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 23
Stepping:              10
CPU MHz:               1998.000
BogoMIPS:              5302.48
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              2048K
NUMA node0 CPU(s):     0-3
Run Code Online (Sandbox Code Playgroud)

特别是,此输出显示:

  • CPU:4
  • 每个插槽的核心数:4
  • CPU系列:6

其中哪些表示 Linux 系统的核心?

有没有其他命令可以告诉核心数,还是我认为它完全错误?

linux cpu

292
推荐指数
7
解决办法
57万
查看次数

Number of processors in /proc/cpuinfo

While I was learning about cpu load, I came to know that it depends on the number of cores. If I have 2 cores then load 2 will give 100% cpu utilization.

So I tried to find out cores.( I already know that system has 2 cores, 4 threads so 2 virtual cores Check here about processor).So I ran cat /proc/cpuinfo Which gave me

processor   : 0
vendor_id   : GenuineIntel
cpu family  : 6
model       : 69
model name …
Run Code Online (Sandbox Code Playgroud)

linux cpu hardware

35
推荐指数
3
解决办法
13万
查看次数

标签 统计

cpu ×2

linux ×2

hardware ×1