Linux Learning Note--free Command (command to view memory information)

Source: Internet
Author: User

Free to display the memory status.

1. Command format:

free[选项]

2. Common options:

"free -b"   Byte 为单位显示内存使用情况。"free -k"   以 KB 为单位显示内存使用情况。"free -m"   以 MB 为单位显示内存使用情况。"free -g"   以 GB 为单位显示内存使用情况。"free -h"   人性化显示,自动选取合适的单位。(有的系统不支持此选项)"free -o"   不显示缓冲区调整行信息。"free -s 2" 持续观察内存使用状况,间隔时间为2秒。"free -t"   显示内存总和信息。"free -V"   显示版本信息。

3. Display Information Analysis:

1) The first line of information content analysis

total  :总内存used  :已使用内存free   :剩余内存shared :共享内存(一般系统不会用到)buffers:主要缓存目录项、inode节点等cached :主要缓存读取过的文件内容

2) Second line of information content analysis

Mem: Physical Memory statistics Total(7873)=used(3757)+ Free(4115)System uses memory = Total(7873)- Free(4115)App uses memory = Total(7873)- Free(4115)-buffers(302)-Cached(1824)

3) Third line of information content analysis

第三行中的used(1630) = 第二行中的used(3757) - buffers(302) - cached(1824)(反应的是被应用程序实实在在占用的内存数)第三行中的free(6242) = 第二行中的free(4115) + buffers(302) + cached(1824)(反应的是可以挪用的内存总数)

4) The fourth line of information content analysis

第四行的Swap

Linux Learning Note--free Command (command to view memory information)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.