X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=docs%2Fusers_guide%2Fruntime_control.xml;h=69e26bc9208ea67c35b1a81d01e065f05a459324;hb=a4005d2d0c18ffa72ba7bd0fa052666e70e8c16e;hp=d8735e209df1f6ddd83d03d5ae93421756bb6a6e;hpb=00fe691ba258b2d9c8d5d85a3dffc0224b426dd8;p=ghc-hetmet.git diff --git a/docs/users_guide/runtime_control.xml b/docs/users_guide/runtime_control.xml index d8735e2..69e26bc 100644 --- a/docs/users_guide/runtime_control.xml +++ b/docs/users_guide/runtime_control.xml @@ -182,7 +182,7 @@ allocation area, size - [Default: 256k] Set the allocation area size + [Default: 512k] Set the allocation area size used by the garbage collector. The allocation area (actually generation 0 step 0) is fixed and is never resized (unless you use , below). @@ -529,21 +529,25 @@ - The total bytes allocated by the program. This may be less - than the peak memory use, as some may be freed. + The total number of bytes allocated by the program over the + whole run. - The total number of garbage collections that occurred. + The total number of garbage collections performed. - The average and maximum space used by your program. - This is only checked during major garbage collections, so it - is only an approximation; the number of samples tells you how - many times it is checked. + The average and maximum "residency", which is the amount of + live data in bytes. The runtime can only determine the + amount of live data during a major GC, which is why the + number of samples corresponds to the number of major GCs + (and is usually relatively small). To get a better picture + of the heap profile of your program, use + the RTS option + (). @@ -618,14 +622,14 @@ The "bytes allocated in the heap" is the total bytes allocated - by the program. This may be less than the peak memory use, as - some may be freed. + by the program over the whole run. - GHC uses a copying garbage collector. "bytes copied during GC" - tells you how many bytes it had to copy during garbage collection. + GHC uses a copying garbage collector by default. "bytes copied + during GC" tells you how many bytes it had to copy during + garbage collection. @@ -639,7 +643,10 @@ The "bytes maximum slop" tells you the most space that is ever - wasted due to the way GHC packs data into so-called "megablocks". + wasted due to the way GHC allocates memory in blocks. Slop is + memory at the end of a block that was wasted. There's no way + to control this; we just like to see how much memory is being + lost this way. @@ -652,7 +659,7 @@ Next there is information about the garbage collections done. For each generation it says how many garbage collections were - done, how many of those collections used multiple threads, + done, how many of those collections were done in parallel, the total CPU time used for garbage collecting that generation, and the total wall clock time elapsed while garbage collecting that generation. @@ -671,8 +678,8 @@ - Next there is the CPU time and wall clock time elapsedm broken - down by what the runtiem system was doing at the time. + Next there is the CPU time and wall clock time elapsed broken + down by what the runtime system was doing at the time. INIT is the runtime system initialisation. MUT is the mutator time, i.e. the time spent actually running your code. @@ -1020,12 +1027,22 @@ char *ghc_rts_opts = "-H128m -K1m"; itself. To do this, use the flag, e.g. $ ./a.out +RTS --info - [("GHC RTS", "Yes") + [("GHC RTS", "YES") ,("GHC version", "6.7") ,("RTS way", "rts_p") ,("Host platform", "x86_64-unknown-linux") + ,("Host architecture", "x86_64") + ,("Host OS", "linux") + ,("Host vendor", "unknown") ,("Build platform", "x86_64-unknown-linux") + ,("Build architecture", "x86_64") + ,("Build OS", "linux") + ,("Build vendor", "unknown") ,("Target platform", "x86_64-unknown-linux") + ,("Target architecture", "x86_64") + ,("Target OS", "linux") + ,("Target vendor", "unknown") + ,("Word size", "64") ,("Compiler unregisterised", "NO") ,("Tables next to code", "YES") ] @@ -1039,8 +1056,8 @@ $ ./a.out +RTS --info GHC RTS - Is this program linked against the GHC RTS? (Currently - the answer is always yes.) + Is this program linked against the GHC RTS? (always + "YES"). @@ -1054,45 +1071,71 @@ $ ./a.out +RTS --info RTS way - The variant (“way”) of the runtime. Possible - values are rts (vanilla), + The variant (“way”) of the runtime. The + most common values are rts (vanilla), rts_thr (threaded runtime, i.e. linked using the -threaded option) and rts_p (profiling runtime, i.e. linked using the -prof - option). Other variants include t - (ticky-ticky profiling) and dyn (the RTS is + option). Other variants include debug + (linked using -debug), + t (ticky-ticky profiling) and + dyn (the RTS is linked in dynamically, i.e. a shared library, rather than statically - linked into the executable itself). + linked into the executable itself). These can be combined, + e.g. you might have rts_thr_debug_p. - Target platform + + Target platform, + Target architecture, + Target OS, + Target vendor + - This is the platform the program is compiled to run on. + These are the platform the program is compiled to run on. - Build platform + + Build platform, + Build architecture, + Build OS, + Build vendor + - This is the platform where the program was compiled - from. (That is, the target platform of GHC itself.) Ordinarily + These are the platform where the program was built + on. (That is, the target platform of GHC itself.) Ordinarily this is identical to the target platform. (It could potentially be different if cross-compiling.) - Host platform + + Host platform, + Host architecture + Host OS + Host vendor + - This is the platform where GHC itself was compiled. + These are the platform where GHC itself was compiled. Again, this would normally be identical to the build and target platforms. + Word size + + Either "32" or "64", + reflecting the word size of the target platform. + + + + Compiler unregistered Was this program compiled with an “unregistered”