From 0a0b0493c05fc208fa57d038a124f07670fe4b10 Mon Sep 17 00:00:00 2001 From: ruoxi Date: Fri, 20 May 2022 16:10:48 +0800 Subject: [PATCH 1/3] Add note about how to handle build oom or hang --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 3bca0aa6597..4629c97ecde 100644 --- a/README.md +++ b/README.md @@ -139,6 +139,8 @@ cmake $WORKSPACE/tiflash make tiflash -j ``` +> **NOTE**: Option `-j` (default to your core count, otherwise you can optionally specify a number) is used to control the build parallellism. Higher parallelism consumes more memory. If you encounter compiler OOM or hang, try to lower the parallelism, by specifying a reasonable number after `-j`, depending on the availablem memory in your system. + After building, you can get TiFlash binary under `$BUILD/dbms/src/Server/tiflash`. ### Build Options From 14479b220d9e2cb4d902aefb9a4d0d756f40ad4d Mon Sep 17 00:00:00 2001 From: ruoxi Date: Fri, 20 May 2022 16:14:49 +0800 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4629c97ecde..fa946a9248f 100644 --- a/README.md +++ b/README.md @@ -139,7 +139,7 @@ cmake $WORKSPACE/tiflash make tiflash -j ``` -> **NOTE**: Option `-j` (default to your core count, otherwise you can optionally specify a number) is used to control the build parallellism. Higher parallelism consumes more memory. If you encounter compiler OOM or hang, try to lower the parallelism, by specifying a reasonable number after `-j`, depending on the availablem memory in your system. +> **NOTE**: Option `-j` (defaults to your core count, otherwise you can optionally specify a number) is used to control the build parallellism. Higher parallelism consumes more memory. If you encounter compiler OOM or hang, try to lower the parallelism, by specifying a reasonable number after `-j`, depending on the availablem memory in your system. After building, you can get TiFlash binary under `$BUILD/dbms/src/Server/tiflash`. From 88edacebce5ad2eca158f979c5d852e58d314a9e Mon Sep 17 00:00:00 2001 From: ruoxi Date: Fri, 20 May 2022 16:56:31 +0800 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fa946a9248f..8a2217b9a42 100644 --- a/README.md +++ b/README.md @@ -139,7 +139,7 @@ cmake $WORKSPACE/tiflash make tiflash -j ``` -> **NOTE**: Option `-j` (defaults to your core count, otherwise you can optionally specify a number) is used to control the build parallellism. Higher parallelism consumes more memory. If you encounter compiler OOM or hang, try to lower the parallelism, by specifying a reasonable number after `-j`, depending on the availablem memory in your system. +> **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`.