Bug 1623593 - Run 'make -j<procs>' (parallel, on multiple processors, compilation
Summary: Run 'make -j<procs>' (parallel, on multiple processors, compilation
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: GlusterFS
Classification: Community
Component: project-infrastructure
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: bugs@gluster.org
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-29 17:28 UTC by Yaniv Kaul
Modified: 2018-08-30 05:57 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-08-30 01:30:33 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Yaniv Kaul 2018-08-29 17:28:30 UTC
Description of problem:
Compilation right now doesn't seem to run make with the -j argument, allowing to use multiple processors and speed up compilation. This can reduce compilation time nicely.

Comment 1 Nigel Babu 2018-08-30 01:30:33 UTC
As far as I know, we use make -j for all compilation. See: https://github.com/gluster/glusterfs-patch-acceptance-tests/blob/master/build.sh#L40

The only two places where we may not be doing this is the clang job and the lcov job. They're both run once nightly, so it doesn't really affect them as much.

Comment 2 Yaniv Kaul 2018-08-30 05:30:17 UTC
I'm seeing ' make --no-print-directory install-am ' @ https://build.gluster.org/job/smoke/43261/consoleFull for example.

Comment 3 Nigel Babu 2018-08-30 05:57:17 UTC
I don't know why that's the output shown on the terminal. That seems to have something to do with the Makefile code. Not the face that we're running it with make -j $n. On my machine when I run with make -j 4, I still see that line. That doesn't mean `make -j 4` isn't called by the build scripts.

nigelb@athena  ~/code/glusterfs  make -j 4
(CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/nigelb/code/glusterfs/missing autoheader)
rm -f stamp-h1
touch config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make --no-print-directory all-recursive
Making all in rpc/xdr/gen
make --no-print-directory all-am


Note You need to log in before you can comment on or make changes to this bug.