Re: ccache mount location questions
- In reply to: Rob Norris: "Re: ccache mount location questions"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 02 Jul 2026 01:34:47 UTC
"Rob Norris" <robn@despairlabs.com> writes: > If you have ccache on a compressed dataset, you should set compression > = false in your ccache.conf. That's the default. > 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. The file_clone option uses FICLONE, which only exists on Linux and only works on certain file systems. Ccache 4 does use copy_file_range() though, which is an improvement on all file systems on all platforms that support it, and which in FreeBSD defaults to block cloning if at all possible. DES -- Dag-Erling Smørgrav - des@FreeBSD.org