学习啦 > 学习电脑 > 电脑硬件知识 > CPU知识 > linux系统怎么查看自己电脑的cpu位数

linux系统怎么查看自己电脑的cpu位数

时间: 沈迪豪908 分享

学习啦在线学习网linux系统怎么查看自己电脑的cpu位数

  linux系统怎么查看自己电脑的cpu位数?不知道的话跟着学习啦小编一起来学习linux系统怎么查看自己电脑的cpu位数。

  linux系统怎么查看自己电脑的cpu位数的方法

  1.查看Linux的操作系统和硬件cpu位数

学习啦在线学习网   linux 操作系统的位数查看

学习啦在线学习网   getconf LONG_BIT 如果是32表示是32位

  eg:

  [root@db ~]# getconf LONG_BIT

  32

学习啦在线学习网   [root@db ~]# getconf WORD_BIT

  32

  或者通过cat /proc/cpuinfo也可以查看

  再或者

  [root@svr-db-test ~]# file /sbin/init

  /sbin/init: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped

  查看cpu硬件架构

  在Linux中使用命令arch可以初步查看出当前系统所识别出来的机器CPU类型,

  如"i386", "i486","i586", "alpha", "sparc", "arm", "m68k",

  "mips", "ppc","ia64","x86_64"等;ia64和x86_64就说明这台机器是64位的;

  eg:

学习啦在线学习网   [root@db ~]# arch

  i686

  或者

学习啦在线学习网   [root@svr-db-test ~]# uname -m

  x86_64

  或者

  [root@svr-db-test ~]# echo $HOSTTYPE

  x86_64

  2. 查看windows的操作系统和硬件cpu位数

  Microsoft Windows XP [版本 5.1.2600]

学习啦在线学习网   (C) 版权所有 1985-2001 Microsoft Corp.

学习啦在线学习网   C:/Documents and Settings/Administrator>systeminfo

  主机名: LUOBO-090566BDE

  OS 名称: Microsoft Windows XP Professional

  OS 版本: 5.1.2600 Service Pack 3 Build 2600

  OS 制造商: Microsoft Corporation

学习啦在线学习网   OS 配置: 独立工作站

学习啦在线学习网   OS 构件类型: Multiprocessor Free

学习啦在线学习网   注册的所有人: 微软用户

  注册的组织: 微软中国

学习啦在线学习网   产品 ID: 76481-640-1464517-23673

学习啦在线学习网   初始安装日期: 2009-9-2, 10:16:44

  系统启动时间: 0 天 0 小时 35 分 35 秒

学习啦在线学习网   系统制造商: Dell Inc.

学习啦在线学习网   系统型号: MXC061

  系统类型: X86-based PC

学习啦在线学习网   处理器: 安装了 1 个处理器。

  [01]: x86 Family 6 Model 14 Stepping 12 GenuineIntel ~1728 Mhz

学习啦在线学习网   BIOS 版本: DELL - 27d70402

  Windows 目录: C:/WINDOWS

学习啦在线学习网   系统目录: C:/WINDOWS/system32

学习啦在线学习网   启动设备: /Device/HarddiskVolume1

学习啦在线学习网   系统区域设置: zh-cn;中文(中国)

学习啦在线学习网   输入法区域设置: zh-cn;中文(中国)

  时区: 暂缺

学习啦在线学习网   物理内存总量: 2,038 MB

学习啦在线学习网   可用的物理内存: 1,554 MB

学习啦在线学习网   虚拟内存: 最大值: 2,048 MB

学习啦在线学习网   虚拟内存: 可用: 1,992 MB

  虚拟内存: 使用中: 56 MB

  页面文件位置: C:/pagefile.sys

学习啦在线学习网   域: WORKGROUP

  登录服务器: //LUOBO-090566BDE

学习啦在线学习网   修补程序: 安装了 143 个修补程序。

  .

学习啦在线学习网   3. AIX查看硬件cpu位数和os位数

  显示机器硬件是32位还是64位

  # bootinfo -y

  64

  查看aix操作系统是32位还是64位

学习啦在线学习网   # bootinfo -K

  64

学习啦在线学习网   PS:原文地址--http://blog.csdn.NET/wyzxg/archive/2009/12/22/5054617.aspx

  本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/tcsbupt/archive/2010/07/14/5733885.aspx

  Linux下如何查看CPU信息, 包括位数和多核信息

学习啦在线学习网   # uname -a

学习啦在线学习网   Linux euis1 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux

  (查看当前操作系统内核信息)

  # cat /etc/issue | grep Linux

  Red Hat Enterprise Linux AS release 4 (Nahant Update 5)

学习啦在线学习网   (查看当前操作系统发行版信息)

  # cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c

  8 Intel(R) Xeon(R) CPU E5410 @ 2.33GHz

学习啦在线学习网   (看到有8个逻辑CPU, 也知道了CPU型号)

  # cat /proc/cpuinfo | grep physical | uniq -c

  4 physical id : 0

  4 physical id : 1

学习啦在线学习网   (说明实际上是两颗4核的CPU)

  # getconf LONG_BIT

  32

  (说明当前CPU运行在32bit模式下, 但不代表CPU不支持64bit)

