I installed distcc and Cmake for a small C++ project. I have two machines: so there is one client where compilation is done locally, and one server, where the compilation is done 'remotely'.
I have followed the instructions to install and configure distcc but I see no improvement when I compile my project, using these simple steps:
CXX="distcc g++" cmake my_project && make -j4
I have checked everything, on the client and the server machines, and saw no particular behavior. All return codes are 0 (OK) in the logs and there are no error messages. It's like everything is working but with no time gain. I also installed the distccmon-gui tool and checked that both machines are used during compilation time.
Finally, I did try with 4 machines and got the same results, that is, 0 improvement.
The only thing which looks really weird, are the 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 the localhost machine, the latency is about 200ms for each performed job.
In the end, there is a little time overhead when i use distcc, which I attribute to communications between the server and the client.
Has anyone already had such an issue with distcc and knows where I should look, or where should I investigate? I'm really stuck on this and believe distcc should bring me additional performance!
Any ideas ? please help :=)
Thanks