<?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>1-800-HOSTING Blog &#187; administration</title>
	<atom:link href="http://blog.800hosting.com/tag/administration/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.800hosting.com</link>
	<description>Inside 1-800-HOSTING</description>
	<lastBuildDate>Mon, 19 Jul 2010 21:04:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linux: Low memory &#8211; feature or a bug?</title>
		<link>http://blog.800hosting.com/2009/06/memory_cache_in_linux/</link>
		<comments>http://blog.800hosting.com/2009/06/memory_cache_in_linux/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 19:27:53 +0000</pubDate>
		<dc:creator>Jonathan Kelley</dc:creator>
				<category><![CDATA[Fun Stuff]]></category>
		<category><![CDATA[Industry]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[buffers]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[memory]]></category>

		<guid isPermaLink="false">http://blog.800hosting.com/?p=630</guid>
		<description><![CDATA[Linux actually handles RAM differently than Windows, and this can cause confusion to an administrator in charge of a system. Customers sometimes contact us with worries of low ram, memory leaks and other problems wondering why their system is constantly low on RAM. Case in point: A dedicated customer once ordered two RAM upgrades before [...]]]></description>
			<content:encoded><![CDATA[<p>Linux actually handles RAM differently than Windows, and this can cause confusion to an administrator in charge of a system. Customers sometimes contact us with worries of low ram, memory leaks and other problems wondering why their system is constantly low on RAM. Case in point: A dedicated customer once ordered two RAM upgrades before opening up to us about his concern with memory leaks. We were finally able to share with him that he had plenty!<span id="more-630"></span></p>
<p>Imagine, Apache has been having some strange issues with faults and sigterms mentioned in log files. Today your boss is upset because it happened during a live product demo and the site went down while some major investors were checking it out. You&#8217;ve been tasked not-so-lightly with finding out why. You try some things, then check the memory usage.</p>
<div style=" font-family: Courier New; background-color: black; border: medium double grey; color: white">[root@why-so-plagued-for-ram.local ~]# free -m<br />
total       used       free<br />
Mem:          3289       3126        162<br />
-/+ buffers/cache:        567       <strong><span style="text-decoration: underline;"><span style="color: lightgreen;">2721</span></span></strong><br />
Swap:         1027          0       1027</div>
<p>You may think you&#8217;ve pinned the problem! Merely 162 megabytes of RAM available can certainly cause problems. Come mid-day, that will be exhausted! However, a closer inspection shows you have <span style="color: darkgreen;"><strong>2721</strong></span> megabytes free memory. See the -/+ buffers/cache part? That&#8217;s cached memory, that is actually available usable system memory. You&#8217;ve got plenty!</p>
<p><strong>What is -/+ buffers/cache?</strong></p>
<p>Linux uses buffers/cache for disk caching (possibly other functions as well) to help your overall system performance. This makes I/O operations and other functions the kernel uses go quicker. The kernel figures if there&#8217;s RAM to use, why not use it? (Why not?)</p>
<p>If a program were to start that needs the memory, the buffer is dynamically re-sized to exclude the memory needed by the application. It&#8217;s harmless, interferes with programs in no way, and helps your system do other operations faster via the speed of your memory. What&#8217;s not to love?</p>
<p>As for those Apache issues, hopefully you&#8217;ll figure them out before your boss has another incident! At least you&#8217;ve solved the issue with the memory. It&#8217;s not a bug, leak, or coding issue: it&#8217;s a feature.</p>
<p>I&#8217;d like to credit Vidar at <a href="http://www.linuxatemyram.com/">Linux Ate My Ram!</a> for addressing this issue for the internet community at large, and for being the inspiration of this posting. [He has also written <a href="http://www.linuxatemyram.com/play.html">source code</a> to prove this theory should anyone want to experiment.]</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://blog.800hosting.com/2010/02/php-script-tips-and-resources/" title="PHP Script Tips and Resources">PHP Script Tips and Resources</a></li><li><a href="http://blog.800hosting.com/2009/12/a-little-security-goes-a-loooong-way/" title="A Little Security Goes a LOOOONG Way">A Little Security Goes a LOOOONG Way</a></li><li><a href="http://blog.800hosting.com/2009/12/drupal-free-website-building-tool/" title="Drupal &#8211; Free Website Building Tool">Drupal &#8211; Free Website Building Tool</a></li><li><a href="http://blog.800hosting.com/2009/11/linux-tip-setting-up-key-based-authentication/" title="Linux Tip: Setting up key-based authentication.">Linux Tip: Setting up key-based authentication.</a></li><li><a href="http://blog.800hosting.com/2009/05/linux-shell-insights-volume-2/" title="Linux Shell Insights: Volume 2">Linux Shell Insights: Volume 2</a></li><li><a href="http://blog.800hosting.com/2009/05/linux-shell-insights-volume-1/" title="Linux Shell Insights: Volume 1">Linux Shell Insights: Volume 1</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.800hosting.com/2009/06/memory_cache_in_linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
