-----------------------你站在桥上看风景--------------------------------------------I---------------------------------------------------------------------------------------看风景人在楼上看你-----------------------------------------Love---------------------------------------------------------------------------------明月装饰了你的窗子-----------------------------------------China---------------------------------断章----------------------------------------你装饰了别人的梦--------rokanio--------

LINUX下查看硬件信息

上一篇 / 下一篇  2010-06-02 16:21:42 / 个人分类:Linux技术

几个cpu

more /proc/cpuinfo |grep "physical id"|uniq|wc -l

每个cpu是几核(假设cpu配置相同)

more /proc/cpuinfo |grep "physical id"|grep "0"|wc -l

cpu使用率

vmstat  

推荐小工具nmon(aix和linux都有)

top后按数字1,多个cpu的话会显示多个

fdisk -l可以看到多个物理硬盘,做了硬raid只能看到一个硬盘

给你推荐个小工具

conky

用户监视系统

dmidecode

通过上面信息我们可以知道,有8个核。从processor  0   到processor   7可以看出来。

有两个cpu,从

physical id : 0

physical id : 1

可以看出有两个cpu。

cpu cores : 4

可以看出每个cpu有四个内核

[admin@~]$ cat /proc/cpuinfo | grep "physical id" ; cat /proc/cpuinfo | grep "processor" ; fdisk -l ; uname -a ; cat /etc/redhat-release 

physical id     : 0

physical id     : 1

physical id     : 2

physical id     : 3

physical id     : 4

physical id     : 5

physical id     : 6

physical id     : 7

processor       : 0

processor       : 1

processor       : 2

processor       : 3

processor       : 4

processor       : 5

processor       : 6

processor       : 7

Linux qa-qd-62-56 2.6.18-131.el5.customxen #1 SMP Tue Sep 15 15:46:11 CST 2009 x86_64 x86_64 x86_64 GNU/Linux

Red Hat Enterprise Linux Server release 5.3 (Tikanga)


TAG:

 

评分:0

我来说两句

buutterfly

buutterfly

God , after God , me.

日历

« 2024-05-05  
   1234
567891011
12131415161718
19202122232425
262728293031 

数据统计

  • 访问量: 23283
  • 日志数: 41
  • 建立时间: 2009-10-10
  • 更新时间: 2010-07-06

RSS订阅

Open Toolbar