Re: ccache mount location questions

vermaden <[email protected]> Wed, 01 Jul 2026 13:52:50 +0200
Newsgroups gmane.os.freebsd.devel.hackers
Message-ID <zlfdtlhpnwjadxjxvbrk@fzwr>
Hi.

> 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)

LZ4 will not harm anything and can help.

These should also help a little.

# zfs set atime=off          zroot/var/cache/ccache
# zfs set xattr=sa           zroot/var/cache/ccache
# zfs set relatime=off       zroot/var/cache/ccache
# zfs set primarycache=all   zroot/var/cache/ccache
# zfs set secondarycache=all zroot/var/cache/ccache
# zfs set logbias=throughput zroot/var/cache/ccache
# zfs set sync=disabled      zroot/var/cache/ccache

I left 'sync' disabled as its just a 'compiler cache' - if anything will be lost here - it will be recreated during next compiling process.

Regards,
vermaden