未启用前
[root@ol819c ~]# free -htotal used free shared buff/cache available
Mem: 9.3Gi 984Mi 379Mi 1.5Gi 8.0Gi 6.8Gi
Swap: 15Gi 3.0Mi 15Gi
[root@ol819c ~]# free -htotal used free shared buff/cache available
Mem: 9.3Gi 984Mi 379Mi 1.5Gi 8.0Gi 6.8Gi
Swap: 15Gi 3.0Mi 15Gi
启用后
[root@ol819c ~]# free -htotal used free shared buff/cache available
Mem: 9.3Gi 2.6Gi 5.3Gi 10Mi 1.5Gi 6.6Gi
Swap: 15Gi 0B 15Gi
[root@ol819c ~]# free -htotal used free shared buff/cache available
Mem: 9.3Gi 2.6Gi 5.3Gi 10Mi 1.5Gi 6.6Gi
Swap: 15Gi 0B 15Gi
02:25:36 PM重新后使用 sar -rh 查看
12:00:00 PM kbmemfree kbavail kbmemused %memused kbbuffers kbcached kbcommit %commit kbactive kbinact kbdirty
12:10:00 PM 144.5M 6.7G 9.2G 98.5% 3.3M 8.0G 4.2G 16.6% 4.0G 4.8G 0.0k
12:20:00 PM 144.2M 6.7G 9.2G 98.5% 3.3M 8.0G 4.2G 16.6% 4.0G 4.8G 0.0k
12:30:00 PM 144.2M 6.7G 9.2G 98.5% 3.3M 8.0G 4.2G 16.6% 4.0G 4.8G 0.0k
12:40:00 PM 144.8M 6.7G 9.2G 98.5% 3.3M 8.0G 4.2G 16.6% 4.0G 4.8G 0.0k
12:50:00 PM 144.3M 6.7G 9.2G 98.5% 3.3M 8.0G 4.2G 16.6% 4.0G 4.8G 0.0k
01:00:00 PM 144.0M 6.7G 9.2G 98.5% 3.3M 8.0G 4.2G 16.6% 4.0G 4.8G 0.0k
01:10:00 PM 242.3M 6.7G 9.1G 97.5% 3.3M 7.9G 4.2G 16.6% 4.0G 4.7G 0.0k
01:20:00 PM 242.1M 6.7G 9.1G 97.5% 3.3M 7.9G 4.2G 16.6% 4.0G 4.7G 0.0k
01:30:00 PM 239.4M 6.7G 9.1G 97.5% 3.3M 7.9G 4.2G 16.6% 4.0G 4.7G 0.0k
01:40:00 PM 236.1M 6.7G 9.1G 97.5% 3.3M 7.9G 4.2G 16.6% 4.0G 4.7G 8.0k
01:50:00 PM 208.7M 6.7G 9.1G 97.8% 3.3M 7.9G 4.2G 16.7% 4.0G 4.7G 4.0k
02:00:00 PM 218.3M 6.7G 9.1G 97.7% 3.3M 7.9G 4.2G 16.7% 4.0G 4.7G 16.0k
02:10:00 PM 207.4M 6.7G 9.1G 97.8% 3.3M 7.9G 4.2G 16.7% 4.0G 4.7G 4.0k
02:20:00 PM 2.2G 8.7G 7.2G 76.8% 3.3M 6.5G 2.0G 7.8% 2.9G 4.0G 12.0k
Average: 235.7M 6.7G 9.1G 97.5% 3.3M 7.9G 4.2G 16.5% 3.9G 4.8G 1.1k02:25:36 PM LINUX RESTART (4 CPU)02:30:01 PM kbmemfree kbavail kbmemused %memused kbbuffers kbcached kbcommit %commit kbactive kbinact kbdirty
02:40:01 PM 5.3G 6.6G 4.1G 43.5% 3.3M 1.4G 2.8G 11.1% 295.7M 1.9G 8.0k
02:50:01 PM 5.4G 6.7G 4.0G 42.5% 3.3M 1.4G 2.7G 10.5% 301.9M 1.9G 8.0k
03:00:00 PM 5.3G 6.7G 4.0G 42.7% 3.3M 1.4G 2.7G 10.6% 302.0M 1.9G 4.0k
Average: 5.3G 6.7G 4.0G 42.9% 3.3M 1.4G 2.7G 10.7% 299.9M 1.9G 6.7k
[root@ol819c ~]#