Bug 1623593

Summary: Run 'make -j<procs>' (parallel, on multiple processors, compilation
Product: [Community] GlusterFS Reporter: Yaniv Kaul <ykaul>
Component: project-infrastructureAssignee: bugs <bugs>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: mainlineCC: bugs, gluster-infra, nigelb
Target Milestone: ---Keywords: Improvement
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-08-30 01:30:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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