진주성 블로그 방문하기
진주성 블로그 방문하기
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
번호 | 제목 | 날짜 | 조회 수 |
---|---|---|---|
19 | hpux cron job 실행 에러 처리 방안 | 2018.07.06 | 353 |
18 | [리눅스] 다른 서버에 있는 파일 가져오기(SCP 이용) | 2018.01.25 | 346 |
» | Linux Cache Memory Clear | 2020.01.20 | 333 |
16 | hpux cmsnmpd daemon 중지 | 2019.02.28 | 273 |
15 | netstat | 2020.02.05 | 233 |
14 | top을 통해 살펴보는 프로세스 정보들 | 2020.03.05 | 210 |
13 | ThreadDump 분석 | 2020.01.02 | 197 |
12 | 어플리케이션 보안 | 2017.11.01 | 133 |
11 | /etc/xinetd.conf 설정 값 | 2017.11.09 | 114 |
10 | hp-ux glance Memory Sort | 2021.02.26 | 83 |
9 | HPUX Apache 2.4.53 다운로드 및 설치 | 2022.07.20 | 60 |
8 | qlogic qaucli command - HBA카드 온도체크 | 2022.07.05 | 45 |
7 | vi, vim ^M 제거 | 2021.04.02 | 38 |
6 | Jeus7 Getting Start Guide | 2021.03.09 | 37 |
5 | Red Hat Enterprise Linux technology capabilities and limits | 2021.05.13 | 30 |
4 | Jeus 8.5 설치및 운영 | 2023.10.24 | 20 |
3 | Jeus 8.5 + WebtoB 연동및 운영 | 2023.10.24 | 16 |
2 | Webtob Install for Linux | 2023.10.23 | 11 |
1 | Webtob Install for Windows and command | 2023.10.24 | 10 |