命令是:
echo 1 > /proc/sys/vm/drop_caches
当然,一般来说是不需要这么操作的。
在我的128Mvps上试了下:
[root@localhost /]# free -m
total used free shared buffers cached命令是:
echo 1 > /proc/sys/vm/drop_caches
当然,一般来说是不需要这么操作的。
在我的128Mvps上试了下:
[root@localhost /]# free -m
total used free shared buffers cached
Mem: 128 125 2 0 2 86
-/+ buffers/cache: 36 91
Swap: 255 0 255
[root@localhost /]# echo 1 > /proc/sys/vm/drop_caches
[root@localhost /]# free -m
total used free shared buffers cached
Mem: 128 47 80 0 0 11
-/+ buffers/cache: 35 92
Swap: 255 0 255
Mem: 128 125 2 0 2 86
-/+ buffers/cache: 36 91
Swap: 255 0 255
[root@localhost /]# echo 1 > /proc/sys/vm/drop_caches
[root@localhost /]# free -m
total used free shared buffers cached
Mem: 128 47 80 0 0 11
-/+ buffers/cache: 35 92
Swap: 255 0 255
清理linux缓存
最新推荐文章于 2024-10-16 22:25:37 发布