Skip to content

Commit 617f871

Browse files
committed
Enable max parallel threads to be set to a percentage of total cores available
1 parent 1c60bcf commit 617f871

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

docs/06-settings.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2273,6 +2273,7 @@ Default value (empty to pick up Gwen default format: html)
22732273
<p>Supported values</p>
22742274
<ul>
22752275
<li><code>auto</code> (since v3.18.0) or <code>0</code> to run one thread on each available cores (default)</li>
2276+
<li>A percentage of the total number of the cores available (since v4.3.0). For example: 80%</li>
22762277
<li>
22772278
Or positive integer value denoting the maximum number of threads to allow
22782279
<ul>

docs/07-launcher.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ Default launch options and arguments can also be configured in [settings](/docs/
257257
<p>Optional switch for executing features or scenarios in parallel (one per CPU core) depending on the configured state level. Omit to execute sequentially.</p>
258258
</summary>
259259

260-
<p>Will utilise all avaialable CPU cores unless <Link to="/docs/settings#gwen-parallel-maxThreads"><code>gwen.parallel.maxThreads</code></Link> is configured with an explicit maximum.</p>
260+
<p>Will utilise all avaialable CPU cores unless <Link to="/docs/settings#gwen-parallel-maxThreads"><code>gwen.parallel.maxThreads</code></Link> is configured with an explicit maximum or percentage.</p>
261261

262262
<p>Examples</p>
263263

docs/11-parallel.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ The maximum number of parallel threads can be controlled through the following s
1818

1919
- [`gwen.parallel.maxThreads`](/docs/settings#gwen-parallel-maxThreads)
2020
- By default this is set to `auto`, meaning that one thread will execute on each available CPU core (for example: 8 threads would execute on an 8 core machine)
21-
- This can be set to a desired number of threads
21+
- This can be set to a percentage of the total number of cores available (for example, 80% would mean that 8 threads would execute on a 10 core machine)
22+
- Or a desired number of threads
2223
- When less than the number of available cores, the remaining cores will be free
2324
- When greater than the number of available cores, more than one thread may execute on some or all cores (use judiciously)
2425

0 commit comments

Comments
 (0)