6

I had a MAKE compilation process that took around 1 hour to complete earlier. I used the -j command and was able to reduce it to 40 mins. What I observed is that the CPU utilization was high and my mentor suggested me to distribute the jobs on different SERVERS or machines available with our organization. I read about distcc but it can be used for c code only and we have a mix of c and java code. Kindly suggest me an appropriate tool to look for and which is the easiest to install and deploy as I am the only one working on this project.

Specifications - platform - solaris-sparc and x86 also

Thank you Ankit

1
  • If you use distcc, Make will distribute the C jobs to different servers while compiling the java locally. Is that not fast enough?
    – Beta
    Mar 22, 2011 at 0:37

4 Answers 4

4

ElectricAccelerator, a commercial product from Electric Cloud, is a drop-in replacement for GNU make that accelerates make-based builds by distributing the work to a cluster of computers. It can also distribute and parallelize ant-based builds. Accelerator uses a different mechanism than distcc so it is not tied to any particular toolchain or development language.

Disclaimer: I'm the architect and lead developer of ElectricAccelerator.

1
  • thank you for the answer. But i am actually looking for a freeware to work on. I read about electric accelerator earlier also and found it really helpful but it was a paid utility.
    – ankit
    Mar 24, 2011 at 2:50
3

Check out DistCC:

http://distcc.samba.org/

Works for both solaris-sparc and x86.

Good Luck!

1
  • distcc is used for C code only !!! we have java code as well. Presently we use make for the c code and call ant for java within it !! can u tell me if i can do the same while using distcc !!
    – ankit
    Mar 21, 2011 at 5:54
1

You can also hand-craft a solution. Suppose you build four libraries, and have four servers. Build on library on each server, using remote execution commands.

This is just one simple example, of course, to give you the idea.

1

besides distcc,

See also ccache which speeds up compilation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.