<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"	>
<channel>
	<title>Comments on: All About Linux Swap Part 3: Analysis</title>
	<atom:link href="http://www.ideaexcursion.com/2009/02/06/all-about-linux-swap-part-3-analysis/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ideaexcursion.com/2009/02/06/all-about-linux-swap-part-3-analysis/</link>
	<description>Technology Musings</description>
	<lastBuildDate>Tue, 09 Mar 2010 13:15:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Taylor Gerring</title>
		<link>http://www.ideaexcursion.com/2009/02/06/all-about-linux-swap-part-3-analysis/comment-page-1/#comment-151</link>
		<dc:creator>Taylor Gerring</dc:creator>
		<pubDate>Tue, 10 Mar 2009 21:43:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.ideaexcursion.com/?p=424#comment-151</guid>
		<description>I&#039;ve been very happy turning swappiness down from 60 to 40. I don&#039;t often fill all 4GB of RAM, so this is enough of a change to prevent swap being used unnecessarily without turning it off completely.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been very happy turning swappiness down from 60 to 40. I don&#8217;t often fill all 4GB of RAM, so this is enough of a change to prevent swap being used unnecessarily without turning it off completely.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trenton D. Adams</title>
		<link>http://www.ideaexcursion.com/2009/02/06/all-about-linux-swap-part-3-analysis/comment-page-1/#comment-150</link>
		<dc:creator>Trenton D. Adams</dc:creator>
		<pubDate>Tue, 10 Mar 2009 18:45:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.ideaexcursion.com/?p=424#comment-150</guid>
		<description>I have used no swap for a couple of years.  I was sick of my system swapping so much that I just quit using a swap file all together.  At the time, I didn&#039;t know that the kernel was configurable in this regard, so I just worked without swap.  I have 4G of memory, and I NEVER get out of memory errors.  I&#039;m a Java developer, so that&#039;s pretty amazing!!! HEHE.

Recently I went searching for the configurability of swappiness.  It is documented in the kernel source.  So, I&#039;m trying out using swap again, but with a swappiness of 0.  I haven&#039;t seen any problems yet, and I honestly don&#039;t expect any.  So yeah, I think Andrew Morton&#039;s view is a legacy one.  I understand his point, and I would have agreed with 256M of RAM, but things really have changed.  4G is common place these days.

I think with swap disabled, or swappiness set to 0, the kernel does an extremely good job of managing system cache.  The system cache is always high UNLESS the kernel needs to allocate more memory.  I&#039;m usually seeing &gt;= 1G system cache, with a few M free, and I appreciate that.

As for the kernel killing processes, when out of memory, I don&#039;t have a problem with that at all.  I just think the default behaviour for that is, well, REALLY BAD.  The default is to kill the one with the most memory.  Well, on a server, that&#039;s a REALLY BAD THING.  Suddenly a service could be down, and you didn&#039;t know.  So, I like to change the default behaviour like so...

echo 1 &gt; /proc/sys/vm/oom_kill_allocating_task

This will cause the allocating task that ran out of memory to be killed.  Usually, this is what I want, *I think*.  However, I am uncertain of the behaviour if you are really at your memory peak.  But, I&#039;m trying it out, and I&#039;ll see what happens.</description>
		<content:encoded><![CDATA[<p>I have used no swap for a couple of years.  I was sick of my system swapping so much that I just quit using a swap file all together.  At the time, I didn&#8217;t know that the kernel was configurable in this regard, so I just worked without swap.  I have 4G of memory, and I NEVER get out of memory errors.  I&#8217;m a Java developer, so that&#8217;s pretty amazing!!! HEHE.</p>
<p>Recently I went searching for the configurability of swappiness.  It is documented in the kernel source.  So, I&#8217;m trying out using swap again, but with a swappiness of 0.  I haven&#8217;t seen any problems yet, and I honestly don&#8217;t expect any.  So yeah, I think Andrew Morton&#8217;s view is a legacy one.  I understand his point, and I would have agreed with 256M of RAM, but things really have changed.  4G is common place these days.</p>
<p>I think with swap disabled, or swappiness set to 0, the kernel does an extremely good job of managing system cache.  The system cache is always high UNLESS the kernel needs to allocate more memory.  I&#8217;m usually seeing &gt;= 1G system cache, with a few M free, and I appreciate that.</p>
<p>As for the kernel killing processes, when out of memory, I don&#8217;t have a problem with that at all.  I just think the default behaviour for that is, well, REALLY BAD.  The default is to kill the one with the most memory.  Well, on a server, that&#8217;s a REALLY BAD THING.  Suddenly a service could be down, and you didn&#8217;t know.  So, I like to change the default behaviour like so&#8230;</p>
<p>echo 1 &gt; /proc/sys/vm/oom_kill_allocating_task</p>
<p>This will cause the allocating task that ran out of memory to be killed.  Usually, this is what I want, *I think*.  However, I am uncertain of the behaviour if you are really at your memory peak.  But, I&#8217;m trying it out, and I&#8217;ll see what happens.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stan_qaz</title>
		<link>http://www.ideaexcursion.com/2009/02/06/all-about-linux-swap-part-3-analysis/comment-page-1/#comment-93</link>
		<dc:creator>stan_qaz</dc:creator>
		<pubDate>Sat, 07 Feb 2009 00:08:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.ideaexcursion.com/?p=424#comment-93</guid>
		<description>Don&#039;t overlook the need for swap if using some of the hibernate options. This was briefly mentioned in part 1.</description>
		<content:encoded><![CDATA[<p>Don&#8217;t overlook the need for swap if using some of the hibernate options. This was briefly mentioned in part 1.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
