[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 剩餘部分,則是真實剩餘記憶體。