진주성 블로그 방문하기
진주성 블로그 방문하기
OS Linux Cache Memory Clear
2020.01.20 18:28
Linux Cache Memory Clear
커널상에서 캐쉬를 클리어하게 만드는 값으로 1,2,3 중에 하나를 사용하면 된며 커널 2.6.16 이상에서부터 추가되서 사용가능하다.
To free pagecache: (페이지케쉬 클리어)
- echo 1 > /proc/sys/vm/drop_caches
To free dentries and inodes: (트리와 아이노드 클리어)
- echo 2 > /proc/sys/vm/drop_caches
To free pagecache, dentries and inodes: (1번과 2번 모두 클리어)
- echo 3 > /proc/sys/vm/drop_caches
As this is a non-destructive operation, and dirty objects are not freeable, the user should run "sync" first in order to make sure all cached objects are freed.
댓글 0
번호 | 제목 | 날짜 | 조회 수 |
---|---|---|---|
95 | 국제공통 평가 기준 표준 (CC:Common Criteria) | 2017.11.09 | 248 |
94 | 정보통신망법 | 2017.11.09 | 97 |
93 | IoT 보안 | 2017.11.08 | 87 |
92 | 접근통제 참조모델 | 2017.11.07 | 143 |
91 | 쉘쇼크(Shellshock) | 2017.11.07 | 116 |
90 | 악성코드의 종류 | 2017.11.07 | 383 |
89 | 디지털 포렌직 조사의 일반원칙 | 2017.11.07 | 92 |
88 | ftp 보안 취약점및 대책 | 2017.11.05 | 538 |
87 | Dos 공격유형 및 차단 | 2017.11.03 | 721 |
86 | command | 2017.11.01 | 966 |
85 | ICMP | 2017.11.01 | 1050 |
84 | 아파치 웹서버 보안설정 | 2017.11.01 | 3419 |
83 | HTTP Header | 2017.11.01 | 112 |
82 | IPv4, IPv6 | 2017.11.01 | 108 |
81 | OSI 7 Layer | 2017.11.01 | 214 |