[distcc] ccache+distcc = cache hit 0 always

Bob Tanner tanner at real-time.com
Fri Oct 25 20:05:00 GMT 2002


Experimenting with ccache and distcc. My results show that this combination is
not working.

Are my results wrong?
Approach wrong?

Start with a clean cache:
$ ccache -s
cache hit                              0
cache miss                             0
files in cache                         0
cache size                             0 Kbytes

Build something:
$ time make -j3 CC='ccache distcc /usr/bin/gcc' CXX='ccache distcc /usr/bin/g++'
<snip>
real    0m30.397s
user    0m9.061s
sys     0m0.986s

What's in the cache?
$ ccache -s
cache hit                              0
cache miss                             0
called for link                        1
multiple source files                  5
files in cache                         0
cache size                             0 Kbytes

Huh? no files in the cache? Did they all get compiled remotely? If so, why can't
they be cached?

Clean, and build again. Just to test.

$ time make -j3 CC='ccache distcc /usr/bin/gcc' CXX='ccache distcc /usr/bin/g++'
<snip>
real    0m29.940s
user    0m9.781s
sys     0m0.975s

Cache status?
$ ccache -s
cache hit                              0
cache miss                             0
called for link                        2
multiple source files                 10
files in cache                         0
cache size                             0 Kbytes

-- 
Bob Tanner <tanner at real-time.com>         | Phone : (952)943-8700
http://www.mn-linux.org, Minnesota, Linux | Fax   : (952)943-8500
Key fingerprint = AB15 0BDF BCDE 4369 5B42  1973 7CF1 A709 2CC1 B288



More information about the distcc mailing list