<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>UNIXy &#187; cached</title>
	<atom:link href="http://blog.unixy.net/tag/cached/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.unixy.net</link>
	<description>Fully Managed Dedicated Servers</description>
	<lastBuildDate>Fri, 03 Feb 2012 17:37:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Flush Buffers And cache On Linux</title>
		<link>http://blog.unixy.net/2009/07/flush-buffers-and-cache-on-linux/</link>
		<comments>http://blog.unixy.net/2009/07/flush-buffers-and-cache-on-linux/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 05:48:56 +0000</pubDate>
		<dc:creator>UNIXy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[buffers]]></category>
		<category><![CDATA[cached]]></category>
		<category><![CDATA[flush buffers]]></category>
		<category><![CDATA[flush cache]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[free memory]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.unixy.net/?p=19</guid>
		<description><![CDATA[Many users tend to worry when the free memory on a Linux system is very low. Especially when the system is barely active. What many don&#8217;t know is that this is normal behavior for Linux. It simply takes your free memory and caches it. This caching behavior makes subsequent memory allocations much faster. So it [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.unixy.net%2F2009%2F07%2Fflush-buffers-and-cache-on-linux%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.unixy.net%2F2009%2F07%2Fflush-buffers-and-cache-on-linux%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Many users tend to worry when the free memory on a Linux system is very low. Especially when the system is barely active. What many don&#8217;t know is that this is normal behavior for Linux. It simply takes your free memory and caches it. This caching behavior makes subsequent memory allocations much faster. So it improves performance overall.</p>
<p>However, if you really really need to flush the cache and buffers, you can run the following two commands on the shell as root:</p>
<blockquote><p><code>sync; echo 3 > /proc/sys/vm/drop_caches</code></p></blockquote>
<p>Here&#8217;s the output of <em>free</em> before and after running the above command.</p>
<p><strong>Before</strong></p>
<pre>
# free -m
             total       used       free     shared    buffers     cached
Mem:           502        487         15          0         <strong>15        170</strong>
-/+ buffers/cache:        301        201
Swap:         3153        375       2777
</pre>
<p><strong>After</strong></p>
<pre>
# free -m
             total       used       free     shared    buffers     cached
Mem:           502        345        157          0         <strong> 1         44</strong>
-/+ buffers/cache:        300        202
</pre>
<p>As you can see the highlighted numbers, the buffers and cached values have dropped significantly after I ran the command. Again, this is not necessary. In fact, it&#8217;s not recommended at all but there it is if you&#8217;re curious to know.</p>
<p>That&#8217;s all folks. I hope you enjoyed this one.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.unixy.net/2009/07/flush-buffers-and-cache-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

