¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 111°Ç
   
linux memory cache flush (¸®´ª½º ¸Þ¸ð¸® ÃʱâÈ­)
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2010-03-15 (¿ù) 14:34 Á¶È¸ : 19892
±ÛÁÖ¼Ò :
                             

¸®´ª½º¿¡¼­´Â ÃÖ±Ù »ç¿ëÇÑ °ÍµéÀ»  ¹ö¸®Áö ¾Ê°í, ¸Þ¸ð¸®¿¡ cache ½ÃÄÑ ³õ°í ´ë±âÇϴµ¥ µð½ºÅ©¿¡¼­ ÀÐ¾î ¿À´Â °Íº¸´Ù, ij½ÃµÈ ¸Þ¸ð¸®¿¡¼­ Àоî¿À´Â °ÍÀÌ ÈξÀ ºü¸£°í, µð½ºÅ©¿¡ ºÎÇϵµ Àû°Ô °É¸®±â ¶§¹®ÀÔ´Ï´Ù.
µû¶ó¼­ ½Ã½ºÅÛ¿¡¼­ ¾Ë¾Æ¼­ °ü¸®ÇØÁÖ´Â °ÍÀÌ ÀÌÀü¿¡ ½ÇÇàÇß´ø °ÍµéÀ» ºñ¿ìÁö ¾Ê°í  cache Çسõ°í ´ë±âÇÏ°í ÀÖ´Â °ÍÀÔ´Ï´Ù. 

memory ¿¡ ÀÖ´ø cache °­Á¦·Î flush
echo 3 > /proc/sys/vm/drop_caches

ÇöÀç ¸Þ¸ð¸® »ç¿ë·®
 
Ŭ¸®¾î ÀÌÈÄ ÇöÀç ¸Þ¸ð¸® »ç¿ë·®
 
¸Þ¸ð¸®»ç¿ë·® MRTG ¼öÄ¡


Ä¿³Î»ó¿¡¼­ ij½¬¸¦ Ŭ¸®¾îÇÏ°Ô ¸¸µå´Â °ªÀ¸·Î 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.

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.