Bug 56681 - # of parallel make jobs is twice as configured
Summary: # of parallel make jobs is twice as configured
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Installation (show other bugs)
Version:
(earliest affected)
3.5.7.2 release
Hardware: x86 (IA32) Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-02 15:21 UTC by Toralf Förster
Modified: 2012-11-05 19:14 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster 2012-11-02 15:21:08 UTC
I configured "make -j5" at my stable Gentoo, but the process lists shows, that each of 2 perl jobs runs 5 make jobs :


Mem:          7983       7232        750          0        436       4672
-/+ buffers/cache:       2123       5859
Swap:         9538          0       9538

emerge(18282)───sandbox(23553)───ebuild.sh(23555)───ebuild.sh(23578)───make(23588)───sh(23589)───make(23597)───sh(26406)───perl(26407)─┬─perl(4892)───dmake(4893)───sh(4898)───make(4899)─┬─sh(6938)───i686-pc-linux-g(6940)─┬─as(6942)
                                                                                                                                       │                                                  │                                  └─cc1plus(6941)
                                                                                                                                       │                                                  ├─sh(6959)───i686-pc-linux-g(6961)─┬─as(6963)
                                                                                                                                       │                                                  │                                  └─cc1plus(6962)
                                                                                                                                       │                                                  ├─sh(6969)───i686-pc-linux-g(6971)─┬─as(6973)
                                                                                                                                       │                                                  │                                  └─cc1plus(6972)
                                                                                                                                       │                                                  ├─sh(7052)───i686-pc-linux-g(7054)─┬─as(7056)
                                                                                                                                       │                                                  │                                  └─cc1plus(7055)
                                                                                                                                       │                                                  └─sh(7078)───i686-pc-linux-g(7080)─┬─as(7082)
                                                                                                                                       │                                                                                     └─cc1plus(7081)
                                                                                                                                       └─perl(5329)───dmake(5330)───sh(5340)───make(5341)─┬─sh(7034)───i686-pc-linux-g(7038)─┬─as(7040)
                                                                                                                                                                                          │                                  └─cc1plus(7039)
                                                                                                                                                                                          ├─sh(7073)───i686-pc-linux-g(7075)─┬─as(7077)
                                                                                                                                                                                          │                                  └─cc1plus(7076)
                                                                                                                                                                                          ├─sh(7083)───i686-pc-linux-g(7085)─┬─as(7087)
                                                                                                                                                                                          │                                  └─cc1plus(7086)
                                                                                                                                                                                          ├─sh(7088)───i686-pc-linux-g(7090)─┬─as(7092)
                                                                                                                                                                                          │                                  └─cc1plus(7091)
                                                                                                                                                                                          └─sh(7093)───i686-pc-linux-g(7095)─┬─as(7097)
                                                                                                                                                                                                                             └─cc1plus(7096)
Comment 1 David Tardon 2012-11-05 06:02:35 UTC
Our old (recursive) build system uses two configure options to determine how many jobs can be run:
* --with-num-cpus tells how many directories can be build at once (one dmake process for each of them)
* --with-max-jobs tells how many jobs each dmake can run

It is the ebuild's task to supply appropriate values for the options based on system-specific settings (e.g., MAKEFLAGS=-j5).