출처 : http://goo.gl/oexhJ
Ever wondered how to remove the cache memory in Ubuntu? Linux kernels 2.6.16 and newer provide a mechanism to clear the inode, page, and dentry caches on demand. All you have to do is echo a value to the proc filesystem, and you’re done. Follow the recipe below:
As this is a non-destructive operation and dirty objects are not freeable, run:
sync
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"
Hope this works for you all.
728x90
'OS > LINUX' 카테고리의 다른 글
Ubuntu Desktop 10.04 용 (0) | 2011.04.26 |
---|---|
내부망 컴퓨터에서 외부로 나가도록 iptables 설정. (0) | 2011.04.15 |
redhat(centos) network check (0) | 2011.04.11 |
우분투에서 삭제된 파일 복구하기 (1) | 2011.03.28 |
Linux에서 여러파일 이름 한번에 바꾸기 (0) | 2011.03.09 |