Re: ccache mount location questions

From: Rob Norris <robn_at_despairlabs.com>
Date: Wed, 01 Jul 2026 21:00:56 UTC
On Wed, 1 Jul 2026, at 9:20 PM, void wrote:
> 3. would it be advantageous in terms of speed to turn on
>     compression here? I'm thinking lz4 but maybe other settings are
>     preferable in the context. Muscle memory says leave compression off
>     but i have read that compression can speed up access, which is why
>     I'm asking for clarification. (asking here because it's the
>     most likely froup building stuff)
> 
> ccache.conf has max_size = 25G and is ccache4. 

If you have ccache on a compressed dataset, you should set compression = false in your ccache.conf.

Honestly though, the biggest win for me has been file_clone = true, avoiding a full copy out of the cache on every hit. I'm on Linux though and not sure what mechanism it's using for that (copy_file_range vs FICLONE), so check that on FreeBSD.

Rob.