Skip to content

Commit

Permalink
Add note about how to handle build oom or hang (#4951)
Browse files Browse the repository at this point in the history
close #4953
  • Loading branch information
zanmato1984 authored May 20, 2022
1 parent 7ebd651 commit 2e8d324
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ cmake $WORKSPACE/tiflash
make tiflash -j
```
> **NOTE**: Option `-j` (defaults to your system CPU core count, otherwise you can optionally specify a number) is used to control the build parallelism. Higher parallelism consumes more memory. If you encounter compiler OOM or hang, try to lower the parallelism by specifying a reasonable number, e.g., half of your system CPU core count or even smaller, after `-j`, depending on the available memory in your system.
After building, you can get TiFlash binary under `$BUILD/dbms/src/Server/tiflash`.
### Build Options
Expand Down

0 comments on commit 2e8d324

Please sign in to comment.