public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* mmap: is default non-populating behavior stable?
@ 2008-11-03 21:57 Eugene V. Lyubimkin
  2008-11-03 22:41 ` Peter Zijlstra
  0 siblings, 1 reply; 11+ messages in thread
From: Eugene V. Lyubimkin @ 2008-11-03 21:57 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 582 bytes --]

Hello kernel hackers!

The current implementation of mmap() in kernel is very convenient.
It allows to mmap(fd) very big amount of memory having small file as back-end.
So one can mmap() 100 MiB on empty file, use first 10 KiB of memory, munmap() and have
only 10 KiB of file at the end. And while working with memory, file will automatically be
grown by read/write memory requests.

Question is: can user-space application rely on this behavior (I failed to find any
documentation about this)?

TIA and please CC me in replies.

-- 
Eugene V. Lyubimkin aka JackYF


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

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

end of thread, other threads:[~2008-11-05 23:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-03 21:57 mmap: is default non-populating behavior stable? Eugene V. Lyubimkin
2008-11-03 22:41 ` Peter Zijlstra
2008-11-03 22:49   ` Rik van Riel
2008-11-04 15:56     ` Chris Friesen
2008-11-04 16:07       ` Peter Zijlstra
2008-11-04 16:28         ` Alan Cox
2008-11-04 16:51           ` Eugene V. Lyubimkin
2008-11-05 16:42             ` Hugh Dickins
2008-11-05 16:54               ` Alan Cox
2008-11-05 17:50               ` Eugene V. Lyubimkin
2008-11-05 23:31                 ` Hugh Dickins

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