Linux命令free解读
生活随笔
收集整理的這篇文章主要介紹了
Linux命令free解读
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
1、free命令
一般用free查看、監(jiān)控系統(tǒng)內(nèi)存使用情況,free命令是一個顯示系統(tǒng)中空閑和已用內(nèi)存大小的工具。
free 命令使用/proc/meminfo中的值作為基準來顯示內(nèi)存利用率信息。
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 represents the ’Shmem’ value. The available memory column represents the ’MemAvailable’ value.
2、free參數(shù)
$ free --helpUsage:free [options]Options:-b, --bytes show output in bytes-k, --kilo show output in kilobytes-m, --mega show output in megabytes-g, --giga show output in gigabytes--tera show output in terabytes-h, --human show human-readable output--si use powers of 1000 not 1024-l, --lohi show detailed low and high memory statistics-t, --total show total for RAM + swap-s N, --seconds N repeat printing every N seconds-c N, --count N repeat printing N times, then exit-w, --wide wide output--help display this help and exit-V, --version output version information and exit3、free輸出 $ free -gtotal used free shared buff/cache available Mem: 58 6 23 0 28 52 Swap: 15 0 15
total:總物理內(nèi)存大小;
used:已使用的物理內(nèi)存;
free:完全未使用的物理內(nèi)存;
shared:應用程序共享的物理內(nèi)存;
Buffers:緩存塊設(shè)備,如用戶目錄、文件metadata等;
Cached:緩存文件;
總結(jié)
以上是生活随笔為你收集整理的Linux命令free解读的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【正一专栏】运动式的创建文明城市要着干嘛
- 下一篇: 机器学习笔记(十六)强化学习