distcc
distcc is a tool for speeding up compilation of source code by using distributed computing over a computer network.
此工具就是可以把編譯進行分散式的處理,相當方便快速。
利用 3 台 pc 實現 distcc ...
1. 先安裝好 apt-get install distcc
2. 在每台 pc 時,開啟 distcc daemon server
# distccd --daemon --allow 127.0.0.1 --allow 10.100.90.0/24
3.
time make -j10 CC="distcc arm-arago-linux-gnueabi-gcc" CROSS_COMPILE=arm-arago-linux-gnueabi- ARCH=arm uImage
real 1m48.143s
user 5m55.716s
sys 0m12.236s
export DISTCC_HOSTS="localhost 10.100.90.232 10.100.90.240"
time make -j10 CC="distcc arm-arago-linux-gnueabi-gcc" CROSS_COMPILE=arm-arago-linux-gnueabi- ARCH=arm uImage
real 1m4.804s
user 2m45.832s
sys 0m8.844s
export DISTCC_HOSTS="--randomize localhost 10.100.90.232 10.100.90.240,cpp,lzo"
time distcc-pump make -j16 CC="distcc arm-arago-linux-gnueabi-gcc" CROSS_COMPILE=arm-arago-linux-gnueabi- ARCH=arm uImage
real 0m59.147s
user 2m39.148s
sys 0m8.380s
可看出可節省相當多時間.
reference:
http://yehnan.blogspot.tw/2013/10/distccraspberry-piraspbian.html
https://www.ibm.com/developerworks/cn/linux/l-distcc/
http://samarthparikh.blogspot.tw/2012/10/install-distcc-and-make-linux-kernel.html
https://blog.kuoe0.tw/posts/2015/01/29/distcc-let-ubuntu-compile-programs-for-os-x/
https://my.oschina.net/vaero/blog/212726
此工具就是可以把編譯進行分散式的處理,相當方便快速。
利用 3 台 pc 實現 distcc ...
1. 先安裝好 apt-get install distcc
2. 在每台 pc 時,開啟 distcc daemon server
# distccd --daemon --allow 127.0.0.1 --allow 10.100.90.0/24
3.
time make -j10 CC="distcc arm-arago-linux-gnueabi-gcc" CROSS_COMPILE=arm-arago-linux-gnueabi- ARCH=arm uImage
real 1m48.143s
user 5m55.716s
sys 0m12.236s
export DISTCC_HOSTS="localhost 10.100.90.232 10.100.90.240"
time make -j10 CC="distcc arm-arago-linux-gnueabi-gcc" CROSS_COMPILE=arm-arago-linux-gnueabi- ARCH=arm uImage
real 1m4.804s
user 2m45.832s
sys 0m8.844s
export DISTCC_HOSTS="--randomize localhost 10.100.90.232 10.100.90.240,cpp,lzo"
time distcc-pump make -j16 CC="distcc arm-arago-linux-gnueabi-gcc" CROSS_COMPILE=arm-arago-linux-gnueabi- ARCH=arm uImage
real 0m59.147s
user 2m39.148s
sys 0m8.380s
可看出可節省相當多時間.
reference:
http://yehnan.blogspot.tw/2013/10/distccraspberry-piraspbian.html
https://www.ibm.com/developerworks/cn/linux/l-distcc/
http://samarthparikh.blogspot.tw/2012/10/install-distcc-and-make-linux-kernel.html
https://blog.kuoe0.tw/posts/2015/01/29/distcc-let-ubuntu-compile-programs-for-os-x/
https://my.oschina.net/vaero/blog/212726
留言
張貼留言