Welcome to thatlinuxbox.com Monday, December 09 2019 @ 04:26 AM UTC

Improve compile time on multi-core Linux systems

  • Friday, February 12 2010 @ 08:51 PM UTC
  • Contributed by:
  • Views: 4,174
Linux, Open Source, and Tech Stuff

  • Google Plus
  • Facebook
  • Twitter
  • Reddit
  • LinkedIn
  • Digg

While compiling a piece of software from source the other day, I noticed that my CPU was only at about 50% utilization.  This reminded me that the build tools can be set to execute multiple operations simultaneously.

The CONCURRENCY_LEVEL environment variable is used by many tools to determine the number of concurrent jobs to run:


 It is also possible to tell "make" directly how many simultaneous jobs to run:

 make -j 3

 make --jobs=3

 On a sample dual-core system, this improved my emacs compile time from 2m36s to 1m31s.

Improve compile time on multi-core Linux systems | 0 comments | Create New Account

The following comments are owned by whomever posted them. This site is not responsible for what they say.

User Functions



thatlinuxbox.com is the home of Dan Stoner's Personal Blog, Photos, and More (opinions, rants, techno-babble, and possibly a few useful tidbits of knowledge).

Questions or Comments about this site? Contact danstoner _ at _ gmail.com.

RSS Feed for this blog

Other places to find me on the web:





Visit Dan Stoner's profile on Pinterest.

Support This Site

If you like something that you find on this site, please consider making a purchase through one of the links below or sending me an item from my Amazon Wish List.

If you can't speak for yourself, your Road ID will.

Altra Zero Drop Footwear
10% Off and Free Shipping!

10% Off and Free Shipping!
(Discounts will become visible during Checkout)

The Clymb

Awesome VPS hosting by Linode.com