Welcome to thatlinuxbox.com Saturday, December 21 2024 @ 03:40 PM UTC

Improve compile time on multi-core Linux systems

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

Share
  • 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:

 export CONCURRENCY_LEVEL=3

 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

Login

Connect

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:

Twitter

LinkedIn

GitHub

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.


The Clymb


Awesome VPS hosting by Linode.com