[ccache] HOWTO Use CCache + NFS + distributed builds

2007-03-29 Thread John Coiner
I got CCache working in this scenario: * Parallel builds, distributed across many hosts. * CCACHE_DIR is located on NFS. * Output files are hardlinks into the cache to save space. Maybe this will help someone else to get it working faster than I did :) There were two hurdles along

[ccache] patch: fix NFS issues

2007-03-27 Thread John Coiner
This is a more elegant fix for NFS issues. It applies to ccache-2.4. Unlike my previous patch, it doesn't create lock files, thereby avoiding any issues with stale lock files. - John diff -u /home/jcoiner/ccache-2.4/ccache.c ccache-2.4_nfs_fix/ccache.c --- /home/jcoiner/ccache-2.4/ccache.c

[ccache] patch: workaround for NFS issues

2007-03-24 Thread John Coiner
Here is a second attempt at an NFS workaround. This patch applies to ccache-2.4. The CCACHE_NFS_WORKAROUND variable enables the workaround. This workaround requires the existence of the lockfile program on the $PATH. Here's what I think is going on, when NFS corruption occurs: * Process X

[ccache] patch: workaround for NFS issues

2007-03-24 Thread John Coiner
Hi all, Here's a patch, for ccache 2.4, which works around the NFS bug. From the ccache man page: BUGS. When the cache is stored on an NFS filesystem, the filesystem must be exported with the no_subtree_check option to make renames between directories reliable. I have seen corrupt object