
Haskell High Performance Programming
By :

The following sections describe flags for controlling the Runtime System's behavior. The exact set of flags available depend on how the Runtime System was configured (via GHC flags).
The number of capabilities (OS threads) to use is controlled with N<n>
:. This can be changed with setNumCapabilities. (default: 1)
These are flags for controlling used heap and stack size:
-H<size>
: Minimum heap size (default: 0
)
-M<size>
: Maximum heap size (default: unlimited)
-ki<size>
: Minimum stack size (default: 512k
)
-K<size>
: Maximum stack size (default: 80% system memory)
These are flags for controlling the generational garbage collector:
-G<n>
: Number of GC generations (default: 2
)
-qg<gen>
: Minimum generation to apply parallel GC to (default: 0
)
-qb<gen>
: Minimum generation in parallel GC to apply load-balancing (default: 1
)
-c
: Enable compacting algorithm for oldest generation