Multi-Threaded make

JD jd1008 at gmail.com
Thu Nov 29 15:59:05 UTC 2012


On 11/29/2012 03:04 AM, Cameron Simpson wrote:
> On 28Nov2012 21:16, JD <jd1008 at gmail.com> wrote:
> | On 11/28/2012 08:21 PM, Cameron Simpson wrote:
> | > On 28Nov2012 15:37, JD <jd1008 at gmail.com> wrote:
> | > | While building the kernel from source RPM, I run
> | > | the command ps -ef | grep make in another terminal,
> | > | and I do see that 4 make processes are running, with
> | > | each one building objects for a different kernel source
> | > | directory.
> [...]
> | > Is make running with the "-j 4" (or whatever value) option?
> |
> | I had already said that after running rpmbuild,
> | ps -ef shows 4 make processes running.
> | So, it must be picking up -j4 from somewhere,
> | perhaps from one of the rpmbuild macros.
>
> I neat failure to answer my question.
> They could be submakes. Make's allow to invoke itself you know...
>
> What options _is_ make using?
Look, rpmbuild DOES  NOT invoke make with -j 4 or any other number!!!

 From the saved output of running rpmbuild, these are all of the 
invocations of make;
of course they did not get invokes all at once.
During the build ps -ef would show up to 4 makes running at a time.

+ make -f /home/jd/rpmbuild/SOURCES/Makefile.config VERSION=3.7.0 configs
+ make ARCH=i386 oldnoconfig
+ make ARCH=i386 oldnoconfig
+ make -s mrproper
+ make -s ARCH=i386 oldnoconfig
+ make -s ARCH=i386 V=1 bzImage
+ make -f 
/sdb5/redhat/BUILD/kernel-3.6.fc16/linux-3.7.0-0.rc7.git1.1.fc16.i686/scripts/Makefile.modpost 
vmlinux.o
+ make -f 
/sdb5/redhat/BUILD/kernel-3.6.fc16/linux-3.7.0-0.rc7.git1.1.fc16.i686/scripts/Makefile.build 
obj=init
+ make -s ARCH=i386 V=1 modules
+ make -s ARCH=i386 
INSTALL_MOD_PATH=/home/jd/rpmbuild/BUILDROOT/kernel-3.7.0-0.rc7.git1.1.fc16.i386 
modules_install KERNELRELEASE=3.7.0-0.rc7.git1.1.fc16.i686 mod-fw=
+ make -C tools/power/cpupower CPUFREQ_BENCH=false
+ make centrino-decode powernow-k8-decode
+ make
+ make
+ make ARCH=i386 
INSTALL_HDR_PATH=/home/jd/rpmbuild/BUILDROOT/kernel-3.7.0-0.rc7.git1.1.fc16.i386/usr 
headers_install
+ make ARCH=i386 
INSTALL_HDR_PATH=/home/jd/rpmbuild/BUILDROOT/kernel-3.7.0-0.rc7.git1.1.fc16.i386/usr 
headers_check
+ make -C tools/power/cpupower 
DESTDIR=/home/jd/rpmbuild/BUILDROOT/kernel-3.7.0-0.rc7.git1.1.fc16.i386 
libdir=/usr/lib mandir=/usr/share/man CPUFREQ_BENCH=false install
+ make 
DESTDIR=/home/jd/rpmbuild/BUILDROOT/kernel-3.7.0-0.rc7.git1.1.fc16.i386 
install
+ make 
DESTDIR=/home/jd/rpmbuild/BUILDROOT/kernel-3.7.0-0.rc7.git1.1.fc16.i386 
install



More information about the users mailing list