From 2e8d324e76a2c5a96c83fdab8e7e08f3a5424d61 Mon Sep 17 00:00:00 2001 From: ruoxi Date: Fri, 20 May 2022 20:24:38 +0800 Subject: [PATCH] Add note about how to handle build oom or hang (#4951) close pingcap/tiflash#4953 --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 3bca0aa6597..8a2217b9a42 100644 --- a/README.md +++ b/README.md @@ -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