distributed MAKE

試著忘記壹切 提交于 2019-12-10 16:06:07

问题


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:


Check out DistCC:

http://distcc.samba.org/

Works for both solaris-sparc and x86.

Good Luck!




回答2:


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.




回答3:


besides distcc,

  • dmake is said to do what you call for: http://docs.oracle.com/cd/E19422-01/819- 3697/dmake.html
  • DMS http://www.nongnu.org/dms/faq.html also exists

See also ccache which speeds up compilation.




回答4:


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.



来源:https://stackoverflow.com/questions/5374106/distributed-make

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!