<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
But is it normal that ccache on 3.6 branch only uses 3Gb ? I find it very low, compared to all binary files produced.<br></blockquote></div><br>ccache of course, over time, fills up the cache space it is allowed to use (up to approximately 10% below it, it seems). That's the whole point of it. An under-utilized cache is a wasted cache. ccache doesn't use magic, it can't know if some cached object file has been "obsoleted" forever, so it keeps them as long as there is space.<br>
<br>On my Linux box, where I build for Android maybe once a day, with debugging, and quite occasionally for Linux:<br><br><span style="font-family:courier new,monospace">cache directory /home/tml/.ccache<br>
cache hit (direct) 368163<br>cache hit (preprocessed) 94352<br>cache miss 1121108<br>called for link 93840<br>multiple source files 93<br>
compile failed 47552<br>
preprocessor error 7596<br>couldn't find the compiler 92<br>bad compiler arguments 5288<br>unsupported source language 433<br>autoconf compile/link 64967<br>
unsupported compiler option 165727<br>no input file 398434<br>files in cache 51223<br>cache size 18.0 Gbytes<br>max files 500000<br>
max cache size 20.0 Gbytes<br></span><br>I have no idea what the age distribution of the cached object files are. Perhaps ccache -s should tell that too, in some suitable fashion..., like 50% of files are older than N days, 10% older than M days.<br>
<br>On the other hand, on a tinderbox, with dozens of builds per day (for three cross-compilation targets), without debugging, with cache accumulated for maybe two weeks, it still hasn't filled up the maximum space of 20 GB I gave it:<br>
<br><span style="font-family:courier new,monospace">cache directory /home/android/.ccache<br>cache hit (direct) 9725802<br>cache hit (preprocessed) 94058<br>cache miss 229024<br>
called for link 492953<br>multiple source files 1570<br>compile failed 980552<br>ccache internal error 2<br>preprocessor error 33103<br>
bad compiler arguments 59830<br>
unsupported source language 7953<br>autoconf compile/link 531055<br>unsupported compiler option 1568175<br>no input file 467468<br>files in cache 197527<br>
cache size 14.8 Gbytes<br>
max cache size 20.0 Gbytes</span><br><br>Actually, the "unsupported compiler option<span style="font-family:courier new,monospace"><span style="font-family:arial,helvetica,sans-serif"></span>" is a bit high there, isn't it? Hmm.<br>
<br>--tml<br><br> </span>