[ccache] explanation of ccache stats

Stéphane Charette stephanecharette at gmail.com
Fri Mar 18 16:39:02 UTC 2016


>
>
> Right, I think the default configuration I had was just "~/.ccache".
> Possibly looking at the value of $CCACHE_DIR, or reading ccache.conf ?
>
>
The plugin runs as root.  There is no CCACHE_DIR or ccache.conf for the
root user.  (In the normal use case.)  Which is why I attempt to find all
the ccache.conf files with the find command.


> For your use case, it will probably work - but you could end up
> with lots (30) of users in the same graph for a shared computer ?
>
>
I did take care of that.  The plugin uses the SUGGEST feature of Munin, and
there will be one graph per user.  Not all users on the same stats graph.
Otherwise, like you said, the graph would quickly be unusable.


They are reported, but most are only reported if they are not zero.
> You can see the full list being declared in the ccache source code:
>
> https://github.com/jrosdahl/ccache/blob/master/ccache.h#L23
> https://github.com/jrosdahl/ccache/blob/master/stats.c#L50
>
>
Thank you for that!

Stéphane


More information about the ccache mailing list