2018-06-07 dmucs & distcc

dmucs與distcc

    ruanyuan.net/forum.php?mod=post&action=newthread&fid=41
    服務(wù)器執(zhí)行:
        /etc/default/distcc,設(shè)置如下配置項(xiàng):
            STARTDISTCC="true"  ALLOWEDNETS="127.0.0.1 192.168.1.0/24"LISTENER="0.0.0.0"
        /etc/default/dmucs
            yes
        /etc/dmucs.conf     
            # Format: machine number-of-cpus power-index
            10.239.65.187   20      20
            10.239.82.105   8       8

        service distcc start
        service dmucs start
        loadavg -s 服務(wù)器ip &(發(fā)送本機(jī)負(fù)荷的程序)
        
        Error 1:
            dmucs Could not open server on port 9714.

        Error 2:    
            sudo service dmucs restart
            * Restarting dmucs distcc coordinator dmucs
            ...done.
            * Restarting dmucs client daemon loadavg
            No /usr/sbin/dmucs found running; none killed.


    客戶端執(zhí)行:
        /etc/default/distcc,設(shè)置如下配置項(xiàng):
            STARTDISTCC="true"  ALLOWEDNETS="127.0.0.1 192.168.1.0/24"LISTENER="0.0.0.0"
        /etc/default/dmucs
            USE_SERVER=10.239.82.105
        ~/.bashrc
            export DISTCC_HOSTS="192.168.1.11 192.168.1.22 192.168.1.33"
        service distcc start
        loadavg -s 服務(wù)器ip &(發(fā)送本機(jī)負(fù)荷的程序)
        distccmon-text 1
    
    Using DistCC to speed up compilation
        http://pointclouds.org/documentation/advanced/distcc.php
        wget http://download.redis.io/releases/redis-3.0.5.tar.gz
        make
    CONFIGURE
        --CXX="ethost distcc g++" ./configure
    Makefile
        CXX = g++   改為  CXX = gethost distcc g++
        make -j8 CC=distcc CXX=distcc
    
    5.運(yùn)行
    服務(wù)端運(yùn)行 
        export PATH=$PATH:服務(wù)端distcc程序路徑:服務(wù)器編譯工具路徑
        distcc --deamon --allow 192.168.0.0/16
    客戶端運(yùn)行 :
        export PATH=$PATH:客戶端distcc程序路徑:客戶端編譯工具路徑
        export DISTCC_HOSTS="server_ip1 server_ip2 ..."
        make -j8 CC=distcc
        
    啟動(dòng)監(jiān)控:distccd --daemon --allow 10.20.0.0/16
    查看監(jiān)控:distccmon-text 1
    
    使用distcc搭建分布式編譯環(huán)境 
        http://blog.chinaunix.net/uid-22315114-id-99967.html
    
    $ distccmon-text
        29291 Preprocess  probe_64.c                                 192.168.0.2[0]
        30954 Compile     apic_noop.c                                192.168.0.2[0]
        30932 Preprocess  kfifo.c                                    192.168.0.2[0]
        30919 Compile     blk-core.c                                 192.168.0.2[1]
        30969 Compile     i915_gem_debug.c                           192.168.0.2[3]
        30444 Compile     block_dev.c                                192.168.0.3[1]
        30904 Compile     compat.c                                   192.168.0.3[2]
        30891 Compile     hugetlb.c                                  192.168.0.3[3]
        30458 Compile     catalog.c                                  192.168.0.4[0]
        30496 Compile     ulpqueue.c                                 192.168.0.4[2]
        30506 Compile     alloc.c                                    192.168.0.4[0]
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容