[distcc] distccmon time sync issues

Martin Pool mbp at sourcefrog.net
Fri Feb 13 22:50:39 GMT 2004


On 13 Feb 2004, "Ahlborn, James T (MED)" <James.Ahlborn at med.ge.com> wrote:
> hi,
> I discovered, through much pain and agony, that the distcc monitors check
> the time stamp of the state files before using them.  this is a good idea,
> until your systems start having time sync issues.  in my case, my home
> directory was on a box which was 2 minutes behind my development box.  this
> meant that all of my state files seemed to be two minutes old. 
> the distcc
> monitors, then, ignored those state files.  this was very frustrating
> because the distcc monitors showed no state despite the fact that the state
> files where there and accessible.  i would suggest some sort of feature
> addition to the monitors such that if the monitors continually detect state
> files that seem "out of date", that they suggest to the user that there may
> be time sync issues (similar to other build tools which may suggest "time
> skew detected" or similar).

Sorry to hear that.

It is a really good idea to use NTP to synchronize clocks on NFS
machines.  In fact it is pretty dangerous not to use it.

Didn't it cause problems with other things?  Even emacs can get upset
about "file changed while you were editing it" if there is time skew.

I'm not sure if there is any easy way for distcc to detect this
problem though.  I think Make can do it because any one machine both
reads and writes the directory, but the distcc monitor (at the moment)
only reads.  It is probably possible for Make to give you an incorrect
build without any warning.

--
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.samba.org/archive/distcc/attachments/20040214/6ae60779/attachment.bin


More information about the distcc mailing list