리눅스 캐시 메모리 비우기

Jmnote (토론 | 기여)님의 2012년 10월 9일 (화) 09:40 판 (→‎참고 자료)
리눅스 캐시 메모리 비우기
리눅스 캐시 메모리 줄이기
/proc/sys/vm/drop_caches

1 명령어

sync; echo 3 > /proc/sys/vm/drop_caches

2 실행예시

[root@jmnote ~]# cat /proc/sys/vm/drop_caches
0
[root@jmnote ~]# free -m
             total       used       free     shared    buffers     cached
Mem:          3881       1183       2698          0        156        617
-/+ buffers/cache:        408       3472
Swap:         6063          0       6063
[root@jmnote ~]# sync; echo 3 > /proc/sys/vm/drop_caches
[root@jmnote ~]# cat /proc/sys/vm/drop_caches
3
[root@jmnote ~]# free -m
             total       used       free     shared    buffers     cached
Mem:          3881        365       3516          0          0         21
-/+ buffers/cache:        342       3538
Swap:         6063          0       6063

3 같이 보기

4 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}