查cpu
#dmesg |grep -ixeon
CPU0: Intel(R) Xeon(R)CPU E5520 @ 2.27GHz stepping 05
CPU1: Intel(R) Xeon(R)CPU E5520 @ 2.27GHz stepping 05
CPU2: Intel(R) Xeon(R)CPU E5520 @ 2.27GHz stepping 05
CPU3: Intel(R) Xeon(R)CPU E5520 @ 2.27GHz stepping 05
CPU4: Intel(R) Xeon(R)CPU E5520 @ 2.27GHz stepping 05
CPU5: Intel(R) Xeon(R)CPU E5520 @ 2.27GHz stepping 05
CPU6: Intel(R) Xeon(R)CPU E5520 @ 2.27GHz stepping 05
CPU7: Intel(R) Xeon(R)CPU E5520 @ 2.27GHz stepping 05
显示8颗cpu,型号是E5520
上网搜出Intel XeonE5520是4核,所以查询的机器是2颗cpu,每颗cpu四核
查内存
#free-m 以MB为单位查询内存
total used free shared buffers cached
Mem: 6076 572 5504 0 57 392
-/+buffers/cache: 121 5954
Swap: 5535 0 5535
内存是6.076G
查硬盘大小
#df -m 以MB为单位查询
Filesystem 1M-块 已用 可用 已用% 挂载点
/dev/mapper/VolGroup00-LogVol00
132166 2779 122674 3% /
/dev/cciss/c0d0p1 99 31 64 33% /boot
none 3039 0 3039 0% /dev/shm
硬盘132G+3G=135G
top 回车,按1,可以看到cpu和内存
top - 11:04:08 up 14 days, 13:06, 1user, load average: 0.00, 0.00, 0.00
Tasks: 91total, 1running, 88sleeping, 2stopped, 0 zombie
Cpu0 : 0.0%us, 0.0% sy, 0.0% ni, 99.7%id, 0.3% wa, 0.0%hi, 0.0% si
Cpu1 : 0.0%us, 0.0% sy, 0.0% ni, 100.0%id, 0.0% wa, 0.0%hi, 0.0% si
Cpu2 : 0.0%us, 0.0% sy, 0.0% ni, 99.7%id, 0.3% wa, 0.0%hi, 0.0% si
Cpu3 : 0.0%us, 0.0% sy, 0.0% ni, 100.0%id, 0.0% wa, 0.0%hi, 0.0% si
Cpu4 : 0.0%us, 0.0% sy, 0.0% ni, 100.0%id, 0.0% wa, 0.0%hi, 0.0% si
Cpu5 : 0.0%us, 0.0% sy, 0.0% ni, 100.0%id, 0.0% wa, 0.0%hi, 0.0% si
Cpu6 : 0.0%us, 0.0% sy, 0.0% ni, 100.0%id, 0.0% wa, 0.0%hi, 0.0% si
Cpu7 : 0.0%us, 0.0% sy, 0.0% ni, 100.0%id, 0.0% wa, 0.0%hi, 0.0% si
Mem: 6222096ktotal, 586464kused, 5635632kfree, 59344kbuffers
Swap: 5668856ktotal, 0k used, 5668856kfree, 402416k cached
原创地址:http://blog.sina.com.cn/s/blog_535aa0930100ltz8.html