public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* COW optimization on exec
@ 2009-03-15  2:57 sidc7
  2009-03-15  3:41 ` Johannes Weiner
  2009-03-15  3:58 ` Nick Piggin
  0 siblings, 2 replies; 5+ messages in thread
From: sidc7 @ 2009-03-15  2:57 UTC (permalink / raw)
  To: linux-kernel


The Linux kernel uses the COW optimization for fork, so the processes share
the same pages, till on of the processes writes to the page. I was
wondering, if I do a fork and do an exec immediately following the fork,
will the COW optimization still be applied as it is most likely that the new
process is going to write to the shared pages? So doing a COW will not give
much benefit here, if it is done at all. Can anyone clarify if COW will be
applied in such a case, for e.g. a command shell.
-- 
View this message in context: http://www.nabble.com/COW-optimization-on-exec-tp22519639p22519639.html
Sent from the linux-kernel mailing list archive at Nabble.com.


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

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

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-15  2:57 COW optimization on exec sidc7
2009-03-15  3:41 ` Johannes Weiner
2009-03-15  4:20   ` sidc7
2009-03-15  3:58 ` Nick Piggin
2009-03-15  6:20   ` sidc7

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox