<?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: OOM killer feature in OS X</title>
	<atom:link href="http://blogs.gnome.org/rbultje/2007/04/10/oom-killer-feature-in-os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.gnome.org/rbultje/2007/04/10/oom-killer-feature-in-os-x/</link>
	<description>Random thoughts</description>
	<lastBuildDate>Wed, 04 May 2011 03:13:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jerome Haltom</title>
		<link>http://blogs.gnome.org/rbultje/2007/04/10/oom-killer-feature-in-os-x/comment-page-1/#comment-137</link>
		<dc:creator>Jerome Haltom</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/rbultje/2007/04/10/oom-killer-feature-in-os-x/#comment-137</guid>
		<description>I don&#039;t think try_malloc is really the best answer... the program could fail on try_malloc... but then how would it let the user known? It has no memory left to open a dialog.&lt;p/&gt;A better option would be for gnome-session, or some similarish program, to keep a global watch on memory and swap. When an application gets to a point that it is doing nothing but swapping, gnome-session could notice, nice it to maximum possible, or send SIGSTOP. That would freeze the program until gnome-session&#039;s UI could handle it. Yes, it would swap, but there would still be swap available for gnome-session&#039;s UI to work. That UI could identify the running application and ask you what you want to do.&lt;p/&gt;</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think try_malloc is really the best answer&#8230; the program could fail on try_malloc&#8230; but then how would it let the user known? It has no memory left to open a dialog.
