Re: Cache misses are extremely expensive.

Joel Rosdahl <[email protected]> Tue, 12 Jul 2016 21:23:05 +0200
Newsgroups gmane.comp.compilers.ccache
Message-ID <CAK8D=piKBAYHyVgzzXdU_-4QzzZD+O5VUui9VHMLh9dVwaORAQ@mail.gmail.com>
On 23 June 2016 at 21:14, Guillaume Campagna <[email protected]>
 wrote:

> Just started using ccache based on this tutorial and so far I like it.
> However, caches miss being extremely slow. [..] Note that I do use a pch,
> if that changes something. [...]


Since you included pch_defines and time_macros in CCACHE_SLOPPINESS, I
guess you've seen the instructions on
https://ccache.samba.org/manual.html#_precompiled_headers already? If so,
did you also follow the instructions about using -include or
-fpch-preprocess?

To get more information on what's happening, you can set CCACHE_LOGFILE to
a file path and then look in that file for clues.

-- Joel