<?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: Fractal Memory Usage and a Big Number</title>
	<atom:link href="http://www.algorithm.co.il/blogs/programming/python/fractal-memory-usage-and-a-big-number/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.algorithm.co.il/blogs/computer-science/fractal-memory-usage-and-a-big-number/</link>
	<description>Algorithms, for the heck of it</description>
	<lastBuildDate>Tue, 21 Jun 2011 21:07:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: Aldrin Martoq</title>
		<link>http://www.algorithm.co.il/blogs/computer-science/fractal-memory-usage-and-a-big-number/#comment-131</link>
		<dc:creator>Aldrin Martoq</dc:creator>
		<pubDate>Tue, 16 Dec 2008 03:16:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.algorithm.co.il/blogs/?p=110#comment-131</guid>
		<description>Interesting post**post.

About Ubuntu memory consumption: In Windows if a process ask for 2GB of RAM it is allocated immediatly (&quot;sure, there you are&quot; windows says) or refused (&quot;sorry, i don&#039;t have enough memory right now&quot;), but Linux instead always lies (&quot;haha, ok&quot; replies) and never allocates the amount of memory a process asks.

The rationale behind this is that 99% of programs are badly written (which is sadly true), so they never actually USE the amount of memory they ask. So, as a program start to use the memory they asked, it becames allocated in the O.S, as the straight line you discovered.

This is good most of the time, because unused memory becomes better used memory (disk cache for ex). The bad side is what happens if a program actually USE the 2GB they asked and memory is insufficient right now: well, Linux really will be an evil guy and will kill some &quot;random&quot; process.

You can read a funny analogy in this LWN article:
http://lwn.net/Articles/104179/</description>
		<content:encoded><![CDATA[<p>Interesting post**post.</p>
<p>About Ubuntu memory consumption: In Windows if a process ask for 2GB of RAM it is allocated immediatly (&#8220;sure, there you are&#8221; windows says) or refused (&#8220;sorry, i don&#8217;t have enough memory right now&#8221;), but Linux instead always lies (&#8220;haha, ok&#8221; replies) and never allocates the amount of memory a process asks.</p>
<p>The rationale behind this is that 99% of programs are badly written (which is sadly true), so they never actually USE the amount of memory they ask. So, as a program start to use the memory they asked, it becames allocated in the O.S, as the straight line you discovered.</p>
<p>This is good most of the time, because unused memory becomes better used memory (disk cache for ex). The bad side is what happens if a program actually USE the 2GB they asked and memory is insufficient right now: well, Linux really will be an evil guy and will kill some &#8220;random&#8221; process.</p>
<p>You can read a funny analogy in this LWN article:<br />
<a href="http://lwn.net/Articles/104179/" rel="nofollow">http://lwn.net/Articles/104179/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

