robbat2: (Default)
robbat2 ([personal profile] robbat2) wrote2008-09-13 10:07 pm
Entry tags:

long-term ccache statistics for a portage-dedicated instance

Migrating data and cleaning up my old desktop display head machine, I decided to check out my ccache statistics. This is a very old cache, having first started 2006-01-13. The oldest item in the present cache is 2008-01-12, but the statistics are valid for the entire period. hits 229k and 834k misses = approximately 21% hit rate. This wasn't any crazy repeated compiling of my own code, just a dedicated ccache directory for Portage to use.

cache hit                         228637
cache miss                        834113
called for link                   100293
multiple source files                526
compile failed                     20645
ccache internal error                 14
preprocessor error                 12425
cache file missing                     9
bad compiler arguments                 1
not a C/C++ file                   39097
autoconf compile/link             183802
unsupported compiler option        34481
no input file                      96690
files in cache                    204344
cache size                           1.8 Gbytes
max cache size                       2.0 Gbytes

Re: ~2.5M chances, 29.35% hit rate, here (from 2004-06)

[identity profile] robbat2.livejournal.com 2008-09-14 09:18 pm (UTC)(link)
I specifically gave the age of the stats and the age of the oldest item. The chances statistic is way out, because of my high uptimes on that box. It basically regularly went 1-2 months without ANY updates. Average peak uptime was 14 days, but only because of a glitch in the disk controller where the box locked up about every 2 weeks depending on use.

It didn't have much on it either, basically just X, ssh and an xterm. xterm over to the G5, and start fluxbox and everything else over X forwarding.

Re: ~2.5M chances, 29.35% hit rate, here (from 2004-06)

(Anonymous) 2008-09-14 11:44 pm (UTC)(link)
So is the moral of the story that ccache makes sense for normal portage users? Should this be added to the Gentoo docs?