Re: Multi-Threaded make

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Gabriel VLASIU <gabriel <at> vlasiu.net> writes:

> 
> 
> On Thu, 29 Nov 2012, JD wrote:
> 
> > That does not make sense.
> 
> > I have a unicore!! An old Athlon64 3700+,
> In this case %{?_smp_mflags} is expanded to "-j1" or "" and you will have 
> exactly only one "cc1".
> 
<SNIP>
> > and yet ps -ef shows up to 4 makes running at a time.
> Read the previous mail again.
> 
> Gabriel
> 
Make is much more constrained by disk I/O than by CPU load.  Setting -j to be
equal to the number of cores/CPUs is just playing it safe.  This is especially
true when building a rpm which involves not just compiles and link but also
packaging, dependency resolution and documentation tasks which are even more
disk I/O intensive than compiles.  Chances are that several of these operations
that not dependent on successfully compiling the code are fired off in parallel
rather than doing them sequentially and that old workhorse make gets the task of
managing each of these tasks.  Thus, you end up with multiple copies of make
running at the same time even on a single core/CPU system to perform these tasks.

Now just to totally blow your mind...  while working with the 2.5.X development
kernels prior to the release of 2.6.0 I was doing at least one kernel build for
each new point release (sometimes more if there were build issues to resolve). 
At that time my primary desktop was a dual CPU (back in the day before multiple
cores) Athlon rig.  Since I had all sorts of time and plenty of trials to
experiment with I played around with the setting of -j for kernel builds.  My
best results were with -j 12.

Cheers,
Dave



-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux