Re: ccache mount location questions
Dag-Erling Smørgrav <[email protected]> Thu, 02 Jul 2026 03:34:47 +0200
| Newsgroups | gmane.os.freebsd.devel.hackers |
|---|---|
| Message-ID | <[email protected]> |
"Rob Norris" <[email protected]> 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 - [email protected]