Skip to content

Commit

Permalink
doc: precise units for --max-old-space-size and --max-semi-space-size
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-abrioux committed Aug 21, 2024
1 parent 821ffab commit 722815e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -3396,7 +3396,7 @@ documented here:

### `--perf-prof-unwinding-info`

### `--max-old-space-size=SIZE` (in megabytes)
### `--max-old-space-size=SIZE` (in mebibytes)

Sets the max memory size of V8's old memory section. As memory
consumption approaches the limit, V8 will spend more time on
Expand All @@ -3409,10 +3409,10 @@ On a machine with 2 GiB of memory, consider setting this to
node --max-old-space-size=1536 index.js
```

### `--max-semi-space-size=SIZE` (in megabytes)
### `--max-semi-space-size=SIZE` (in mebibytes)

Sets the maximum [semi-space][] size for V8's [scavenge garbage collector][] in
MiB (megabytes).
MiB (mebibytes).
Increasing the max size of a semi-space may improve throughput for Node.js at
the cost of more memory consumption.

Expand Down

0 comments on commit 722815e

Please sign in to comment.