学习啦在线学习网   # cat /proc/cpuinfo | grep flags | grep ' lm ' | wc -l

  8

  (结果大于0, 说明支持64bit计算. lm指long mode, 支持lm则是64bit)

  .

  .

学习啦在线学习网   最后再完整看cpu物理信息, 不过大部分我们都不关心而已.

学习啦在线学习网   # dmidecode | grep -A48 'Processor Information$'

学习啦在线学习网   Processor Information

  Socket Designation: CPU 1

  Type: Central Processor

学习啦在线学习网   Family: Xeon

  Manufacturer: Intel

  ID: 7A 06 01 00 FF FB EB BF

  Signature: Type 0, Family 6, Model 17, Stepping A

  Flags:

  FPU (Floating-point unit on-chip)

学习啦在线学习网   VME (Virtual mode extension)

  DE (Debugging extension)

学习啦在线学习网   PSE (Page size extension)

  TSC (Time stamp counter)

学习啦在线学习网   MSR (Model specific registers)

学习啦在线学习网   PAE (Physical address extension)

  MCE (Machine check exception)

  CX8 (CMPXCHG8 instruction supported)

学习啦在线学习网   APIC (On-chip APIC hardware supported)

  SEP (Fast system call)

  MTRR (Memory type range registers)

  PGE (Page global enable)

学习啦在线学习网   MCA (Machine check architecture)

  CMOV (Conditional move instruction supported)

  PAT (Page attribute table)

  PSE-36 (36-bit page size extension)

  CLFSH (CLFLUSH instruction supported)

学习啦在线学习网   DS (Debug store)

学习啦在线学习网   ACPI (ACPI supported)

  MMX (MMX technology supported)

  FXSR (Fast floating-point save and restore)

学习啦在线学习网   SSE (Streaming SIMD extensions)

学习啦在线学习网   SSE2 (Streaming SIMD extensions 2)

  SS (Self-snoop)

学习啦在线学习网   HTT (Hyper-threading technology)

  TM (Thermal monitor supported)

  SBF (Signal break on FERR)

学习啦在线学习网   Version: Intel(R) Xeon(R) CPU E5410 @ 2.33GHz

  Voltage: 1.2 V

  External Clock: 333 MHz

学习啦在线学习网   Max Speed: 2333 MHz

学习啦在线学习网   Current Speed: 2333 MHz

  Status: Populated, Enabled

学习啦在线学习网   Upgrade: <OUT OF SPEC>

学习啦在线学习网   L1 Cache Handle: 0x0005

  L2 Cache Handle: 0x0006

  L3 Cache Handle: 0x0007

  Serial Number: To Be Filled By O.E.M.

  Asset Tag: To Be Filled By O.E.M.

学习啦在线学习网   Part Number: To Be Filled By O.E.M.

  --

  Processor Information

  Socket Designation: CPU 2

  Type: Central Processor

  Family: Xeon

学习啦在线学习网   Manufacturer: Intel

  ID: 7A 06 01 00 FF FB EB BF

学习啦在线学习网   Signature: Type 0, Family 6, Model 17, Stepping A

  Flags:

学习啦在线学习网   FPU (Floating-point unit on-chip)

  VME (Virtual mode extension)

  DE (Debugging extension)

  PSE (Page size extension)

学习啦在线学习网   TSC (Time stamp counter)

  MSR (Model specific registers)

  PAE (Physical address extension)

学习啦在线学习网   MCE (Machine check exception)

  CX8 (CMPXCHG8 instruction supported)

学习啦在线学习网   APIC (On-chip APIC hardware supported)

学习啦在线学习网   SEP (Fast system call)

  MTRR (Memory type range registers)

  PGE (Page global enable)

  MCA (Machine check architecture)

  CMOV (Conditional move instruction supported)

学习啦在线学习网   PAT (Page attribute table)

  PSE-36 (36-bit page size extension)

  CLFSH (CLFLUSH instruction supported)

学习啦在线学习网   DS (Debug store)

学习啦在线学习网   ACPI (ACPI supported)

学习啦在线学习网   MMX (MMX technology supported)

  FXSR (Fast floating-point save and restore)

学习啦在线学习网   SSE (Streaming SIMD extensions)

  SSE2 (Streaming SIMD extensions 2)

  SS (Self-snoop)

  HTT (Hyper-threading technology)

  TM (Thermal monitor supported)

  SBF (Signal break on FERR)

学习啦在线学习网   Version: Intel(R) Xeon(R) CPU E5410 @ 2.33GHz

  Voltage: 1.2 V

  External Clock: 333 MHz

  Max Speed: 2333 MHz

  Current Speed: 2333 MHz

  Status: Populated, Enabled

  Upgrade: <OUT OF SPEC>

学习啦在线学习网   L1 Cache Handle: 0x0009

  L2 Cache Handle: 0x000A

学习啦在线学习网   L3 Cache Handle: 0x000B

学习啦在线学习网   Serial Number: To Be Filled By O.E.M.

  Asset Tag: To Be Filled By O.E.M.

  Part Number: To Be Filled By O.E.M.

linux系统怎么查看自己电脑的cpu位数相关文章:

1.如何查看电脑cpu位数

2.linux系统怎样查看CPU信息

3.如何查看linux cpu大小

4.如何查看linux cpu信息

5.linux如何查看cpu个数

6.linux cpu型号如何查看

1872722