查看linux服务器CPU详细情况

简介: <p style="line-height:23.8px; color:rgb(85,85,85); font-family:宋体,'Arial Narrow',arial,serif; font-size:14px; padding-top:0px; padding-bottom:0px; margin-top:0px; margin-bottom:0px; clear:both; he

 linux服务器的硬件信息放在/proc下,cat /proc/cpuinfo可以查看到CPU的详细信息。

 

[fengzhige@33 ~]$ cat /proc/cpuinfo |less

processor       : 0  ##CPU超线程数

vendor_id       : GenuineIntel   ##CPU生产厂商

cpu family      : 6

model           : 45

model name      : Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz

stepping        : 7

cpu MHz         : 2300.154  ##CPU主频

cache size      : 15360 KB  ##CPU缓存

physical id     : 0     ##CPU物理ID号

siblings        : 12

core id         : 0    ##CPU核心ID号

cpu cores       : 6    ##CPU核心个数

apicid          : 0

initial apicid  : 0

fpu             : yes

fpu_exception   : yes

cpuid level     : 13

wp              : yes

flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 x2apic popcnt aes xsave avx lahf_lm ida arat xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid

bogomips        : 4600.30

clflush size    : 64

cache_alignment : 64

address sizes   : 46 bits physical, 48 bits virtual

 

 
  1. 查看物理CPU个数:
  2. [fengzhige@33 ~]$ cat /proc/cpuinfo |grep 'physical id' |sort |uniq |wc -l 

 

 
  1. 查看CPU核心个数: 
  2. [fengzhige@33 ~]$ cat /proc/cpuinfo |grep 'cpu cores' |uniq 
  3. cpu cores       : 6 

 

 
  1. 查看CPU超线程数: 
  2. [fengzhige@33 ~]$ cat /proc/cpuinfo |grep 'processor' 

超线程数=逻辑CPU个数;

理论上,

物理CPU个数x核心个数=逻辑CPU个数

若CPU支持超线程则是

物理CPU个数x核心个数x每个核心支持超线程个数=逻辑CPU个数


赠送:

htop命令

 

目录
相关文章
|
2月前
|
弹性计算 ice
阿里云4核8G云服务器配置价格:热门ECS实例及CPU处理器型号说明
阿里云2025年4核8G服务器配置价格汇总,涵盖经济型e实例、计算型c9i等热门ECS实例,CPU含Intel Xeon及AMD EPYC系列,月费159元起,年付低至1578元,按小时计费0.45元起,实际购买享折扣优惠。
615 1
|
2月前
|
弹性计算 定位技术 数据中心
阿里云服务器配置选择方法:付费类型、地域及CPU内存配置全解析
阿里云服务器怎么选?2025最新指南:就近选择地域,降低延迟;长期使用选包年包月,短期灵活选按量付费;企业选2核4G5M仅199元/年,个人选2核2G3M低至99元/年,高性价比爆款推荐,轻松上云。
198 11
|
2月前
|
弹性计算
阿里云ECS云服务器8核16G配置收费价格,多种ECS实例CPU及费用清单
阿里云8核16G云服务器价格因实例类型而异。计算型c9i约743元/月,一年6450元(7折);通用算力型u1仅673元/月,一年4225元(5.1折)。实际价格享时长折扣,详情见ECS官网。
|
3月前
|
存储 缓存 数据挖掘
阿里云轻量应用服务器“CPU优化型”配置介绍、费用价格说明
阿里云轻量应用服务器推出CPU优化型,提供更强计算性能,2核4GB起,最高16核64GB,全系支持200Mbps带宽。适用于企业级应用、数据库、游戏服务器等高算力场景,保障稳定高效运行。
507 1
|
运维 Linux
Linux系统调优详解(二)——CPU负载查看相关命令
Linux系统调优详解(二)——CPU负载查看相关命令
317 10
|
存储 运维 监控
在Linux中,发现CPU负载过大,接下来怎么办?
在Linux中,发现CPU负载过大,接下来怎么办?
|
Linux
Linux操作系统调优相关工具(一)查看CPU负载相关工具 找出系统中使用CPU最多的进程?
Linux操作系统调优相关工具(一)查看CPU负载相关工具 找出系统中使用CPU最多的进程?
197 0
|
监控 Linux 测试技术
Linux系统篇—CPU平均负载介绍与案例假设
Linux系统篇—CPU平均负载介绍与案例假设
458 0
Linux系统篇—CPU平均负载介绍与案例假设
|
安全 NoSQL jenkins
Linux->服务器被挖矿&CPU或内存高负载处理
Linux->服务器被挖矿&CPU或内存高负载处理
472 0

热门文章

最新文章