Hi,

On Tue, 13 Apr 1999 21:29:34 -0400, Brian Beuning
<[EMAIL PROTECTED]> said:

> Looking at the kernel (2.0.35) source code, it looks like MAP_SHARED
> requires a file descriptor.  Or put the other way, having no file descriptor
> requires MAP_PRIVATE.

That's true, but the API should support MAP_SHARED too: we just haven't
implemented it yet.

> If you think about it a minute, not having a file descriptor either means you
> need to have 450 MB of swap space for the memory -or- the mmap region is
> locked in memory.  

No, you need 450MB available VM, swap plus physical.  Shared anonymous
pages are in principle not much different from any other process local
data pages in that respect.

--Stephen
-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/mentre/smp-faq/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]

Reply via email to