Subject: Re: mapping shared memory at a fixed address
To: Todd Vierling <email@example.com>
From: Rahul Kulkarni <firstname.lastname@example.org>
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 <email@example.com> 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 <firstname.lastname@example.org> <email@example.com>
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around