[MLton-devel] Solaris port

Stephen Weeks MLton@mlton.org
Thu, 5 Jun 2003 20:40:22 -0700


> Another issue is the high cost billed on munmap's account. Any
> ideas.

It occurs to me that this may be due to the copy loop in growHeap,
which munmaps from the back of the source heap 8M at a time.  Again,
we wouldn't normally see this on Linux because heapRemap, which uses
mremap, would succeed.

Any easy fix would be to set COPY_CHUNK_SIZE to something larger, like
64M.  Of course, this increases the chance of paging.

Maybe you could try this, and also send the output of running your
executable with "truss -t mmap,munmap" and with "@MLton gc-messages
--", so we could see exactly why the mmaps and munmaps are occurring.



-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
MLton-devel mailing list
MLton-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlton-devel