lkml.org 
[lkml]   [1999]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: mmap (was Linux/IA-64 byte order)
Hi,

On Wed, 10 Mar 1999 00:27:36 +0200, Itai Nahshon <nahshon@actcom.co.il>
said:

> Some discussions on this thread made me more
> curiuos... (sorry if that's a really dumb question).

> I see that the text section of executable files
> or shared objects is mmapped as private.

Yes...

> Will pages that are not modified still be shared?

Absolutely.

> If swapping takes place, will clean pages go to the swap
> space or are they simply discarded (and reloaded
> on demand from the file?

They are just thrown out and repaged from the original file as
necessary. This is required semantics: until a MAP_PRIVATE page gets
modified, the kernel guarantees that the page continues to reflect the
latest contents of the file if the file is modified.

--Stephen

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.049 / U:2.832 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site