<?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: Eternal Vigilance!</title>
	<atom:link href="http://blogs.gnome.org/alexl/2009/02/17/eternal-vigilance/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.gnome.org/alexl/2009/02/17/eternal-vigilance/</link>
	<description>Cool links and commentary</description>
	<lastBuildDate>Wed, 21 Oct 2009 16:29:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: antistress</title>
		<link>http://blogs.gnome.org/alexl/2009/02/17/eternal-vigilance/comment-page-1/#comment-530</link>
		<dc:creator>antistress</dc:creator>
		<pubDate>Fri, 27 Feb 2009 09:23:52 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/alexl/?p=85#comment-530</guid>
		<description>i&#039;m using the Ubuntu Netbook Remix (UNR) launcher which means that i don&#039;t use the desktop to display icons nor volumes etc.
I only display the panel, the wall paper and the UNR launcher

Is there a setting to configure to decrease memory use in that specific case ?</description>
		<content:encoded><![CDATA[<p>i&#8217;m using the Ubuntu Netbook Remix (UNR) launcher which means that i don&#8217;t use the desktop to display icons nor volumes etc.<br />
I only display the panel, the wall paper and the UNR launcher</p>
<p>Is there a setting to configure to decrease memory use in that specific case ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ka-Hing Cheung</title>
		<link>http://blogs.gnome.org/alexl/2009/02/17/eternal-vigilance/comment-page-1/#comment-528</link>
		<dc:creator>Ka-Hing Cheung</dc:creator>
		<pubDate>Fri, 20 Feb 2009 04:37:05 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/alexl/?p=85#comment-528</guid>
		<description>Well, even if I only use gedit to edit large files, it won&#039;t be noticeable if those allocations are done with mmap. That was the argument I was trying to make.</description>
		<content:encoded><![CDATA[<p>Well, even if I only use gedit to edit large files, it won&#8217;t be noticeable if those allocations are done with mmap. That was the argument I was trying to make.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alexl</title>
		<link>http://blogs.gnome.org/alexl/2009/02/17/eternal-vigilance/comment-page-1/#comment-527</link>
		<dc:creator>alexl</dc:creator>
		<pubDate>Thu, 19 Feb 2009 14:35:41 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/alexl/?p=85#comment-527</guid>
		<description>Well, i guess there is a risk of heap fragmentation in gedit if its using the heap for large files.... So perhaps gedit is a good target for something like this. Would need some testing though.</description>
		<content:encoded><![CDATA[<p>Well, i guess there is a risk of heap fragmentation in gedit if its using the heap for large files&#8230;. So perhaps gedit is a good target for something like this. Would need some testing though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alexl</title>
		<link>http://blogs.gnome.org/alexl/2009/02/17/eternal-vigilance/comment-page-1/#comment-526</link>
		<dc:creator>alexl</dc:creator>
		<pubDate>Thu, 19 Feb 2009 14:33:04 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/alexl/?p=85#comment-526</guid>
		<description>Ka-Hing: 

When the 1mb file is freed that would bump the mmap threshold. However, i don&#039;t think this is a bad idea. It generally means you&#039;re editing large files in your editor, and thus its not a bad idea to allocate these on the heap. After all, gedit is not a long-running background thing like nautilus, and while its in use its not a large problem if it uses the memory it requires.

I guess if you load one large file, close it and then keep gedit around for a long time while only loading small files there would be some memory not returned to the os. (Although it would just be swapped out, so its not a huge issue.) But i&#039;m not sure this is the normal case when using gedit.</description>
		<content:encoded><![CDATA[<p>Ka-Hing: </p>
<p>When the 1mb file is freed that would bump the mmap threshold. However, i don&#8217;t think this is a bad idea. It generally means you&#8217;re editing large files in your editor, and thus its not a bad idea to allocate these on the heap. After all, gedit is not a long-running background thing like nautilus, and while its in use its not a large problem if it uses the memory it requires.</p>
<p>I guess if you load one large file, close it and then keep gedit around for a long time while only loading small files there would be some memory not returned to the os. (Although it would just be swapped out, so its not a huge issue.) But i&#8217;m not sure this is the normal case when using gedit.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ka-Hing Cheung</title>
		<link>http://blogs.gnome.org/alexl/2009/02/17/eternal-vigilance/comment-page-1/#comment-525</link>
		<dc:creator>Ka-Hing Cheung</dc:creator>
		<pubDate>Thu, 19 Feb 2009 03:43:47 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/alexl/?p=85#comment-525</guid>
		<description>alexl: Yes I understand why that change was made. My comment was pointing out that many desktop applications are not performance sensitive (and even fewer have big allocations in the hot path), so making such a change _may_ save memory while not negatively affecting users in a noticeable way.

Applications that can take user inputed file sound like they would benefit, for example if I open a 1MB file with gedit it would bump the mmap threshold to at least 1MB (to hold the content). While it&#039;s true that the user can always restart them it&#039;s less than ideal.</description>
		<content:encoded><![CDATA[<p>alexl: Yes I understand why that change was made. My comment was pointing out that many desktop applications are not performance sensitive (and even fewer have big allocations in the hot path), so making such a change _may_ save memory while not negatively affecting users in a noticeable way.</p>
<p>Applications that can take user inputed file sound like they would benefit, for example if I open a 1MB file with gedit it would bump the mmap threshold to at least 1MB (to hold the content). While it&#8217;s true that the user can always restart them it&#8217;s less than ideal.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marius Gedminas</title>
		<link>http://blogs.gnome.org/alexl/2009/02/17/eternal-vigilance/comment-page-1/#comment-524</link>
		<dc:creator>Marius Gedminas</dc:creator>
		<pubDate>Wed, 18 Feb 2009 20:35:44 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/alexl/?p=85#comment-524</guid>
		<description>On my system gnome-panel needs more memory than nautilus, which seems strangely reversed.  And this doesn&#039;t include the memory of various applets, of which multiload-applet alone accounts for 30 megs of RSS.</description>
		<content:encoded><![CDATA[<p>On my system gnome-panel needs more memory than nautilus, which seems strangely reversed.  And this doesn&#8217;t include the memory of various applets, of which multiload-applet alone accounts for 30 megs of RSS.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mati</title>
		<link>http://blogs.gnome.org/alexl/2009/02/17/eternal-vigilance/comment-page-1/#comment-523</link>
		<dc:creator>mati</dc:creator>
		<pubDate>Wed, 18 Feb 2009 15:04:22 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/alexl/?p=85#comment-523</guid>
		<description>Awesome work!

&gt; I noticed the other day that it seemed to be using a lot of memory again
It would be better if Gnome tracked its&#039; memory usage (and startup time) on a daily basis (AFAIR Mozilla does it). That way, regressions could be tracked and fixed right after they happen.</description>
		<content:encoded><![CDATA[<p>Awesome work!</p>
<p>&gt; I noticed the other day that it seemed to be using a lot of memory again<br />
It would be better if Gnome tracked its&#8217; memory usage (and startup time) on a daily basis (AFAIR Mozilla does it). That way, regressions could be tracked and fixed right after they happen.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alexl</title>
		<link>http://blogs.gnome.org/alexl/2009/02/17/eternal-vigilance/comment-page-1/#comment-522</link>
		<dc:creator>alexl</dc:creator>
		<pubDate>Wed, 18 Feb 2009 13:00:30 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/alexl/?p=85#comment-522</guid>
		<description>Milan: 

The mmap treshold I set should be ok for nautilus as a whole. No need to keep the dynamic threshold for that. 

I don&#039;t know exactly what you mean by using another allocator for the background pics. The allocations happen in the standard pixbuf loader code, there is no way to make that use a special allocator. And using a special allocator for all pixbufs is not a good idea, as what is good for this specific case may not be good for others.</description>
		<content:encoded><![CDATA[<p>Milan: </p>
<p>The mmap treshold I set should be ok for nautilus as a whole. No need to keep the dynamic threshold for that. </p>
<p>I don&#8217;t know exactly what you mean by using another allocator for the background pics. The allocations happen in the standard pixbuf loader code, there is no way to make that use a special allocator. And using a special allocator for all pixbufs is not a good idea, as what is good for this specific case may not be good for others.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Milan</title>
		<link>http://blogs.gnome.org/alexl/2009/02/17/eternal-vigilance/comment-page-1/#comment-521</link>
		<dc:creator>Milan</dc:creator>
		<pubDate>Wed, 18 Feb 2009 11:12:59 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/alexl/?p=85#comment-521</guid>
		<description>Quite interesting, thanks!

Wouldn&#039;t this issue be worth a specific allocation method that you would use for backgrounds? I mean: keep the glibc optimized behavior for everything but background pics. Maybe you could gain more memory, and it could possibly be used by other apps.

Just my two cents...</description>
		<content:encoded><![CDATA[<p>Quite interesting, thanks!</p>
<p>Wouldn&#8217;t this issue be worth a specific allocation method that you would use for backgrounds? I mean: keep the glibc optimized behavior for everything but background pics. Maybe you could gain more memory, and it could possibly be used by other apps.</p>
<p>Just my two cents&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alexl</title>
		<link>http://blogs.gnome.org/alexl/2009/02/17/eternal-vigilance/comment-page-1/#comment-520</link>
		<dc:creator>alexl</dc:creator>
		<pubDate>Wed, 18 Feb 2009 08:41:54 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/alexl/?p=85#comment-520</guid>
		<description>ka-hing:

I&#039;m not sure i follow. The glibc behaviour was changed so that apps would get better performance, as the costs of mmap is higher that what it used to be for various reasons (see the code). I don&#039;t think desktop applications in general would perform better with this change, rather the reverse (i.e. perform worse).

The behavour in the nautilus case in kinda special for two reasons:
1) It has a single very short time where it uses much memory but then doesn&#039;t
2) Its a long lived background process where its important that we&#039;re not wasting memory when not in use

There might be other applications which happen to trigger similar bad behaviour from the dynamic threshold decision algorithm, in particular gnome-settings-daemon might be interesting to look at. However, we certainly don&#039;t want to always do this without analysis.</description>
		<content:encoded><![CDATA[<p>ka-hing:</p>
<p>I&#8217;m not sure i follow. The glibc behaviour was changed so that apps would get better performance, as the costs of mmap is higher that what it used to be for various reasons (see the code). I don&#8217;t think desktop applications in general would perform better with this change, rather the reverse (i.e. perform worse).</p>
<p>The behavour in the nautilus case in kinda special for two reasons:<br />
1) It has a single very short time where it uses much memory but then doesn&#8217;t<br />
2) Its a long lived background process where its important that we&#8217;re not wasting memory when not in use</p>
<p>There might be other applications which happen to trigger similar bad behaviour from the dynamic threshold decision algorithm, in particular gnome-settings-daemon might be interesting to look at. However, we certainly don&#8217;t want to always do this without analysis.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
