Re: buildworld + ccache trouble

From: Maxim Khitrov <max_at_mxcrypt.com>
Date: Mon, 20 Sep 2010 06:27:04 -0400
On Mon, Sep 20, 2010 at 4:43 AM, Dmitry Krivenok
<krivenok.dmitry_at_gmail.com> wrote:
> Your patch works fine for me, thanks!
> However, I don't see any performance gain when using ccache:
>
> Number of cache hits is very low.
> I need to understand this...

Make sure you have the following environment variables set:

CCACHE_HASH_COMPILER=1       (2.4)
CCACHE_COMPILERCHECK=content (3.0+)

CCache will not use cached files if the compiler has changed. The
default way of detecting this change is by comparing compiler's size
and modification time. Since the modification time changes after each
installworld, you are effectively clearing the cache for all
subsequent compilations.

Setting the above variables will cause the "sameness" of the compiler
to be determined by hashing its contents, which should only change if
the compiler code was actually modified.

- Max
Received on Mon Sep 20 2010 - 08:27:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:07 UTC