Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module provides a container-/cgroup-aware substitute for GHC's RTS
-N
flag. See initRTSThreads
.
Synopsis
- initRTSThreads :: IO ()
Documentation
initRTSThreads :: IO () Source #
A container-/cgroup-aware substitute for GHC's RTS -N
flag.
On most platforms, this sets the number of runtime threads to match the
number of physical processors (see getNumProcessors
), which is the
default behavior of the GHC -N
flag.
When running within a cgroup on linux (most often within a container), this observes the current process' cgroup cpu quota to constrain the number of runtime threads.
See CPUQuota