public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Fitzhardinge <jeremy@goop.org>
To: "Ravinandan Arakali (rarakali)" <rarakali@cisco.com>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: Multiple instances of program sharing same text segment ?
Date: Tue, 20 Mar 2007 11:12:01 -0700	[thread overview]
Message-ID: <460023F1.8060102@goop.org> (raw)
In-Reply-To: <FA6FB5FA4DA6BF4386D129273B2E3EC30183A437@xmb-sjc-214.amer.cisco.com>

Ravinandan Arakali (rarakali) wrote:
> I note that do_exec calls do_mmap to map the executable file to memory.
> But not sure what happens(w.r.t text sharing) when another instance of 
> the program is invoked. BTW, this is 2.6.10.

Yes, they will be shared.  As far as the rest of the kernel is
concerned, an mmap is an mmap is an mmap, and the pages will be shared.

    J

  reply	other threads:[~2007-03-20 18:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-20 17:47 Multiple instances of program sharing same text segment ? Ravinandan Arakali (rarakali)
2007-03-20 18:12 ` Jeremy Fitzhardinge [this message]
2007-03-20 18:22   ` Ravinandan Arakali (rarakali)
2007-03-20 19:40   ` Jeffrey Hundstad

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=460023F1.8060102@goop.org \
    --to=jeremy@goop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rarakali@cisco.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox