我在两台服务器上运行了一个 distccd 守护进程。一个(称为 A,.12)用作主机,而另一个(称为 B,.11)用作从机:
Settings on A:
vim ~/.distcc/hosts
# contents of ~/.distcc/hosts
localhost
192.168.1.11,cpp,lzo
Settings on B:
distccd --daemon --allow 192.168.1.12 --log-file /home/nhlee/distcc.log
"ps aux | grep distcc" to check that it's running
然后我用以下方法构建一些东西:
pump make -j xxx
它告诉我:
__________Using distcc-pump from /usr/bin
__________Using 2 distcc servers, of which only 1 support(s) pump mode
...
__________Shutting down distcc-pump include server
但是,花费的时间几乎相同。我不确定是否有办法检查哪些组件是由哪个主机编译的。
我打开显示器:
distccmon-text 1
我在两台机器上都试过了,都只显示空行。
我查看了/var/look/messages
,但没有任何与 distcc 相关的内容。
我检查了日志文件,该文件也是空的。
如何查看我的文件是如何编译的?
#
于是我在两台机器上用top查看,结果发现所有文件都是在master本地(A)编译的。不过,我不确定为什么没有任何错误。
我还尝试从 ~/.distcc/hosts 中删除 'localhost',但结果仍然相同。