"리눅스 캐시 메모리 비우기"의 두 판 사이의 차이

38번째 줄: 38번째 줄:
==참고 자료==
==참고 자료==
*http://people.arsc.edu/~kcarlson/software/man/drop_caches.html
*http://people.arsc.edu/~kcarlson/software/man/drop_caches.html
*http://unix.stackexchange.com/questions/17936/setting-proc-sys-vm-drop-caches-to-clear-cache


[[분류: 리눅스]]
[[분류: 리눅스]]
[[분류: 메모리]]
[[분류: 메모리]]

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 }}