Re: is ccache working effectively?

2018-11-21 Thread Erik Joelsson
On 2018-11-21 04:16, Maurizio Cimadamore wrote: On 20/11/2018 11:49, Magnus Ihse Bursie wrote: On 2018-11-09 11:09, Maurizio Cimadamore wrote: That does the trick, thanks. If ccache and PCH is so bad in combination, maybe we should not allow it? Like turning off PCH by default of

Re: is ccache working effectively?

2018-11-21 Thread Maurizio Cimadamore
On 20/11/2018 11:49, Magnus Ihse Bursie wrote: On 2018-11-09 11:09, Maurizio Cimadamore wrote: That does the trick, thanks. If ccache and PCH is so bad in combination, maybe we should not allow it? Like turning off PCH by default of --enacle-ccache is given? Or at least *warn* that this

Re: is ccache working effectively?

2018-11-20 Thread Magnus Ihse Bursie
On 2018-11-09 11:09, Maurizio Cimadamore wrote: That does the trick, thanks. If ccache and PCH is so bad in combination, maybe we should not allow it? Like turning off PCH by default of --enacle-ccache is given? Or at least *warn* that this combination is no good? /Magnus I take a very

Re: is ccache working effectively?

2018-11-09 Thread Maurizio Cimadamore
That does the trick, thanks. I take a very small hit in the cold cache case, but then I get huge boost once the cache is hot. cache hit (direct)  1629 cache hit (preprocessed) 115 cache miss 1 cache hit rate 99.94 %

Re: is ccache working effectively?

2018-11-08 Thread Erik Joelsson
You can try --disable-precompiled-headers and see if that helps. We have had special considerations for combining these features in the past, but it's certainly a source of trouble for ccache. /Erik On 2018-11-08 16:20, Maurizio Cimadamore wrote: On 08/11/2018 20:31, Erik Joelsson wrote: I

Re: is ccache working effectively?

2018-11-08 Thread Maurizio Cimadamore
On 08/11/2018 20:31, Erik Joelsson wrote: I think we need more details here to figure it out, but it doesn't surprise me that hotspot is the part that's failing. Building hotspot is way more complex than the rest. Digging more into the command lines of the various HS files, they include

Re: is ccache working effectively?

2018-11-08 Thread Erik Joelsson
Hello, On 2018-11-08 10:58, Maurizio Cimadamore wrote: Hi, I've observed that the time spent in C/CPP compilation during a JDK build seems to have crept higher lately. By monitoring processes during the build I found an awful lot of c++ compilations taking place, which was surprising since

is ccache working effectively?

2018-11-08 Thread Maurizio Cimadamore
Hi, I've observed that the time spent in C/CPP compilation during a JDK build seems to have crept higher lately. By monitoring processes during the build I found an awful lot of c++ compilations taking place, which was surprising since I'm setup to use ccache. So I decided to run some more