centos7查看内存使用情况

centos7 查看内存使用情况说明

[root@t80 ~]# lsb_release -a
LSB Version:	:core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID:	CentOS
Description:	CentOS Linux release 7.9.2009 (Core)
Release:	7.9.2009
Codename:	Core
[root@t80 ~]# free -h
              total        used        free      shared  buff/cache   available
Mem:           7.6G        1.6G        404M        424M        5.7G        5.4G
Swap:          5.0G        7.0M        5.0G

 注:

第一行:

total:内存总大小。

used:使用的内存。

free:除了buff/cache剩余的内存。

shared:共享内存。

buff/cache:缓冲、缓存区内存数。

available:真实剩余的可用内存数。

关系:total = used + free + buff/cache

关系:available 包含 free 和 buff/cache 剩余部分,则是真实剩余内存。

  

posted @ 2021-09-01 13:49  MR__Wang  阅读(2578)  评论(0编辑  收藏  举报