public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Execute in place
@ 2007-05-02 23:11 Al Boldi
  2007-05-03  7:31 ` Dmitry Krivoschekov
  0 siblings, 1 reply; 21+ messages in thread
From: Al Boldi @ 2007-05-02 23:11 UTC (permalink / raw)
  To: linux-kernel

Hugh Dickins wrote:
> On Wed, 2 May 2007, Phillip Susi wrote:
> > Hugh Dickins wrote:
> > > tmpfs doesn't store its stuff in the page cache twice: that's true,
> > > and I didn't mean to imply otherwise.  But tmpfs doesn't contain any
> > > support for rom memory: you'd have to copy from rom to tmpfs to use
> > > it.
> >
> > The question is, when you execute a binary on tmpfs, does its code
> > segment get mapped directly where it's at in the buffer cache, or does
> > it get copied to another page for the executing process?  At least,
> > assuming this is possible due to the vma and file offsets of the segment
> > being aligned.
>
> Its pages are mapped directly into the executing process, without copying.

Thank GOD!  Boy, was I worried there for a second.

Now, if there were only an easy way to make tmpfs persistent?


Thanks!

--
Al


^ permalink raw reply	[flat|nested] 21+ messages in thread
* Execute in place
@ 2007-05-01 21:55 Phillip Susi
  2007-05-02 14:04 ` Hugh Dickins
  0 siblings, 1 reply; 21+ messages in thread
From: Phillip Susi @ 2007-05-01 21:55 UTC (permalink / raw)
  To: Linux-kernel

I seem to remember seeing some patches go by at some point that allowed 
one of the rom type embeded system filesystems to directly execute 
binaries out of the original rom memory rather than copying them to ram 
first, then executing from there.  I was wondering if rootfs or tmpfs 
support such execute in place today, or if binaries executed from there 
have their code segments duplicated in ram?

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2007-05-08 11:59 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-02 23:11 Execute in place Al Boldi
2007-05-03  7:31 ` Dmitry Krivoschekov
2007-05-03 11:33   ` Al Boldi
2007-05-03 17:38     ` Dmitry Krivoschekov
2007-05-07 16:46     ` H. Peter Anvin
2007-05-07 19:37       ` Al Boldi
2007-05-07 19:41         ` H. Peter Anvin
2007-05-07 20:56           ` Al Boldi
2007-05-08  6:06             ` H. Peter Anvin
2007-05-08 11:36               ` Al Boldi
2007-05-08 11:37                 ` H. Peter Anvin
2007-05-08 12:02                   ` Al Boldi
  -- strict thread matches above, loose matches on Subject: below --
2007-05-01 21:55 Phillip Susi
2007-05-02 14:04 ` Hugh Dickins
2007-05-02 14:38   ` Björn Steinbrink
2007-05-02 15:22     ` Hugh Dickins
2007-05-02 19:30       ` Phillip Susi
2007-05-02 20:34         ` Hugh Dickins
2007-05-03 11:38   ` Erik Mouw
2007-05-03 15:37     ` Jörn Engel
2007-05-03 12:12   ` Robin Getz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox