1.用途说明

free命令用来显示内存使用情况。display information about free and used memory on the system。

free 命令相对于top 提供了更简洁的查看系统内存使用情况:

[xxx@localhost ~]$ free -mtotal       used       free     shared    buffers     cached
Mem:          7743       5163       2580          0        378       1844
-/+ buffers/cache:       2940       4802
Swap:         9919        260       9659

2.常用参数

NAME
       free - Display amount of free and used memory in the system
显示系统空闲内存和已使用内存
SYNOPSIS
       free [-b | -k | -m] [-o] [-s delay ] [-t] [-l] [-V]
参数如上
DESCRIPTION
       free  displays the total amount of free and used physical and swap mem-
       ory in the system, as well as the buffers  used  by  the  kernel.   The

shared memory column should be ignored; it is obsolete.

查看总共的空闲内存、已使用的物理内存、交换区使用量以及内核buffer区的使用量,shared的内存可以被忽略

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.

-b 单位以bytes显示,-k以kB来显示,-m 以MB为单位来显示

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.

-o参数bufferd 这一行是否显示,默认会显示,并且回访到free memory的报告中

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.

-s 是多少s显示一次 并且一直会调用free命令

The -l switch shows detailed low and high memory statistics.

-l 请看原文,我还没用过这个

The -V switch displays version information.
       -V 显示版本信息

buffer/cache.used+buffer/cache.free=total

Mem.used+Mem.free=total

Mem.used=Mem.buffers+Mem.cached+buffer/cache.used

buffer/cache.used 为实际应用程序占用的量

实际可用为:buffer/cache.free

实际消耗内存为:buffer/cache.used

linux 内存的查看相关推荐

  1. linux查看占用的命令,linux内存占用查看命令

    PLL输出怎么不能配置成我想要的时钟 如下图,我的clk_out7想配置成160M,十几输出变为了150M VI命令----用于检索 装了个虚拟机Ubuntu,命令行模式用VI很不适应,需要学习! 1 ...

  2. Linux内存信息查看——free命令

    free 命令可以显示系统已用和空闲的内存情况.包括物理内存.交互区内存(swap)和内核缓冲区内存(buffer).共享内存将被忽略.在Linux系统监控的工具中,free命令是最经常使用的命令之一 ...

  3. linux内存占用查看

    查看内存使用情况 free free -m //显示单位为:兆 查看占用内存最高的5个进程 ps aux | sort -k4nr | head -n 5 查看占用CPU最高的5个进程 ps aux  ...

  4. linux 内存密码_您的密码错误是内存问题

    linux 内存密码 Let's play a game. Look at this string of characters for a minute and then see if you can ...

  5. linux top命令查看内存及多核CPU的使用讲述 [转]

    2019独角兽企业重金招聘Python工程师标准>>> linux top命令查看内存及多核CPU的使用讲述 [转] FROM: http://www.lvtao.net/html/ ...

  6. 【Linux基础】查看硬件信息-内存和硬盘

     1.使用free命令查看内存使用 (1)内存总量大小:查看Mem中的total值3697M free -mtotal used free shared buffers cached Mem: 369 ...

  7. linux top命令查看内存及多核CPU的使用讲述【转】

    转载一下top使用后详细的参数,之前做的笔记找不见了,转载一下,作为以后的使用参考: 原文地址:http://blog.csdn.net/linghao00/article/details/80592 ...

  8. 查看linux内存存储空间不足,Linux 下判断Server 内存是否不足

    下面我来写一下在linux OS 下如何判断系统是否内存吃紧. 我从两个部分来查看如何检查. 第一部分:查看内存使用状况 Linux 下使用Top [root@itc-test9 ~]# top to ...

  9. linux如何看分配固定共享内存段,Linux共享内存的查看和删除

    在使用共享内存的程序异常退出时,由于没有释放掉共享内存,在调试时会出现错误.您可以使用shell命令来查看与释放已经分配的共享内存,下面将详细说明如何进行查看和释放分配的共享内存的方法. 预备知识 L ...

最新文章

  1. 任务与中断共享资源冲突示例
  2. wxWidgets:wxHtmlHelpWindow类用法
  3. C++实现huffman哈夫曼编码的算法(附完整源码)
  4. 2015 UESTC Training for Search Algorithm String - M - Palindromic String【Manacher回文串】
  5. Spring MVC 4快速入门Maven原型已改进
  6. mysql router docker_MySQL Router 完全讲解
  7. idea - Error during artifact deployment. See server log for details.
  8. Python入门之面向对象module,library,package之间区别
  9. PSP 个人软件过程
  10. 多目标跟踪(Multi-Object-Tracking)入门
  11. 刚入行的软件测试工程师如何自学软件测试?
  12. C# WPF MVVM 实战 – 2.4 单元测试
  13. js在赛码网中的输入/输出问题
  14. 儿童学习与发展指南《倾听与表达》篇
  15. 2019年第十届蓝桥杯JAVAB组-----试题 J: 分考场
  16. python xlwt 设置表格的行高方法
  17. OpenStack------Placement组件部署
  18. python while遍历字符串_零基础学Python:while循环和for遍历
  19. python计算平均值标准差和中位数_如何使用python求平均数、方差、中位数
  20. 贪吃蛇大作战游戏——C语言

热门文章

  1. 旧稿--前阿里CEO卫哲的万字长文--B2B春天来了
  2. 申音:免费时代即将终结 互联网付费时代到来
  3. linux学成之路(四)中 linux用户与组管理
  4. Springboot + 国产达梦数据库
  5. laravel 时区配置和时间获取
  6. 自己写编译器词法分析c语言,从零开始写个编译器吧 - 开始写词法分析器(3)...
  7. 添加局域网打印机(网络打印机)
  8. 简单递归题,核反应堆中有α和β两种粒子...
  9. 【SharePoint】SharePoint自定义页面中使用自定义母版页
  10. Florian Winterstein将出任Jedox新首席执行官