[root@test1 ~]# free -m
total used free shared buffers cached
Mem: 988 901 86 0 286 227
-/+ buffers/cache: 388 600
Swap: 1983 2 1981
[root@test1 ~]# sync
[root@test1 ~]# echo 3 > /proc/sys/vm/drop_caches
[root@test1 ~]# cat /proc/sys/vm/drop_caches
3
[root@test1 ~]# free -m
total used free shared buffers cached
Mem: 988 361 626 0 15 30
-/+ buffers/cache: 316 672
Swap: 1983 2 1981
linux 内存释放
最新推荐文章于 2024-03-04 21:32:01 发布