진주성 블로그 방문하기
진주성 블로그 방문하기
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
번호 | 제목 | 날짜 | 조회 수 |
---|---|---|---|
170 | Restore Database And Rename Database Files Example | 2019.03.26 | 63093 |
169 | Dns 보안 | 2017.08.23 | 20211 |
168 | Sun t2000 manual | 2017.08.24 | 19972 |
167 | AD(Active Directory) | 2017.11.01 | 18596 |
166 | 한글 putty | 2017.09.13 | 12000 |
165 | Tear Drop / Tiny Fragment / Fragment Overlap(고전적인방법) | 2017.10.17 | 9009 |
164 | Cain & Abel is a password recovery tool | 2018.03.12 | 8070 |
163 | win-sshfs for windows | 2017.09.13 | 7770 |
162 | 룰 기반의 IDS(침입탐지시스템) - snort | 2017.09.27 | 7683 |
161 | HP-UX snmp 중지 설정 | 2017.09.07 | 6862 |
160 | VPN | 2017.11.01 | 5139 |
159 | 보안관제 | 2017.11.01 | 4767 |
158 | 아파치 2.2.29 버젼에서 SSLProtocol 중 TLSv1.2로 설정 | 2019.02.27 | 4425 |
157 | tcpdump - dump traffic on a network [1] | 2017.10.13 | 4028 |
156 | 윈도우용 wget | 2017.09.28 | 4017 |