名字 (NAME)
free - 显示系统中已用和未用的内存空间总和.
总览 (SYNOPSIS)
free [-b | -k | -m] [-o] [-s delay ] [-t] [-V]
描述 (DESCRIPTION)
free 显示 系统中 已用和未用的 物理内存和交换内存, 共享内存和内核使用的 缓冲区的 总和.
选项 (Options)
-b 选项 以字节为单位 显示 内存总和; -k 选项 (缺省的) 以 KB 为单位 显示; -m 选项 以 MB 为单位.
-t 选项 显示 一个 总计行.
-o 选项 禁止 "buffer adjusted" 行的显示. 除非 指定 free 从 (相应的) 已用/未用的 内存 减去/加上 缓冲区内存.
-s 使 free 以 delay 秒为间隔, 连续抽样显示. delay 可以设置成浮点数, 它用 usleep(3) 做 微秒级 延迟.
-V 显示版本信息.
文件 (FILES)
/proc/meminfo-- 内存信息
另见
ps(1), top(1)
#p#
NAME
free - Display amount of free and used memory in the system
SYNOPSIS
free [-b | -k | -m] [-o] [-s delay ] [-t] [-V]
DESCRIPTION
free displays the total amount of free and used physical and swap memory in the system, as well as the buffers used by the kernel. The shared memory column should be ignored; it is obsolete.
Options
The -b switch displays the amount of memory in bytes; the -k switch (set by default) displays it in kilobytes; the -m switch displays it in megabytes.
The -t switch displays a line containing the totals.
The -o switch disables the display of a "buffer adjusted" line. If the -o option is not specified, free subtracts buffer memory from the used memory and adds it to the free memory reported.
The -s switch activates continuous polling delay seconds apart. You may actually specify any floating point number for delay, usleep(3) is used for microsecond resolution delay times.
The -V displays version information.
FILES
/proc/meminfo-- memory information
SEE ALSO
ps(1), slabtop(1), vmstat(8), top(1)