- 查cpu
# dmesg |grep -i xeon
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 Xeon E5520是4核,所以查询的机器是2颗cpu,每颗cpu四核
- 查内存
# free -m 以MB为单位查询内存
total | used | free | shared | buffers | cached | |
---|---|---|---|---|---|---|
Mem: | 6076 | 572 | 5504 | 0 | 57 | 392 |
-/+ buffers/cache: | 121 | 5953 | ||||
Swap: | 5535 | 0 | 5535 |
备注:
内存是6.076G,可用5953M
- 查硬盘大小
# df -m 以MB为单位查询
Filesystem | 1M-块 | 已用 | 可用 | 已用% | 挂载点 |
---|---|---|---|---|---|
/dev/sda3 | 182781 | 30412 | 142935 | 18% | / |
/dev/sda1 | 99 | 12 | 82 | 13% | /boot |
tmpfs | 3992 | 0 | 3992 | 0% | /dev/shm |
备注:
硬盘182G+3G=185G
- top 回车,按1,可以看到cpu和内存
top - 11:04:08 up 14 days, 13:06, 1 user, load average: 0.00, 0.00, 0.00
Tasks: 91 total, 1 running, 88 sleeping, 2 stopped, 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: 6222096k total, 586464k used, 5635632k free, 59344k buffers
Swap: 5668856k total, 0k used, 5668856k free, 402416k cached