Re: max-heap setting for 64-bit applications

Matthew Fluet <[email protected]>
Newsgroups gmane.comp.lang.ml.mlton.devel
Message-ID <[email protected]>
On Mon, Dec 14, 2009 at 12:51 PM, Florian Weimer <[email protected]> wrote:
> * Matthew Fluet:
>
>> (Or, on Windows, use the reserve/commit distinction.
>
> It's there on Linx, too.
>
>> On Posix, use the madvise to preemptively indicate page-out/page-in
>> behavior.
>
> Doesn't work.  You have to map with PROT_NONE and then use mprotect to
> make available the parts you need.
>
> This is not a published kernel ABI, so it might break in the future.

Oh, I certainly understand that under-the-hood any VMM is likely to
have the reserve/commit distinction; plus plenty more subtleties:
sharing of zero-pages, copy-on-write for fork-exec, etc., etc.  But,
if it isn't exposed in a user-space ABI, then it isn't "there" for us.
 Windows, on the other hand, *requires* the user to manage the
distinction via the published user-space ABI.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.