<p />A better option would be for gnome-session, or some similarish program, to keep a global watch on memory and swap. When an application gets to a point that it is doing nothing but swapping, gnome-session could notice, nice it to maximum possible, or send SIGSTOP. That would freeze the program until gnome-session&#8217;s UI could handle it. Yes, it would swap, but there would still be swap available for gnome-session&#8217;s UI to work. That UI could identify the running application and ask you what you want to do.
<p />
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Pryor</title>
		<link>http://blogs.gnome.org/rbultje/2007/04/10/oom-killer-feature-in-os-x/comment-page-1/#comment-138</link>
		<dc:creator>Jonathan Pryor</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/rbultje/2007/04/10/oom-killer-feature-in-os-x/#comment-138</guid>
		<description>The problem isn&#039;t the use (or lack thereof) of g_try_malloc().  The problem is Linux, which won&#039;t return an error from sbrk(2) and related APIs until all of physical RAM + swap has been completely exhausted (by default).&lt;p/&gt;So even if you used g_try_malloc(), you&#039;d see the identical behavior as your entire system slid into swap and became nigh unusable.&lt;p/&gt;In theory, setting /proc/sys/vm/swappiness should control Linux&#039;s ability to use swap (i.e. you could force everything to be in RAM), in which case g_try_malloc() should return NULL, but I haven&#039;t heard of anyone actually trying this.</description>
		<content:encoded><![CDATA[<p>The problem isn&#8217;t the use (or lack thereof) of g_try_malloc().  The problem is Linux, which won&#8217;t return an error from sbrk(2) and related APIs until all of physical RAM + swap has been completely exhausted (by default).
<p />So even if you used g_try_malloc(), you&#8217;d see the identical behavior as your entire system slid into swap and became nigh unusable.
<p />In theory, setting /proc/sys/vm/swappiness should control Linux&#8217;s ability to use swap (i.e. you could force everything to be in RAM), in which case g_try_malloc() should return NULL, but I haven&#8217;t heard of anyone actually trying this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oomu</title>
		<link>http://blogs.gnome.org/rbultje/2007/04/10/oom-killer-feature-in-os-x/comment-page-1/#comment-139</link>
		<dc:creator>oomu</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/rbultje/2007/04/10/oom-killer-feature-in-os-x/#comment-139</guid>
		<description>when os X notices than an application crashes three time in a short notice it will ask the user if it has to remove the user preferences for the application and start with default settings.&lt;p/&gt;it can be very useful when a shiny new version of an application does not like the old settings.</description>
		<content:encoded><![CDATA[<p>when os X notices than an application crashes three time in a short notice it will ask the user if it has to remove the user preferences for the application and start with default settings.
<p />it can be very useful when a shiny new version of an application does not like the old settings.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gilles Dartiguelongue</title>
		<link>http://blogs.gnome.org/rbultje/2007/04/10/oom-killer-feature-in-os-x/comment-page-1/#comment-140</link>
		<dc:creator>Gilles Dartiguelongue</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/rbultje/2007/04/10/oom-killer-feature-in-os-x/#comment-140</guid>
		<description>Although it would be nice to have a GUI for this, note that you can manually trigger OOM in linux (alt gr + syst + f).</description>
		<content:encoded><![CDATA[<p>Although it would be nice to have a GUI for this, note that you can manually trigger OOM in linux (alt gr + syst + f).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frederik</title>
		<link>http://blogs.gnome.org/rbultje/2007/04/10/oom-killer-feature-in-os-x/comment-page-1/#comment-141</link>
		<dc:creator>Frederik</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/rbultje/2007/04/10/oom-killer-feature-in-os-x/#comment-141</guid>
		<description>I agree completely with this post. The behaviour of OOM situations in Linux, is what annoys me the most in Linux. I cannot even remember seeing Windows become so unstable so you have to do a hard reset, because a (buggy) application started eating up all your memory. Yet in Linux, this happens to me now and then, and it really pisses me of. Kernel hackers, are you reading this? Please fix this stupid behaviour. Actually, I even prefer applications to be killed instead of trashing my system for half an hour, after which I still have to do a reboot, because nothing responds anymore :-(</description>
		<content:encoded><![CDATA[<p>I agree completely with this post. The behaviour of OOM situations in Linux, is what annoys me the most in Linux. I cannot even remember seeing Windows become so unstable so you have to do a hard reset, because a (buggy) application started eating up all your memory. Yet in Linux, this happens to me now and then, and it really pisses me of. Kernel hackers, are you reading this? Please fix this stupid behaviour. Actually, I even prefer applications to be killed instead of trashing my system for half an hour, after which I still have to do a reboot, because nothing responds anymore <img src='http://blogs.gnome.org/rbultje/wp-content/mu-plugins/tango-smilies/tango/face-sad.png' alt=':-(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mathias Hasselmann</title>
		<link>http://blogs.gnome.org/rbultje/2007/04/10/oom-killer-feature-in-os-x/comment-page-1/#comment-142</link>
		<dc:creator>Mathias Hasselmann</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/rbultje/2007/04/10/oom-killer-feature-in-os-x/#comment-142</guid>
		<description>For IceWM on embbeded devices I once created a kernel patch asking IceWM which application to kill in OOM situation. So that hook is possible. Unfortunatly the kernel hackers did not pick it up.</description>
		<content:encoded><![CDATA[<p>For IceWM on embbeded devices I once created a kernel patch asking IceWM which application to kill in OOM situation. So that hook is possible. Unfortunatly the kernel hackers did not pick it up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iain</title>
		<link>http://blogs.gnome.org/rbultje/2007/04/10/oom-killer-feature-in-os-x/comment-page-1/#comment-143</link>
		<dc:creator>iain</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/rbultje/2007/04/10/oom-killer-feature-in-os-x/#comment-143</guid>
		<description>I imagine we&#039;re seeing two different things at work here&lt;p/&gt;1) The application requiring a large amount of memory and doing something similar to g_try_malloc and handling this failing gracefully. This is up to the application authors, but I bet they only check it when they&#039;re allocating large amounts of memory like you required for your operation, and it wouldn&#039;t have been so graceful if it was a few K of memory that it couldn&#039;t obtain. (*)&lt;p/&gt;2) The OS having Low memory handling as well as out of memory handling. Low memory situations would be triggered before being completely out of memory and an application starting to deal with it. I imagine if you&#039;d continued you&#039;d have hit the OOM handler and things would have been killed.&lt;p/&gt;FWIW the N770/800 handles low memory and software can listen for the D-Bus signal and act accordingly by disabling some features that would be memory intensive. So it is possible on linux, I guess we just need some sort of desktop integration.&lt;p/&gt;(*) Actually, I&#039;ve just put it in my Marlin TODO, to use g_try_malloc to allocate the temporary buffers that it uses for things as these can be up to 2 meg each.</description>
		<content:encoded><![CDATA[<p>I imagine we&#8217;re seeing two different things at work here
<p />1) The application requiring a large amount of memory and doing something similar to g_try_malloc and handling this failing gracefully. This is up to the application authors, but I bet they only check it when they&#8217;re allocating large amounts of memory like you required for your operation, and it wouldn&#8217;t have been so graceful if it was a few K of memory that it couldn&#8217;t obtain. (*)
<p />2) The OS having Low memory handling as well as out of memory handling. Low memory situations would be triggered before being completely out of memory and an application starting to deal with it. I imagine if you&#8217;d continued you&#8217;d have hit the OOM handler and things would have been killed.
<p />FWIW the N770/800 handles low memory and software can listen for the D-Bus signal and act accordingly by disabling some features that would be memory intensive. So it is possible on linux, I guess we just need some sort of desktop integration.
<p />(*) Actually, I&#8217;ve just put it in my Marlin TODO, to use g_try_malloc to allocate the temporary buffers that it uses for things as these can be up to 2 meg each.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Nickel</title>
		<link>http://blogs.gnome.org/rbultje/2007/04/10/oom-killer-feature-in-os-x/comment-page-1/#comment-144</link>
		<dc:creator>Brian Nickel</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/rbultje/2007/04/10/oom-killer-feature-in-os-x/#comment-144</guid>
		<description>Would HAL even be necessary? I think libgtop should be able to do everything you want (as gnome-system-monitor has everything which would be needed).&lt;p/&gt;All it would take is a program (with a dialog already loaded so when memory is low it doesn&#039;t get screwed out of space and cause the freeze), which monitors the memory use and the change in memory use and estimates the time until total consumption. When a certain small amount of memory is left, the application pauses processes that have been consuming memory or have very large memory consumption, blacklisting or whitelisting to prevent locking Xorg or something. (In gsm this is &quot;Stop process&quot;.) The dialog pops up telling you that you&#039;re low on memory, these programs a suspect, and that you could kill them or pray the terminate nicely. Do what the user requests, and then resume the processes.&lt;p/&gt;It doesn&#039;t seem like it would be too terribly challenging but I would love to see this daemon.</description>
		<content:encoded><![CDATA[<p>Would HAL even be necessary? I think libgtop should be able to do everything you want (as gnome-system-monitor has everything which would be needed).
<p />All it would take is a program (with a dialog already loaded so when memory is low it doesn&#8217;t get screwed out of space and cause the freeze), which monitors the memory use and the change in memory use and estimates the time until total consumption. When a certain small amount of memory is left, the application pauses processes that have been consuming memory or have very large memory consumption, blacklisting or whitelisting to prevent locking Xorg or something. (In gsm this is &#8220;Stop process&#8221;.) The dialog pops up telling you that you&#8217;re low on memory, these programs a suspect, and that you could kill them or pray the terminate nicely. Do what the user requests, and then resume the processes.
<p />It doesn&#8217;t seem like it would be too terribly challenging but I would love to see this daemon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ronald S. Bultje</title>
		<link>http://blogs.gnome.org/rbultje/2007/04/10/oom-killer-feature-in-os-x/comment-page-1/#comment-145</link>
		<dc:creator>Ronald S. Bultje</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/rbultje/2007/04/10/oom-killer-feature-in-os-x/#comment-145</guid>
		<description>Iain, I actually remember seeing this behaviour on the Nokia770 as well, I was impressed by that. That should definitely be brought back upstream, it is too useful to ignore.</description>
		<content:encoded><![CDATA[<p>Iain, I actually remember seeing this behaviour on the Nokia770 as well, I was impressed by that. That should definitely be brought back upstream, it is too useful to ignore.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://blogs.gnome.org/rbultje/2007/04/10/oom-killer-feature-in-os-x/comment-page-1/#comment-146</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/rbultje/2007/04/10/oom-killer-feature-in-os-x/#comment-146</guid>
		<description>And for the record, gnome does already alert you about low disk space.</description>
		<content:encoded><![CDATA[<p>And for the record, gnome does already alert you about low disk space.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- This Quick Cache file was built for (  blogs.gnome.org/rbultje/2007/04/10/oom-killer-feature-in-os-x/feed/ ) in 0.17527 seconds, on Feb 12th, 2012 at 4:32 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 12th, 2012 at 5:32 am UTC -->
