free -m
total used free shared buffers cached
Mem: 496 457 38 0 8 104
-/+ buffers/cache: 344 151
Swap: 510 156 354
其中-m代表以兆計(jì)算
查看CPU信息(型號(hào))
cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
8 Intel(R) Xeon(R) CPU E5410 @ 2.33GHz
(看到有8個(gè)邏輯CPU, 也知道了CPU型號(hào))
cat /proc/cpuinfo | grep physical | uniq -c
4 physical id : 0
4 physical id : 1
(說(shuō)明實(shí)際上是兩顆4核的CPU)