Linux clean cache

class:Linux views:118 Author:xiaomo314
Command
echo 1 > /proc/sys/vm/drop_caches
Explanation
echo 1> /proc/sys/vm/drop_caches : long-time boot, manually clear the cache
Operation result
[root@server-243 ~]# free -h
              total        used        free      shared  buff/cache   available
Mem:            15G        3.6G        9.7G        1.6M        1.9G         11G
Swap:          7.7G          0B        7.7G
[root@server-243 ~]# echo 1 > /proc/sys/vm/drop_caches
[root@server-243 ~]# free -h
              total        used        free      shared  buff/cache   available
Mem:            15G        3.6G         10G        1.6M        686M         11G
Swap:          7.7G          0B        7.7G

This platform is gradually under construction, more development orders are gradually included, any questions or Suggestions can be Contact Us