summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorKevin Buhr <buhr@asaurus.net>2019-07-13 12:56:35 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-12-31 23:44:39 -0500
commit859ebdd446eda446d38708a587503c255b58c4c6 (patch)
tree46892f2b488b5f272ba67680fd68ba6b7ecf5ef8 /docs
parentd710fd666a70ae100120042c8549634537001609 (diff)
downloadhaskell-859ebdd446eda446d38708a587503c255b58c4c6.tar.gz
Add "-Iw" RTS flag for minimum wait between idle GCs (#11134)
Diffstat (limited to 'docs')
-rw-r--r--docs/users_guide/runtime_control.rst20
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/users_guide/runtime_control.rst b/docs/users_guide/runtime_control.rst
index 738d981a18..0b9cdfbfbc 100644
--- a/docs/users_guide/runtime_control.rst
+++ b/docs/users_guide/runtime_control.rst
@@ -653,6 +653,26 @@ performance.
This is an experimental feature, please let us know if it causes
problems and/or could benefit from further tuning.
+.. rts-flag:: -Iw ⟨seconds⟩
+
+ :default: 0 seconds
+
+ .. index::
+ single: idle GC
+
+ By default, if idle GC is enabled in the threaded runtime, a major
+ GC will be performed every time the process goes idle for a
+ sufficiently long duration (see :rts-flag:`-I ⟨seconds⟩`). For
+ large server processes accepting regular but infrequent requests
+ (e.g., once per second), an expensive, major GC may run after
+ every request. As an alternative to shutting off idle GC entirely
+ (with ``-I0``), a minimum wait time between idle GCs can be
+ specified with this flag. For example, ``-Iw60`` will ensure that
+ an idle GC runs at most once per minute.
+
+ This is an experimental feature, please let us know if it causes
+ problems and/or could benefit from further tuning.
+
.. rts-flag:: -ki ⟨size⟩
:default: 1k