GeezerVison is showing github.com — doc: clarify `--max-old-space-size` and `--max-semi-space-size` units · nodejs/node@2c2ae80
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/cli.md +11-3Lines changed: 11 additions & 3 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3482,7 +3482,11 @@ documented here: |
3482 | 3482 |
|
3483 | 3483 | ### `--perf-prof-unwinding-info` |
3484 | 3484 |
|
3485 | | -### `--max-old-space-size=SIZE` (in megabytes) |
| 3485 | +<!-- Anchor to make sure old links find a target --> |
| 3486 | + |
| 3487 | +<a id="--max-old-space-sizesize-in-megabytes"></a> |
| 3488 | + |
| 3489 | +### `--max-old-space-size=SIZE` (in MiB) |
3486 | 3490 |
|
3487 | 3491 | Sets the max memory size of V8's old memory section. As memory |
3488 | 3492 | consumption approaches the limit, V8 will spend more time on |
@@ -3495,10 +3499,14 @@ On a machine with 2 GiB of memory, consider setting this to |
3495 | 3499 | node --max-old-space-size=1536 index.js |
3496 | 3500 | ``` |
3497 | 3501 |
|
3498 | | -### `--max-semi-space-size=SIZE` (in megabytes) |
| 3502 | +<!-- Anchor to make sure old links find a target --> |
| 3503 | + |
| 3504 | +<a id="--max-semi-space-sizesize-in-megabytes"></a> |
| 3505 | + |
| 3506 | +### `--max-semi-space-size=SIZE` (in MiB) |
3499 | 3507 |
|
3500 | 3508 | Sets the maximum [semi-space][] size for V8's [scavenge garbage collector][] in |
3501 | | -MiB (megabytes). |
| 3509 | +MiB (mebibytes). |
3502 | 3510 | Increasing the max size of a semi-space may improve throughput for Node.js at |
3503 | 3511 | the cost of more memory consumption. |
3504 | 3512 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: doc/api/worker_threads.md +2-2Lines changed: 2 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1500,8 +1500,8 @@ thread spawned will spawn another until the application crashes. |
1500 | 1500 | [`'close'` event]: #event-close |
1501 | 1501 | [`'exit'` event]: #event-exit |
1502 | 1502 | [`'online'` event]: #event-online |
1503 | | -[`--max-old-space-size`]: cli.md#--max-old-space-sizesize-in-megabytes |
1504 | | -[`--max-semi-space-size`]: cli.md#--max-semi-space-sizesize-in-megabytes |
| 1503 | +[`--max-old-space-size`]: cli.md#--max-old-space-sizesize-in-mib |
| 1504 | +[`--max-semi-space-size`]: cli.md#--max-semi-space-sizesize-in-mib |
1505 | 1505 | [`ArrayBuffer`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer |
1506 | 1506 | [`AsyncResource`]: async_hooks.md#class-asyncresource |
1507 | 1507 | [`Buffer.allocUnsafe()`]: buffer.md#static-method-bufferallocunsafesize |
|