标签:分区 shared str 缓冲区 mail 使用 ota lse span
free命令:Display amount of free and used memory in the system
显示系统空闲与使用的内存
语法:
free [-b | -k | -m] [-o] [-s delay ] [-t] [-l] [-V]
选项:
-b 以Bytes显示
-k 以kb为单位显示
-m 以mb未单位显示
-o 不显示缓冲区
-s + 秒数 持续查看内存信息
实例:
[root@www1 ~]# free -b total used free shared buffers cached Mem: 3023560704 730775552 2292785152 0 244056064 152215552 -/+ buffers/cache: 334503936 2689056768 Swap: 2097143808 0 2097143808 You have mail in /var/spool/mail/root [root@www1 ~]# free -k total used free shared buffers cached Mem: 2952696 713648 2239048 0 238336 148648 -/+ buffers/cache: 326664 2626032 Swap: 2047992 0 2047992 [root@www1 ~]# free -m total used free shared buffers cached Mem: 2883 696 2186 0 232 145 -/+ buffers/cache: 319 2564 Swap: 1999 0 1999 [root@www1 ~]# free -s 1 total used free shared buffers cached Mem: 2952696 713648 2239048 0 238336 148648 -/+ buffers/cache: 326664 2626032 Swap: 2047992 0 2047992 total used free shared buffers cached Mem: 2952696 713656 2239040 0 238336 148648 -/+ buffers/cache: 326672 2626024 Swap: 2047992 0 2047992
字段解释:
MEM部分:
total 内存总数
used 已使用的内存数
free 空闲的内存数
shared 当前已废弃不用的内存数
buffers 缓冲内存数
cached 缓存内存数
-/+ buffers/cache部分 :
used:MEM的used - buffers - cached
free : MEM的used + buffers + cached
Swap部分:
交换分区
标签:分区 shared str 缓冲区 mail 使用 ota lse span
原文地址:http://blog.51cto.com/12107790/2150882