]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Some notes about sharing a cache on NFS
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 9 May 2010 20:11:14 +0000 (22:11 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 9 May 2010 20:11:14 +0000 (22:11 +0200)
manual.txt

index 84f8238bf4033eebd72455b5a9d33f77d9b38bf1..ebd0d59b251071752ca0940216c700856985cace 100644 (file)
@@ -496,6 +496,20 @@ You may also want to make sure that the developers have *CCACHE_BASEDIR* set
 appropriately, as discussed in the previous section.
 
 
+SHARING A CACHE ON NFS
+----------------------
+
+It is possible to put the cache directory on an NFS filesystem (or similar
+filesystems), but keep in mind that:
+
+* Having the cache on NFS may slow down compilation. Make sure to do some
+  benchmarking to see if it's worth it.
+* ccache hasn't been tested very thoroughly on NFS.
+
+A tip is to set CCACHE_TEMPDIR to a directory on the local host to avoid NFS
+traffic for temporary files.
+
+
 USING CCACHE WITH DISTCC
 ------------------------