c++ - distcc issue: does it really speeds up compilation? -


i installed distcc , cmake small c++ project. have 2 machines: there 1 client compilation done locally, , 1 server, compilation done 'remotely'.

i have followed instructions install , configure distcc see no improvement when compile project, using these simple steps:

cxx="distcc g++" cmake my_project && make -j4 

i have checked everything, on client , server machines, , saw no particular behavior. return codes 0 (ok) in logs , there no error messages. it's working no time gain. installed distccmon-gui tool , checked both machines used during compilation time.

finally, did try 4 machines , got same results, is, 0 improvement.

the thing looks weird, communication times:

compile_ok exit:0 sig:0 core:0 ret:0 time:151ms  compile_ok exit:0 sig:0 core:0 ret:0 time:156ms  compile_ok exit:0 sig:0 core:0 ret:0 time:182ms  compile_ok exit:0 sig:0 core:0 ret:0 time:201ms  compile_ok exit:0 sig:0 core:0 ret:0 time:163ms  compile_ok exit:0 sig:0 core:0 ret:0 time:202ms  

even on localhost machine, latency 200ms each performed job.

in end, there little time overhead when use distcc, attribute communications between server , client.

has had such issue distcc , knows should look, or should investigate? i'm stuck on , believe distcc should bring me additional performance!

any ideas ? please :=)

thanks

how many cores have in total?

keep in mind running make -j4 use 4 cores in total: if there 4 cores on local machine , 4 on server, must use make -j8 or you'll have no improvement on compiling locally.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -