X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=docs%2Fusers_guide%2Fusing.xml;h=f769d287496cb9b623b5d31db182bd3149c15b8c;hb=3b5940fd32df31b56c1ab6891b0a8f338e796049;hp=20bb687b4f8b10dd0ff8048e783ad29ddde84f6b;hpb=43e0bca04009902c16f8f764dcb9a78c8da277c9;p=ghc-hetmet.git diff --git a/docs/users_guide/using.xml b/docs/users_guide/using.xml index 20bb687..f769d28 100644 --- a/docs/users_guide/using.xml +++ b/docs/users_guide/using.xml @@ -1834,7 +1834,7 @@ f "2" = 2 - + RTS option Use x simultaneous threads when @@ -1846,9 +1846,19 @@ f "2" = 2 on a dual-core machine we would probably use +RTS -N2 -RTS. + Omitting x, + i.e. +RTS -N -RTS, lets the runtime + choose the value of x itself + based on how many processors are in your machine. + + Be careful when using all the processors in your + machine: if some of your processors are in use by other + programs, this can actually harm performance rather than + improve it. + Setting also has the effect of - setting (the number of OS threads to - use for garbage collection) to the same value. + enabling the parallel garbage collector (see + ). There is no means (currently) by which this value may vary after the program has started.