All of lore.kernel.org
 help / color / mirror / Atom feed
* Copy-on-Write
@ 2008-02-06  5:49 Rick Brown
  2008-02-06 11:00 ` Copy-on-Write Manish Katiyar
  2008-02-07 15:30 ` Copy-on-Write Mulyadi Santosa
  0 siblings, 2 replies; 12+ messages in thread
From: Rick Brown @ 2008-02-06  5:49 UTC (permalink / raw)
  To: kernelnewbies, linux-newbie

Hi,

I had read that the operating systems that use copy-on-write mechanism
for fork(), it is better if they deliberately allow the CHILD to run
first.

This would be better because in 99% of the cases child will call
exec() and the new address space will be allocated. Instead if the
parent is executes first, an unnecessary copy of the pages is made (if
parents writes) and later on when child executes, a fresh address
space is executed.

So in linux, is a child run first or the parent? Can we rely on this
information?

TIA

Rick
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Copy-on-write
@ 2009-03-27  5:15 sidc7
  2009-03-27  5:35 ` Copy-on-write Bryan Donlan
  0 siblings, 1 reply; 12+ messages in thread
From: sidc7 @ 2009-03-27  5:15 UTC (permalink / raw)
  To: linux-kernel


When the kernel does a COW, say from a "src" to a "dest" page, does it need
to map the "src" and "dest" page to its address space or the kernel can
directly initiate the read from "src" and write to "dest" page ?

Thanks,
SC
-- 
View this message in context: http://www.nabble.com/Copy-on-write-tp22736146p22736146.html
Sent from the linux-kernel mailing list archive at Nabble.com.


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2009-03-27  6:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-06  5:49 Copy-on-Write Rick Brown
2008-02-06 11:00 ` Copy-on-Write Manish Katiyar
2008-02-06 12:33   ` Copy-on-Write Rajat Jain
2008-02-06 12:41     ` Copy-on-Write Manish Katiyar
2008-02-06 13:17     ` Copy-on-Write Daniel Cheng
2008-02-07 15:30 ` Copy-on-Write Mulyadi Santosa
2008-02-07 23:46   ` Copy-on-Write Brandon Philips
2008-02-08  2:11     ` Copy-on-Write Renê
     [not found]     ` <5f9618380802071809v24f2be47xc9aea8664a8f8488@mail.gmail.com>
2008-02-13  5:44       ` Copy-on-Write Brandon Philips
  -- strict thread matches above, loose matches on Subject: below --
2009-03-27  5:15 Copy-on-write sidc7
2009-03-27  5:35 ` Copy-on-write Bryan Donlan
2009-03-27  6:43   ` Copy-on-write sidc7

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.