名词解释
1、MemTotal:总安装内存
Total installed memory (MemTotal and SwapTotal in /proc/meminfo)
2、MemFree:空闲内存数
Unused memory (MemFree and SwapFree in /proc/meminfo)
3、MemAvailable:(应用)可用内存数
without swapping,how much memory is available for starting new applica‐tions
使用free命令,显示系统内存信息,-m指定以MB为单位显示。
4、Buffer:内核缓冲区使用的内存数,一般用在写入磁盘
Memory used by kernel buffers
5、Cache:缓存区内存数、是cpu和主内存之间的高速缓存
Memory used by the page cache and slabs
由于内存自身的管理的开销,内存大小的2.34%(96/4096)会被内核固定使用,所以我们看到free -m中显示的内存总数比上面的图少了约24MB。
最后有个疑问:free -m中共享内存shared所使用的12MB,应该是在cache中,嗯,应该...