lkml.org 
[lkml]   [2008]   [Nov]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: mmap: is default non-populating behavior stable?
Alan Cox wrote:
> On Tue, 04 Nov 2008 17:07:00 +0100
> Peter Zijlstra <peterz@infradead.org> wrote:
>> [snip]
>> I'm not sure how POSIX speaks of this.
>>
>> I think Linux does the expected thing.
>
> I believe our behaviour is correct for mmap/mumap/truncate and it
> certainly used to be and was tested.
>
> At the point you do anything involving mremap (which is non posix) our
> behaviour becomes rather bizarre.

Thanks to all for answers. I have made the conclusion that doing "open() new
file, truncate(<big size>), mmap(<the same big size>), write/read some memory
pages" should not populate other, untouched by write/read pages (until
MAP_POPULATE given), right?

--
Eugene V. Lyubimkin aka JackYF

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2008-11-04 17:55    [W:0.101 / U:6.908 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site