Skip to content
Snippets Groups Projects
Commit 6bc482ac authored by Simon Marlow's avatar Simon Marlow
Browse files

[project @ 2000-08-03 11:34:41 by simonmar]

Update the documentation on the +RTS -C option, and remove the note
saying that it doesn't work.
parent 66f7a41d
No related merge requests found
...@@ -2994,21 +2994,16 @@ the default is 2. ...@@ -2994,21 +2994,16 @@ the default is 2.
<Term><Option>-C[&lt;us&gt;]</Option>:</Term> <Term><Option>-C[&lt;us&gt;]</Option>:</Term>
<ListItem> <ListItem>
<Para> <Para>
<IndexTerm><Primary>-C&lt;us&gt; RTS option</Primary></IndexTerm> <IndexTerm><Primary>-C&lt;us&gt; RTS option</Primary></IndexTerm> Sets
Sets the context switch interval to <Literal>&lt;us&gt;</Literal> microseconds. A context the context switch interval to <Literal>&lt;s&gt;</Literal> seconds.
switch will occur at the next heap allocation after the timer expires. A context switch will occur at the next heap block allocation after
With <Option>-C0</Option> or <Option>-C</Option>, context switches will occur as often as the timer expires (a heap block allocation occurs every 4k of
possible (at every heap allocation). By default, context switches allocation). With <Option>-C0</Option> or <Option>-C</Option>,
occur every 10 milliseconds. Note that many interval timers are only context switches will occur as often as possible (at every heap block
capable of 10 millisecond granularity, so the default setting may be allocation). By default, context switches occur every 20ms
the finest granularity possible, short of a context switch at every milliseconds. Note that GHC's internal timer ticks every 20ms, and
heap allocation. the context switch timer is always a multiple of this timer, so 20ms
</Para> is the maximum granularity available for timed context switches.
<Para>
&lsqb;NOTE: this option currently has no effect (version 4.00). Context
switches happen when the current heap block is full, i.e. every 4k of
allocation].
</Para> </Para>
</ListItem> </ListItem>
</VarListEntry> </VarListEntry>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment