On Fri Oct 13, 2000 at 09:09:09AM -0700, Pawan Singh wrote:
>
> What we are finding is that the code segment of a process is not shared. All
> the pages are marked private. For example if I run a process "abc" and start
> another copy of it, one would expect the read only code segment to be shared
> in physical RAM.
They are in fact shared between apps, but they are also kept private since the
kernel is doing mmu tricks behind the scenes. Linux does copy-on-write (COW)
so things stay shared unless the apps start scribbling across the private
pages, at which point the kernel makes private copies for each app. The only
time when this is not true on linux is when you use uCLinux instead of the
normal linux kernel (uCLinux is for systems lacking an mmu). There, Linux
cannot do COW, so apps share nothing,
-Erik
--
Erik B. Andersen email: [EMAIL PROTECTED]
--This message was written using 73% post-consumer electrons--
--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.