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

22 lines
548 B
Plaintext
Raw Normal View History

2024-01-07 10:02:35 +01:00
====== 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