Chinaunix首页 | 论坛 | 博客
  • 博客访问: 226913
  • 博文数量: 51
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 211
  • 用 户 组: 普通用户
  • 注册时间: 2013-08-05 23:07
文章分类

全部博文(51)

文章存档

2016年(11)

2015年(14)

2014年(4)

2013年(22)

我的朋友

分类: 其他UNIX

2013-08-24 21:51:32

在 hpux 系统中辨别 CPU 的型号和位数  

#sam --> PerformanceMonitors --> System Properties -->Processors: Active: 2
Total: 2
CPU Version: PA 8900 CPU Module 3.2
Clock Frequency: 800 MHz Machine Identification: 2663368531
Hardware Model: 9000/800/rp3440
Kernel Width Support: 64
#getconf KERNEL_BITS->>>位数
64
#model ->>>机器型号:
9000/800/rp3440 (rp系列主机一般为PA RISC ,rx系列主机为Itanium RISC)
#echo "selclass qualifiercpu;info;wait;infolog"|cstm (可以获得当前CPU的状态,firmware版本,槽位,二级缓存大小、芯片版本等更详细的信息)
Hardware path: 128
Product ID: CPU Module Type: 0
Hardware Model: 0x895 Software Model: 0x4
Hardware Revision: 0 Software Revision: 0
Hardware ID: 0 Software ID: 2663368531
Boot ID: 0x2 Software Option: 0x91
Processor Number: 0 Path: 128
Hard Physical Address: 0xfffffffffe780000 Soft Physical Address:0

Slot Number: 0 Software Capability: 0x100000f0
PDC Firmware Revision: 46.34 IODC Revision: 0
Instruction Cache [Kbyte]: 768 Processor Speed: 800000000
Processor State: CPU Present Configured
Monarch: Yes Active: Yes
Data Cache [Kbyte]: 768
Instruction TLB [entry]: 240 Processor Chip Revisions: 3.2
Data TLB Size [entry]: 240 2nd Level Cache Size:[KB] 65536
Serial Number: 46148f71343f040a

#top 可以看出CPU有几个核在工作
例:Load averages: 0.62, 0.62, 0.62
155 processes: 130 sleeping, 25 running
Cpu states:
CPU LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS
0 0.63 14.9% 0.0% 19.8% 65.3% 0.0% 0.0% 0.0% 0.0%
1 0.61 37.6% 0.0% 33.7% 28.7% 0.0% 0.0% 0.0% 0.0%
--- ---- ----- ----- ----- ----- ----- ----- ----- -----
avg 0.62 26.5% 0.0% 26.5% 47.1% 0.0% 0.0% 0.0% 0.0%

Memory: 258072K (176876K) real, 425292K (295256K) virtual, 507828Kfree Page# 1/12

阅读(1932) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~