abonnel-siteweb/data/pages/informatique/cfp/vider_le_cache_memoire.txt

22 lines
548 B
Plaintext

====== Cache en mémoire : vider ======
{{tag>"Linux commande"}}
https://unix.stackexchange.com/questions/87908/how-do-you-empty-the-buffers-and-cache-on-a-linux-system
To free pagecache
sudo sh -c 'echo 1 >/proc/sys/vm/drop_caches'
To free dentries and inodes
sudo sh -c 'echo 2 >/proc/sys/vm/drop_caches'
To free pagecache, dentries and inodes
sudo sh -c 'echo 3 >/proc/sys/vm/drop_caches'
===== dés / activer le swap =====
sudo swapoff -a
sudo swapon -a
===== Tuer tous les process avec un nom =====
sudo killall teamviewerd