imdl@imdl-004:~$ free -g
total used free shared buff/cache available
Mem: 31 4 2 0 24 26
Swap: 1 0 1
imdl@imdl-004:~$ sync
imdl@imdl-004:~$ echo 3 > /proc/sys/vm/drop_caches
bash: /proc/sys/vm/drop_caches: Permission denied
imdl@imdl-004:~$ sudo -s
[sudo] password for imdl:
root@imdl-004:~# echo 3 > /proc/sys/vm/drop_caches
root@imdl-004:~# free -g
total used free shared buff/cache available
Mem: 31 4 26 0 0 26
Swap: 1 0 1
linux清空缓存buff/cache
最新推荐文章于 2024-08-24 16:56:39 发布