[distcc] ccache distcc gcc = no cache hits, not cache misses,
just multiple source files
Martin Pool
mbp at sourcefrog.net
Mon Feb 3 11:56:38 GMT 2003
On 28 Jan 2003, Bob Tanner <tanner at real-time.com> wrote:
> I'm not sure if this is a distcc issue, ccache issue or user issue.
>
> If I compile packageA with make CXX='ccache g++', then ccache -s, I get what I
> expect lots of cache misses.
Hi Bob,
> I then recompile, ccache -s, and I get what I expect lots of cache hits.
>
> I clear ccache's cache.
What command did you use to do this? "ccache -C"?
What ccache version are you using?
> Now, if I compile packageA with make CXX='ccache distcc g++', then ccache -s,
> I see lots of hits going to multiple source files.
>
> I recompile, again shows lots of hits going to multiple source files. It's
> like ccache isn't called.
Sorry, I don't understand. Surely getting lots of hits for repeated
compilation is an expected outcome?
What do you mean by "going to multiple source files"?
Here are my results: the first time I build distcc after a complete
flush and reset, I get all misses (currently 23 compiles, 2 links).
I make clean.
The second time I get an additional 6 misses, 20 hits and 2 more
links.
Actually I don't know why they're not all hitting, but it seems to be
basically working.
Note that the compiler output also apparently counts as a cached file.
--
Martin
More information about the distcc
mailing list