Advertisement
asanchez75

Linux/cache/hdparm

May 4th, 2012
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. Links
  2. http://www.techpulp.com/blog/2010/01/how-to-free-cached-memory-and-dirty-pages-in-linux/
  3.  
  4. To free page cache:
  5.  
  6. [root@techpulp ~]# echo 1 > /proc/sys/vm/drop_caches
  7.  
  8. To free dentries and inodes:
  9.  
  10. [root@techpulp ~]# echo 2 > /proc/sys/vm/drop_caches
  11.  
  12. To free page cache, dentries and inodes:
  13.  
  14. [root@techpulp ~]# echo 3 > /proc/sys/vm/drop_caches
  15.  
  16. hdparm -I /dev/sda
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement