Mauricio Lin wrote:
Hi all,
Does anyone know if the copy-on-write usually happens
on application startup (where processes are created),
or any moment during the application run time?
BR,
Mauricio Lin.
its unlikely to happen as a direct result of an app startup,
as thats done by exec, which tosses the address-space it got from the fork.
IIUC, only fork sets up the new process with COW-able pages, which may
or may not be copied-on-write, dependent upon whether a write happens to
a given page.
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/