<?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/"
		>
<channel>
	<title>Comments on: Reducing inode and dentry caches to keep OOM killer at bay</title>
	<atom:link href="http://rackerhacker.com/2008/12/03/reducing-inode-and-dentry-caches-to-keep-oom-killer-at-bay/feed/" rel="self" type="application/rss+xml" />
	<link>http://rackerhacker.com/2008/12/03/reducing-inode-and-dentry-caches-to-keep-oom-killer-at-bay/</link>
	<description>Words of wisdom from a server administrator</description>
	<lastBuildDate>Sat, 11 Feb 2012 23:43:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Liberando la memoria Cache &#124; El atareao</title>
		<link>http://rackerhacker.com/2008/12/03/reducing-inode-and-dentry-caches-to-keep-oom-killer-at-bay/#comment-23929</link>
		<dc:creator>Liberando la memoria Cache &#124; El atareao</dc:creator>
		<pubDate>Wed, 17 Aug 2011 22:02:18 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/?p=635#comment-23929</guid>
		<description>[...] embargo, y después de leer Racker Hacker, sobre este asunto, me quedé incluso más confundido. En este punto se comenta de una posibilidad [...]</description>
		<content:encoded><![CDATA[<p>[...] embargo, y después de leer Racker Hacker, sobre este asunto, me quedé incluso más confundido. En este punto se comenta de una posibilidad [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seth</title>
		<link>http://rackerhacker.com/2008/12/03/reducing-inode-and-dentry-caches-to-keep-oom-killer-at-bay/#comment-23425</link>
		<dc:creator>Seth</dc:creator>
		<pubDate>Thu, 07 Jul 2011 16:13:19 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/?p=635#comment-23425</guid>
		<description>&gt; That page says &quot;If you are writing data at the time you run these
 commands, you&#039;ll actually be dumping the data out of the filesystem
 cache before it reaches the disk, which could lead to very bad things&quot;.

Is decidedly NOT TRUE. Andrew Morton himself (!!!) took the trouble to comment as much. Would you please fix your statement?

@linux_user: 
Doing a synch first changes nothing, because other processes can (and will) be dirtying page cache in the mean time</description>
		<content:encoded><![CDATA[<p>&gt; That page says "If you are writing data at the time you run these<br />
 commands, you'll actually be dumping the data out of the filesystem<br />
 cache before it reaches the disk, which could lead to very bad things".</p>
<p>Is decidedly NOT TRUE. Andrew Morton himself (!!!) took the trouble to comment as much. Would you please fix your statement?</p>
<p>@linux_user:<br />
Doing a synch first changes nothing, because other processes can (and will) be dirtying page cache in the mean time</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://rackerhacker.com/2008/12/03/reducing-inode-and-dentry-caches-to-keep-oom-killer-at-bay/#comment-16456</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 03 Aug 2010 14:17:09 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/?p=635#comment-16456</guid>
		<description>Thank you for this article. I was banging my head for long time with VMs web servers caching 60%+ of the available memory and becoming slow as a turtle!
I am referencing your article in my resent &quot;research&quot;, setting up &lt;a href=&quot;http://boolcast.com/lamp/linux/7-centos-5-minimalist&quot; rel=&quot;nofollow&quot;&gt;Cent OS 5 Minimalist&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Thank you for this article. I was banging my head for long time with VMs web servers caching 60%+ of the available memory and becoming slow as a turtle!<br />
I am referencing your article in my resent "research", setting up <a href="http://boolcast.com/lamp/linux/7-centos-5-minimalist" rel="nofollow">Cent OS 5 Minimalist</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://rackerhacker.com/2008/12/03/reducing-inode-and-dentry-caches-to-keep-oom-killer-at-bay/#comment-16231</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 11 May 2010 08:01:29 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/?p=635#comment-16231</guid>
		<description>From: Andrew Morton 
That page says &quot;If you are writing data at the time you run these
commands, you&#039;ll actually be dumping the data out of the filesystem
cache before it reaches the disk, which could lead to very bad things&quot;.

That had better not be true! That would be a bad bug. drop_caches
only drops stuff which has been written back.
http://lkml.indiana.edu/hypermail/linux/kernel/1005.1/00693.html</description>
		<content:encoded><![CDATA[<p>From: Andrew Morton<br />
That page says "If you are writing data at the time you run these<br />
commands, you'll actually be dumping the data out of the filesystem<br />
cache before it reaches the disk, which could lead to very bad things".</p>
<p>That had better not be true! That would be a bad bug. drop_caches<br />
only drops stuff which has been written back.<br />
<a href="http://lkml.indiana.edu/hypermail/linux/kernel/1005.1/00693.html" rel="nofollow">http://lkml.indiana.edu/hypermail/linux/kernel/1005.1/00693.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: linux_user</title>
		<link>http://rackerhacker.com/2008/12/03/reducing-inode-and-dentry-caches-to-keep-oom-killer-at-bay/#comment-15630</link>
		<dc:creator>linux_user</dc:creator>
		<pubDate>Mon, 07 Dec 2009 01:42:45 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/?p=635#comment-15630</guid>
		<description>Isn&#039;t it safe to do 

sync; and then,
echo 3 &gt; /proc/sys/vm/drop_caches 

instead of the other way around?</description>
		<content:encoded><![CDATA[<p>Isn't it safe to do </p>
<p>sync; and then,<br />
echo 3 &gt; /proc/sys/vm/drop_caches </p>
<p>instead of the other way around?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oracle DBA Help &#187; Truth about drop_cache &#38; sync and dealing with OOM Killer</title>
		<link>http://rackerhacker.com/2008/12/03/reducing-inode-and-dentry-caches-to-keep-oom-killer-at-bay/#comment-15380</link>
		<dc:creator>Oracle DBA Help &#187; Truth about drop_cache &#38; sync and dealing with OOM Killer</dc:creator>
		<pubDate>Tue, 30 Jun 2009 01:55:34 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/?p=635#comment-15380</guid>
		<description>[...] day, while googling about a memory issue, I ended up on this page. It describes how to force discard some memory resident objects by writing 1, 2 or 3 into [...]</description>
		<content:encoded><![CDATA[<p>[...] day, while googling about a memory issue, I ended up on this page. It describes how to force discard some memory resident objects by writing 1, 2 or 3 into [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Savage</title>
		<link>http://rackerhacker.com/2008/12/03/reducing-inode-and-dentry-caches-to-keep-oom-killer-at-bay/#comment-5418</link>
		<dc:creator>Savage</dc:creator>
		<pubDate>Sat, 06 Dec 2008 07:00:55 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/?p=635#comment-5418</guid>
		<description>This should lead to another great post regarding the way oom works.  As well I normally find nfs_inode_cache another good one to find. It is not to always perform a sync ; drop cache because you think this may be the cause. You can find out if it is due to this by cating /proc/slab or running slabtop. 

Now how do you keep oom_killer at bay with a 2.6.X kernel and not kill your services that is essential to the server if your sure that said service is not the problem you can set oom_adj in /proc//oom_adj this will raise / lower the priory of it&#039;s chance of being killed and you can then slowly build a way to control oom_killer.  After this is done you can then check the score of your application which is in /proc//oom_score this should give you the current score and you can check your applications score at  that time and find which may be killed first. 

Kernel Documentation : 

Documentation/filesystem/proc.txt

&quot;
2.12 /proc//oom_adj - Adjust the oom-killer score
------------------------------------------------------

This file can be used to adjust the score used to select which processes
should be killed in an  out-of-memory  situation.  Giving it a high score will
increase the likelihood of this process being killed by the oom-killer.  Valid
values are in the range -16 to +15, plus the special value -17, which disables
oom-killing altogether for this process.

2.13 /proc//oom_score - Display current oom-killer score
-------------------------------------------------------------

------------------------------------------------------------------------------
This file can be used to check the current score used by the oom-killer is for
any given . Use it together with /proc//oom_adj to tune which
process should be killed in an out-of-memory situation.
&quot;</description>
		<content:encoded><![CDATA[<p>This should lead to another great post regarding the way oom works.  As well I normally find nfs_inode_cache another good one to find. It is not to always perform a sync ; drop cache because you think this may be the cause. You can find out if it is due to this by cating /proc/slab or running slabtop. </p>
<p>Now how do you keep oom_killer at bay with a 2.6.X kernel and not kill your services that is essential to the server if your sure that said service is not the problem you can set oom_adj in /proc//oom_adj this will raise / lower the priory of it's chance of being killed and you can then slowly build a way to control oom_killer.  After this is done you can then check the score of your application which is in /proc//oom_score this should give you the current score and you can check your applications score at  that time and find which may be killed first. </p>
<p>Kernel Documentation : </p>
<p>Documentation/filesystem/proc.txt</p>
<p>"<br />
2.12 /proc//oom_adj - Adjust the oom-killer score<br />
------------------------------------------------------</p>
<p>This file can be used to adjust the score used to select which processes<br />
should be killed in an  out-of-memory  situation.  Giving it a high score will<br />
increase the likelihood of this process being killed by the oom-killer.  Valid<br />
values are in the range -16 to +15, plus the special value -17, which disables<br />
oom-killing altogether for this process.</p>
<p>2.13 /proc//oom_score - Display current oom-killer score<br />
-------------------------------------------------------------</p>
<p>------------------------------------------------------------------------------<br />
This file can be used to check the current score used by the oom-killer is for<br />
any given . Use it together with /proc//oom_adj to tune which<br />
process should be killed in an out-of-memory situation.<br />
"</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: major</title>
		<link>http://rackerhacker.com/2008/12/03/reducing-inode-and-dentry-caches-to-keep-oom-killer-at-bay/#comment-5404</link>
		<dc:creator>major</dc:creator>
		<pubDate>Fri, 05 Dec 2008 23:20:18 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/?p=635#comment-5404</guid>
		<description>I&#039;m glad it was helpful!  I&#039;ve found some other optimizations as well, so I&#039;ll be adding those soon.</description>
		<content:encoded><![CDATA[<p>I'm glad it was helpful!  I've found some other optimizations as well, so I'll be adding those soon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ace</title>
		<link>http://rackerhacker.com/2008/12/03/reducing-inode-and-dentry-caches-to-keep-oom-killer-at-bay/#comment-5403</link>
		<dc:creator>Ace</dc:creator>
		<pubDate>Fri, 05 Dec 2008 23:06:18 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/?p=635#comment-5403</guid>
		<description>Thank you for this post, it was very very helpful.</description>
		<content:encoded><![CDATA[<p>Thank you for this post, it was very very helpful.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

