X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=docs%2Fusers_guide%2Fruntime_control.xml;h=e0dd420cab7cbbd4fd28af818800f8aa44e8ffe2;hp=5039526c756a8307ed2dcbcd2496d3b3a593b84c;hb=11f6f411b4a15b333423715b41b498f5f7745933;hpb=cb90532723bd5801b8ac29973dd14e8e30b1e0a9 diff --git a/docs/users_guide/runtime_control.xml b/docs/users_guide/runtime_control.xml index 5039526..e0dd420 100644 --- a/docs/users_guide/runtime_control.xml +++ b/docs/users_guide/runtime_control.xml @@ -130,6 +130,35 @@ own signal handlers. + + + + RTS + option + + + WARNING: this option is for working around memory + allocation problems only. Do not use unless GHCi fails + with a message like “failed to mmap() memory below 2Gb”. If you need to use this option to get GHCi working + on your machine, please file a bug. + + + + On 64-bit machines, the RTS needs to allocate memory in the + low 2Gb of the address space. Support for this across + different operating systems is patchy, and sometimes fails. + This option is there to give the RTS a hint about where it + should be able to allocate memory in the low 2Gb of the + address space. For example, +RTS -xm20000000 + -RTS would hint that the RTS should allocate + starting at the 0.5Gb mark. The default is to use the OS's + built-in support for allocating memory in the low 2Gb if + available (e.g. mmap + with MAP_32BIT on Linux), or + otherwise -xm40000000. + + +