<br><font size=2 face="Microsoft Sans Serif">Thanky you for prompt reply.
&nbsp;If I would like to try to use the monotonic clock, do you know if
there</font>
<br><font size=2 face="Microsoft Sans Serif">is some test suite I could
use to see that things work after the change?<br>
 &nbsp;</font><font size=1 face="Microsoft Sans Serif"><br>
Please consider the environment before you print / Merci de penser à l'environnement
avant d'imprimer / Tänk på miljön innan du skriver ut </font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=35%>
<br>
<br>
<br><font size=1 face="sans-serif"><b>John Schultz &lt;jschultz@spreadconcepts.com&gt;</b></font>
<br><font size=1 face="sans-serif">2009-05-08 17:50</font>
<td width=64%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">Drago Krznaric/SE/Transport/Bombardier@TRANSPORT</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">spread-users@lists.spread.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [Spread-users] Should I dare touch
the clock?</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br><font size=1 face="Courier New">Spread currently uses the wall clock
time for all of its time based calculations. &nbsp;If you only move the
clock a little, then you probably won't have any issues, although I'm not
100% sure. &nbsp;If you drastically jump the clock forward, then I can
see major issues as suddenly the already scheduled timeouts will take forever
to fire. &nbsp;If you drastically jump the clock backwards, then a lot
of timeouts will fire prematurely, which might cause a spurious partition
or something, but the system would probably then return to normal operations
immediately thereafter.</font>
<br>
<br><font size=1 face="Courier New">The events system definitely should
be moved over to using a monotonic clock on whatever platforms such a service
is available. &nbsp;We would like to do this sometime in the future, but
if you experiment with it and get something to work and want to contribute
it back, then that would be great.</font>
<br>
<br><font size=1 face="Courier New">Cheers!</font>
<br><font size=1 face="Courier New">John</font>
<br>
<br><font size=1 face="Courier New">---</font>
<br><font size=1 face="Courier New">John Lane Schultz</font>
<br><font size=1 face="Courier New">Spread Concepts LLC</font>
<br><font size=1 face="Courier New">Phn: 443 838 2200 </font>
<br><font size=1 face="Courier New">Fax: 301 560 8875</font>
<br>
<br><font size=1 face="Courier New">Friday, May 8, 2009, 11:19:23 AM, you
wrote:</font>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=1% bgcolor=blue><font size=2 color=white face="Tahoma"><b>&gt;</b></font>
<td width=98% bgcolor=white>
<br><font size=1 face="Tahoma">Hi,</font><font size=2 face="Tahoma"> </font>
<br>
<br><font size=1 face="Tahoma">I have a single spread daemon and a bunch
of programs communicating via spread messages </font>
<br><font size=1 face="Tahoma">through this daemon. All programs and the
daemon are running on the same machine.</font><font size=2 face="Tahoma">
</font>
<br>
<br><font size=1 face="Tahoma">From previous mails on this list, I know
that people have had problems with message </font>
<br><font size=1 face="Tahoma">delivery when they have changed the clock,
via settimeofday and even NTP.</font><font size=2 face="Tahoma"> </font>
<br>
<br><font size=1 face="Tahoma">But I'm not sure if this can only occur
when there are multiple daemons or if it can happen</font><font size=2 face="Tahoma">
</font>
<br><font size=1 face="Tahoma">in my case too. Browsing through the code
in events.c, it looks as it could happen in my case </font>
<br><font size=1 face="Tahoma">too, although the probability is perhaps
small.</font><font size=2 face="Tahoma"> </font>
<br>
<br><font size=1 face="Tahoma">Has someone a testprogram/argument proving
that this is either true or false?</font><font size=2 face="Tahoma"> </font>
<br>
<br><font size=1 face="Tahoma">I'm thinking about changing the gettimeofday
call in E_get_time to something that is not</font><font size=2 face="Tahoma">
</font>
<br><font size=1 face="Tahoma">affected by some external source setting
the time, for example, clock_gettime(CLOCK_MONOTONIC).</font><font size=2 face="Tahoma">
</font>
<br>
<br><font size=1 face="Tahoma">Has someone done something similar before?</font><font size=2 face="Tahoma">
</font>
<br>
<br><font size=1 face="Tahoma">Cheers,</font><font size=2 face="Tahoma">
</font>
<br><font size=1 face="Tahoma">Drago </font>
<br></table>
<br>
<br>
<br>
<br>
<br><font size=2 face="Maiandra GD"><br>
<br>
<br>
_______________________________________________________________________________________________________________
<br>
This e-mail communication (and any attachment/s) may contain confidential
or privileged information and is intended only for the individual(s) or
entity named above and to others who have been specifically authorized
to receive it. If you are not the intended recipient, please do not read,
copy, use or disclose the contents of this communication to others. Please
notify the sender that you have received this e-mail in error by reply
e-mail, and delete the e-mail subsequently. Please note that in order to
protect the security of our information systems an AntiSPAM solution is
in use and will browse through incoming emails. <br>
Thank you. <br>
_________________________________________________________________________________________________________________
<br>
<br>
Ce message (ainsi que le(s) fichier(s)), transmis par courriel, peut contenir
des renseignements confidentiels ou protégés et est destiné à l&#8217;usage
exclusif du destinataire ci-dessus. Toute autre personne est, par les présentes,
avisée qu&#8217;il est strictement interdit de le diffuser, le distribuer ou
le reproduire. Si vous l&#8217;avez reçu par inadvertance, veuillez nous en
aviser et détruire ce message. Veuillez prendre note qu'une solution antipollupostage
(AntiSPAM) est utilisée afin d'assurer la sécurité de nos systèmes d'information
et qu'elle furètera les courriels entrants.<br>
Merci. <br>
_________________________________________________________________________________________________________________
<br>
<br>
</font>