Re: Are there shared copy-on-write pages?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 10 Jun 2005, Jim Cromie wrote:

> That page is also cow-able, so if that process were to fork/clone, the 
> page would be shared between child and grand-child.  It seems that 
> parent or child isnt even material to the COW.

It is also possible for a COW page to be shared between
multiple sibling processes.  If you look at something
like a forking MTA (sendmail, exim, ...) or a web server
like apache, you will see one parent process that forks
many child processes.

It is quite possible that there are some pages which the
child processes never write to and share COW, while the
parent process has written to it and already has its own
private copy...

-- 
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux