作者:微信小助手
发布时间:2021-08-24T08:32:59
内存瓶颈
free
free
是查看内存使用情况,包括物理内存、交换内存(swap)和内核缓冲区内存。free -h -s 3
表示每隔三秒输出一次内存情况,命令如下[1014154@cc69dd4c5-4tdb5 ~]$ free
total used free shared buff/cache available
Mem: 119623656 43052220 45611364 4313760 30960072 70574408
Swap: 0 0 0
[1014154@cc69dd4c5-4tdb5 ~]$ free -h -s 3
total used free shared buff/cache available
Mem: 114G 41G 43G 4.1G 29G 67G
Swap: 0B 0B 0B
total used free shared buff/cache available
Mem: 114G 41G 43G 4.1G 29G 67G
Swap: 0B 0B 0B
Mem
:是内存的使用情况。
Swap
:是交换空间的使用情况。
total
:系统总的可用物理内存和交换空间大小。
used
:已经被使用的物理内存和交换空间。
free
:还有多少物理内存和交换空间可用使用,
是真正尚未被使用的物理内存数量。
shared
:被共享使用的物理内存大小。
buff/cache
:被 buffer(缓冲区) 和 cache(缓存) 使用的物理内存大小。