<?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: JOS Virtual Memory (part 2)</title>
	<atom:link href="http://blog.cpu.eti.br/2008/05/05/jos-virtual-memory-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.cpu.eti.br/2008/05/05/jos-virtual-memory-part-2/</link>
	<description></description>
	<lastBuildDate>Tue, 06 Jul 2010 12:43:16 -0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Nencia</title>
		<link>http://blog.cpu.eti.br/2008/05/05/jos-virtual-memory-part-2/comment-page-1/#comment-56474</link>
		<dc:creator>Nencia</dc:creator>
		<pubDate>Fri, 06 Feb 2009 13:03:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cpu.eti.br/?p=99#comment-56474</guid>
		<description></description>
		<content:encoded><![CDATA[<p>Nice work! I’ll have to do a cross post on this one ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luiz Capitulino</title>
		<link>http://blog.cpu.eti.br/2008/05/05/jos-virtual-memory-part-2/comment-page-1/#comment-49537</link>
		<dc:creator>Luiz Capitulino</dc:creator>
		<pubDate>Mon, 08 Sep 2008 14:33:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cpu.eti.br/?p=99#comment-49537</guid>
		<description>Yes, you are right. The text pages are not copied, they will be shared among descendants.

This is, of course, a general rule. I mean, today&#039;s operating systems have so many features that sometimes they may not follow such a rule strictly.

I think what confused you was this sentence: &quot;the kernel marks all the parentâ€™s pages as read-only and inserts them into child address space&quot;. Speaking about JOS, the pages which are marked read-only are the the ones which have write permission enabled. The others (eg. text) are already read-only, so they are directly inserted into the child&#039;s address space.

I&#039;m replying you here (instead of sending an email) because your question may be relevant to others.

I&#039;m glad to know that this post has been useful to someone. :)</description>
		<content:encoded><![CDATA[<p>Yes, you are right. The text pages are not copied, they will be shared among descendants.</p>
<p>This is, of course, a general rule. I mean, today&#8217;s operating systems have so many features that sometimes they may not follow such a rule strictly.</p>
<p>I think what confused you was this sentence: &#8220;the kernel marks all the parentâ€™s pages as read-only and inserts them into child address space&#8221;. Speaking about JOS, the pages which are marked read-only are the the ones which have write permission enabled. The others (eg. text) are already read-only, so they are directly inserted into the child&#8217;s address space.</p>
<p>I&#8217;m replying you here (instead of sending an email) because your question may be relevant to others.</p>
<p>I&#8217;m glad to know that this post has been useful to someone. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vivek</title>
		<link>http://blog.cpu.eti.br/2008/05/05/jos-virtual-memory-part-2/comment-page-1/#comment-49460</link>
		<dc:creator>vivek</dc:creator>
		<pubDate>Sun, 07 Sep 2008 06:05:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cpu.eti.br/?p=99#comment-49460</guid>
		<description>thanks luiz,

it was pretty informative. i was struggling to find this bit of information on internet. 
 there are lots of references of this on the web, but none of them mention about the mmu and pagefaults. and the generally mess up the COW and read only markers!

i have one more doubt.

does the fork mark (cow and read only) pages which are non read-only  (like data segment,stack)  at the begining? 

because if the child is going to be the exact copy of the parent for its lifetime, there is no point in copying the parent&#039;s text segment.

thank you
please mail me</description>
		<content:encoded><![CDATA[<p>thanks luiz,</p>
<p>it was pretty informative. i was struggling to find this bit of information on internet.<br />
 there are lots of references of this on the web, but none of them mention about the mmu and pagefaults. and the generally mess up the COW and read only markers!</p>
<p>i have one more doubt.</p>
<p>does the fork mark (cow and read only) pages which are non read-only  (like data segment,stack)  at the begining? </p>
<p>because if the child is going to be the exact copy of the parent for its lifetime, there is no point in copying the parent&#8217;s text segment.</p>
<p>thank you<br />
please mail me</p>
]]></content:encoded>
	</item>
</channel>
</rss>

