Subject: Re: mapping shared memory at a fixed address
To: Todd Vierling <tv@duh.org>
From: Rahul Kulkarni <crypto_rahul@yahoo.com>
List: tech-kern
Date: 02/08/2005 14:28:47
On a potentially large system with a huge code base,
this cannot work, due to a lot of duplication in the
text and if if you fork a lot of children then the
text  sizes will be a concern.. 
--- Todd Vierling <tv@duh.org> wrote:

> On Tue, 8 Feb 2005, Rahul Kulkarni wrote:
> 
> > What are the other options here for me?
> 
> If you're forking, the easiest option is not to
> exec() -- make your child
> code part of the same executable.  If you mmap a
> region with MAP_SHARED
> (maybe you will no longer need MAP_FIXED?) and then
> fork() *without* exec(),
> the mapping will be shared among the children
> automatically, and at the same
> virtual address.
> 
> -- 
> -- Todd Vierling <tv@duh.org> <tv@pobox.com>
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com