summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2021-03-12 14:27:29 +0100
committerKefu Chai <kchai@redhat.com>2021-03-12 15:18:10 +0100
commit1fab195e91bdaf9993a49f10ad44988b3474c5ff (patch)
tree42c6ec14586b35a647054cb72a5381eb29e101c5 /README.md
parentMerge pull request #40004 from vshankar/wip-cephfs-mirror-symlink-overrun (diff)
downloadceph-1fab195e91bdaf9993a49f10ad44988b3474c5ff.tar.xz
ceph-1fab195e91bdaf9993a49f10ad44988b3474c5ff.zip
README.md: correct notes on `-j` option
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/README.md b/README.md
index 98596de6d2e..86aab21c169 100644
--- a/README.md
+++ b/README.md
@@ -62,12 +62,13 @@ be up to 5x slower with some workloads. Please pass
"-DCMAKE_BUILD_TYPE=RelWithDebInfo" to do_cmake.sh to create a non-debug
release.)
-(Note: `ninja` alone will use only one CPU thread, this could take a while. use
-the `-j` option to use more threads. Something like `ninja -j$(nproc)` would be
-a good start.
+(Note: the number of jobs used by `ninja` is derived from the the number of
+CPU cores of the building host if unspecified. Use the `-j` option to limit
+the job number if the build jobs are running out of memory. On average, each
+job takes around 2.5GiB memory.
This assumes you make your build dir a subdirectory of the ceph.git
-checkout. If you put it elsewhere, just point `CEPH_GIT_DIR`to the correct
+checkout. If you put it elsewhere, just point `CEPH_GIT_DIR` to the correct
path to the checkout. Any additional CMake args can be specified setting ARGS
before invoking do_cmake. See [cmake options](#cmake-options)
for more details. Eg.