<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">I know, but it can not allocate all the cache memory, so you will fail sometimes if the memory has not been reclaimed.<br><br><div></div><div id="divNeteaseMailCard"></div><br><pre><br>在&nbsp;2012-02-17&nbsp;15:13:18,"Wang&nbsp;Chao"&nbsp;&lt;wangchao19890207@gmail.com&gt;&nbsp;写道:
&gt;On&nbsp;02/16/12&nbsp;at&nbsp;09:33pm,&nbsp;黄小伟&nbsp;wrote:
&gt;&gt;&nbsp;I&nbsp;know&nbsp;this,&nbsp;but&nbsp;I&nbsp;want&nbsp;to&nbsp;reclaim&nbsp;dynamically.&nbsp;Say&nbsp;in&nbsp;a&nbsp;shout&nbsp;time,&nbsp;several&nbsp;seconds.
&gt;Why&nbsp;do&nbsp;want&nbsp;to&nbsp;do&nbsp;that?&nbsp;Does&nbsp;it&nbsp;have&nbsp;a&nbsp;bad&nbsp;influence&nbsp;on&nbsp;performance?
&gt;Kernel&nbsp;will&nbsp;reclaim&nbsp;these&nbsp;cache&nbsp;itself&nbsp;when&nbsp;your&nbsp;machine&nbsp;runs&nbsp;out&nbsp;of&nbsp;mm.
&gt;&gt;&nbsp;
&gt;&gt;&nbsp;
&gt;&gt;&nbsp;
&gt;&gt;&nbsp;
&gt;&gt;&nbsp;
&gt;&gt;&nbsp;在&nbsp;2012-02-16&nbsp;21:21:11,"Manish&nbsp;Katiyar"&nbsp;&lt;mkatiyar@gmail.com&gt;&nbsp;写道:
&gt;&gt;&nbsp;&gt;2012/2/16&nbsp;黄小伟&nbsp;&lt;jingle2422@163.com&gt;:
&gt;&gt;&nbsp;&gt;&gt;&nbsp;&nbsp;Hi
&gt;&gt;&nbsp;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I&nbsp;encounter&nbsp;a&nbsp;problem&nbsp;recentely.&nbsp;My&nbsp;system&nbsp;supports&nbsp;USB&nbsp;strorage&nbsp;and
&gt;&gt;&nbsp;&gt;&gt;&nbsp;other&nbsp;network&nbsp;applications.
&gt;&gt;&nbsp;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;But&nbsp;after&nbsp;I&nbsp;put&nbsp;a&nbsp;file&nbsp;to&nbsp;usb&nbsp;storage,&nbsp;it&nbsp;will&nbsp;consume&nbsp;some&nbsp;many
&gt;&gt;&nbsp;&gt;&gt;&nbsp;momory.
&gt;&gt;&nbsp;&gt;&gt;&nbsp;(buffer&nbsp;+&nbsp;cache).
&gt;&gt;&nbsp;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;And&nbsp;these&nbsp;buffered&nbsp;memory&nbsp;can&nbsp;not&nbsp;be&nbsp;reclaimed(use&nbsp;free&nbsp;command).
&gt;&gt;&nbsp;&gt;&gt;&nbsp;So&nbsp;I&nbsp;want&nbsp;to&nbsp;know&nbsp;how&nbsp;to&nbsp;reclaim&nbsp;the&nbsp;buffer&nbsp;memory&nbsp;in&nbsp;a&nbsp;short&nbsp;time.
&gt;&gt;&nbsp;&gt;
&gt;&gt;&nbsp;&gt;Google&nbsp;for&nbsp;./sys/vm/drop_caches
&gt;&gt;&nbsp;&gt;
&gt;&gt;&nbsp;&gt;--&nbsp;
&gt;&gt;&nbsp;&gt;Thanks&nbsp;-
&gt;&gt;&nbsp;&gt;Manish
&gt;&gt;&nbsp;&gt;
&gt;&gt;&nbsp;&gt;_______________________________________________
&gt;&gt;&nbsp;&gt;Kernelnewbies&nbsp;mailing&nbsp;list
&gt;&gt;&nbsp;&gt;Kernelnewbies@kernelnewbies.org
&gt;&gt;&nbsp;&gt;http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
&gt;
&gt;&gt;&nbsp;_______________________________________________
&gt;&gt;&nbsp;Kernelnewbies&nbsp;mailing&nbsp;list
&gt;&gt;&nbsp;Kernelnewbies@kernelnewbies.org
&gt;&gt;&nbsp;http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
&gt;
&gt;
&gt;--&nbsp;
&gt;Thanks,
&gt;Chao&nbsp;Wang
&gt;
&gt;_______________________________________________
&gt;Kernelnewbies&nbsp;mailing&nbsp;list
&gt;Kernelnewbies@kernelnewbies.org
&gt;http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
</pre></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>