Copy with speed and progress:
rsync -r -v --info=progress2 ssh user@remote-system:/address/to/remote/file /home/user/
Clear cache / buffer:
sudo sync && sudo sysctl vm.drop_caches = 1|2|3
or
echo 3 | sudo tee /proc/sys/vm/drop_caches
Periodically clear cache / buffer:
sudo crontab -e
0 * * * * /usr/bin/sync; /usr/sbin/sysctl vm.drop_caches=3
vfs cache threshold:
sudo sysctl vm.vfs_cache_pressure=100
没有评论:
发表评论