linux cpu数量_在Linux中如何获取CPU(中央处理器)信息和CPU数量?

linux cpu数量

linux cpu数量

CPU is central part of the computer systems.  They provide all logic and computation power to the operating system that runs on them. In general we look the frequency and brand of the CPU like i5,i7. There are very different features in detail in CPU’s. There are different commands to get CPU’s information like flags, instruction, product name etc. But most compatible CPU information source is /proc/cpuinfo

CPU是计算机系统的核心部分。 它们为在其上运行的操作系统提供所有逻辑和计算能力。 总的来说,我们看一下CPU的频率和品牌,例如i5,i7。 CPU的详细功能非常不同。 有不同的命令来获取CPU的信息,例如标志,指令,产品名称等。但是,大多数兼容的CPU信息源是/ proc / cpuinfo

从/ proc / cpuinfo获取信息 (Getting Information From /proc/cpuinfo)

$ more /proc/cpuinfo
Getting Information From /proc/cpuinfo
Getting Information From /proc/cpuinfo
从/ proc / cpuinfo获取信息
  • From vendor_id we can understand that this CPU is Intel

    vendor_id中我们可以了解到该CPU是Intel

  • model name is inside model name of Intel for this CPU

    型号名称在此CPU的Intel型号名称

  • cpu MHz specifies frequency or speed of this CPU

    cpu MHz指定此CPU的频率或速度

  • we can see from flags those instruction sets supported by this CPU

    我们可以从标志中看到该CPU支持的那些指令集

  • processor line specifies CPU index. In this case we have only one core which index is 0

    处理器行指定CPU索引。 在这种情况下,我们只有一个核心,其索引为0

  • cache_alignment shows the architecture of CPU like 32 or 64 bit.

    cache_alignment显示了32位或64位CPU的体系结构。

使用lscpu获取Cpu信息 (Getting Cpu Information With lscpu)

Alternative to cpuinfo is lscpu which proved more understandable information about CPU like below. We do not provide any option for the current usage.

替代cpuinfo的lscpu ,它证明了有关CPU的更易理解的信息,如下所示。 对于当前用法,我们不提供任何选项。

$ lscpu
Getting Cpu Information With lscpu
Getting Cpu Information With lscpu
使用lscpu获取Cpu信息

Following information about the CPU is provided with lscpu command.

lscpu命令提供了有关CPU的以下信息。

  • `Architecture` displays the 32 or 64 bit of the CPU

    “架构”显示CPU的32位或64位
  • `CPU op-mode` display which architectures the CPU can handle

    “ CPU op-mode”显示CPU可以处理的体系结构
  • `Byte Order` is the byte order of the CPU instructions

    “字节顺序”是CPU指令的字节顺序
  • `CPU` is CPU cunt

    CPU是CPU混音
  • `Threads Per Core` is how many threads are supported per core

    “每个核心线程数”是每个核心支持多少个线程
  • `Cores per Socket` is how many cores are per socket

    “每个插槽的内核数”是每个插槽有多少个内核
  • `Model name` shows CPU model number in detail

    型号名称详细显示了CPU型号
  • `CPU MHz` shows the speed or frequency of the CPU

    CPU MHz显示CPU的速度或频率
  • `Virtualization type` shows which type of virtualization is supported

    “虚拟化类型”显示了支持的虚拟化类型
  • `L1,L2,L3 cache` shows CPU cache size

    L1,L2,L3缓存显示CPU缓存大小
  • `Flag` show the instruction set supported by CPU.

    标记显示CPU支持的指令集。
LEARN MORE  What Is a Motherboard?
了解更多什么是主板?

在Linux中如何获取CPU(中央处理器)信息和CPU数量? 信息移植 (How To Get CPU (Central Processing Unit) Info and Number of CPU’s In Linux? Infografic)

How To Get CPU (Central Processing Unit) Info and Number of CPU’s In Linux? Infografic

翻译自: https://www.poftut.com/get-cpu-info-number-cpus-linux/

linux cpu数量

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值