X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=docs%2Fusers_guide%2Fruntime_control.xml;h=dbdebe824088d721f89cfe0bfc97696c3e39c18d;hb=9ef343972e74911b82776b7fff3d9a1dde803661;hp=045ea07b76bba2cb37638a96d68bdf07884d063b;hpb=be36dc8301313715f1373a323c9c322f57295e74;p=ghc-hetmet.git diff --git a/docs/users_guide/runtime_control.xml b/docs/users_guide/runtime_control.xml index 045ea07..dbdebe8 100644 --- a/docs/users_guide/runtime_control.xml +++ b/docs/users_guide/runtime_control.xml @@ -1,5 +1,5 @@ -
+ Running a compiled program runtime control of Haskell programs @@ -21,7 +21,7 @@ options themselves. -
+ Setting RTS options RTS options, setting @@ -53,7 +53,7 @@ -
+ Setting RTS options on the command line @@ -127,9 +127,9 @@ $ ./prog -f +RTS -H32m -S -RTS -h foo bar +RTS -M128m -RTS to the command line. -
+ -
+ Setting RTS options at compile time @@ -139,9 +139,9 @@ $ ./prog -f +RTS -H32m -S -RTS -h foo bar set -H128m -K64m, link with -with-rtsopts="-H128m -K64m". -
+ -
+ Setting RTS options with the <envar>GHCRTS</envar> environment variable @@ -178,9 +178,9 @@ $ ./prog -f +RTS -H32m -S -RTS -h foo bar a crawl until the OS decides to kill the process (and you hope it kills the right one). -
+ -
+ “Hooks” to change RTS behaviour hooksRTS @@ -259,11 +259,11 @@ char *ghc_rts_opts = "-H128m -K1m"; versions in the file ghc/compiler/parser/hschooks.c in a GHC source tree. -
+ -
+ -
+ Miscellaneous RTS options @@ -329,7 +329,7 @@ char *ghc_rts_opts = "-H128m -K1m"; 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 @@ -347,9 +347,9 @@ char *ghc_rts_opts = "-H128m -K1m"; -
+ -
+ RTS options to control the garbage collector garbage collectoroptions @@ -495,7 +495,7 @@ char *ghc_rts_opts = "-H128m -K1m"; generation gen and higher. Omitting gen turns off the parallel GC completely, reverting to sequential GC. - + The default parallel GC settings are usually suitable for parallel programs (i.e. those using par, Strategies, or with multiple @@ -509,7 +509,7 @@ char *ghc_rts_opts = "-H128m -K1m"; restrict parallel GC to the old generation with -qg1. - + @@ -524,7 +524,7 @@ char *ghc_rts_opts = "-H128m -K1m"; generation gen and higher. Omitting gen disables load-balancing entirely. - + Load-balancing shares out the work of GC between the available cores. This is a good idea when the heap is @@ -817,7 +817,7 @@ char *ghc_rts_opts = "-H128m -K1m"; - The peak memory the RTS has allocated from the OS. + The peak memory the RTS has allocated from the OS. @@ -1032,17 +1032,17 @@ char *ghc_rts_opts = "-H128m -K1m"; -
+ -
+ RTS options for concurrency and parallelism The RTS options related to concurrency are described in , and those for parallelism in . -
+ -
+ RTS options for profiling Most profiling runtime options are only available when you @@ -1073,9 +1073,9 @@ char *ghc_rts_opts = "-H128m -K1m"; -
+ -
+ Tracing tracing @@ -1166,9 +1166,9 @@ char *ghc_rts_opts = "-H128m -K1m"; the binary eventlog file by using the option. -
+ -
+ RTS options for hackers, debuggers, and over-interested souls @@ -1301,9 +1301,9 @@ char *ghc_rts_opts = "-H128m -K1m"; -
+ -
+ Getting information about the RTS RTS @@ -1443,8 +1443,8 @@ $ ./a.out +RTS --info -
-
+ +