<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Microsoft Sans Serif";
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:sans-serif;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Maiandra GD";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>No, not really.  One way you could test
would be to see how normal Spread reacts when you jump the clock around and
then contrast that with how it operates using your monotonic clock.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p><font size=2 color=navy face="Times New Roman"><span style='font-size:10.0pt;
color:navy'>Cheers!<br>
<br>
---<br>
John Lane Schultz<br>
Spread Concepts LLC<br>
Phn: 443 838 2200 </span></font><o:p></o:p></p>

</div>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
drago.krznaric@se.transport.bombardier.com
[mailto:drago.krznaric@se.transport.bombardier.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Monday, May 11, 2009 4:18 AM<br>
<b><span style='font-weight:bold'>To:</span></b> John Schultz<br>
<b><span style='font-weight:bold'>Cc:</span></b> <st1:PersonName w:st="on">spread-users@lists.spread.org</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Spread-users] Should
I dare touch the clock?</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
</span></font><font size=2 face="Microsoft Sans Serif"><span style='font-size:
10.0pt;font-family:"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</span></font>
<br>
<font size=2 face="Microsoft Sans Serif"><span style='font-size:10.0pt;
font-family:"Microsoft Sans Serif"'>is some test suite I could use to see that
things work after the change?<br>
&nbsp;</span></font><font size=1 face="Microsoft Sans Serif"><span
style='font-size:7.5pt;font-family:"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 </span></font><br>
<br>
<o:p></o:p></p>

<table class=MsoNormalTable border=0 cellpadding=0 width="100%"
 style='width:100.0%'>
 <tr>
  <td width="35%" valign=top style='width:35.0%;padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><font size=3 face="Times New Roman"><span
  style='font-size:12.0pt'><br>
  <br>
  <br>
  </span></font><b><font size=1 face=sans-serif><span style='font-size:7.5pt;
  font-family:sans-serif;font-weight:bold'>John Schultz
  &lt;jschultz@spreadconcepts.com&gt;</span></font></b> <br>
  <font size=1 face=sans-serif><span style='font-size:7.5pt;font-family:sans-serif'>2009-05-08
  17:50</span></font> <o:p></o:p></p>
  </td>
  <td width="64%" valign=top style='width:64.0%;padding:.75pt .75pt .75pt .75pt'>
  <table class=MsoNormalTable border=0 cellpadding=0 width="100%"
   style='width:100.0%'>
   <tr>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal align=right style='text-align:right'><font size=1
    face=sans-serif><span style='font-size:7.5pt;font-family:sans-serif'>To</span></font><o:p></o:p></p>
    </td>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal><font size=1 face=sans-serif><span style='font-size:
    7.5pt;font-family:sans-serif'>Drago
    Krznaric/SE/Transport/Bombardier@TRANSPORT</span></font> <o:p></o:p></p>
    </td>
   </tr>
   <tr>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal align=right style='text-align:right'><font size=1
    face=sans-serif><span style='font-size:7.5pt;font-family:sans-serif'>cc</span></font><o:p></o:p></p>
    </td>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal><st1:PersonName w:st="on"><font size=1 face=sans-serif><span
     style='font-size:7.5pt;font-family:sans-serif'>spread-users@lists.spread.org</span></font></st1:PersonName>
    <o:p></o:p></p>
    </td>
   </tr>
   <tr>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal align=right style='text-align:right'><font size=1
    face=sans-serif><span style='font-size:7.5pt;font-family:sans-serif'>Subject</span></font><o:p></o:p></p>
    </td>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal><font size=1 face=sans-serif><span style='font-size:
    7.5pt;font-family:sans-serif'>Re: [Spread-users] Should I dare touch the
    clock?</span></font><o:p></o:p></p>
    </td>
   </tr>
  </table>
  <p class=MsoNormal><font size=3 face="Times New Roman"><span
  style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>
  <table class=MsoNormalTable border=0 cellpadding=0>
   <tr>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal><font size=3 face="Times New Roman"><span
    style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>
    </td>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal><font size=3 face="Times New Roman"><span
    style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>
    </td>
   </tr>
  </table>
  <p class=MsoNormal><font size=3 face="Times New Roman"><span
  style='font-size:12.0pt'><o:p></o:p></span></font></p>
  </td>
 </tr>
</table>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
<br>
<br>
<br>
</span></font><font size=1 face="Courier New"><span style='font-size:7.5pt;
font-family:"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.</span></font> <br>
<br>
<font size=1 face="Courier New"><span style='font-size:7.5pt;font-family:"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.</span></font> <br>
<br>
<font size=1 face="Courier New"><span style='font-size:7.5pt;font-family:"Courier New"'>Cheers!</span></font>
<br>
<font size=1 face="Courier New"><span style='font-size:7.5pt;font-family:"Courier New"'>John</span></font>
<br>
<br>
<font size=1 face="Courier New"><span style='font-size:7.5pt;font-family:"Courier New"'>---</span></font>
<br>
<font size=1 face="Courier New"><span style='font-size:7.5pt;font-family:"Courier New"'>John
Lane Schultz</span></font> <br>
<font size=1 face="Courier New"><span style='font-size:7.5pt;font-family:"Courier New"'>Spread
Concepts LLC</span></font> <br>
<font size=1 face="Courier New"><span style='font-size:7.5pt;font-family:"Courier New"'>Phn:
443 838 2200 </span></font><br>
<font size=1 face="Courier New"><span style='font-size:7.5pt;font-family:"Courier New"'>Fax:
301 560 8875</span></font> <br>
<br>
<font size=1 face="Courier New"><span style='font-size:7.5pt;font-family:"Courier New"'>Friday,
May 8, 2009, 11:19:23 AM, you wrote:</span></font> <o:p></o:p></p>

<table class=MsoNormalTable border=0 cellpadding=0 width="100%"
 style='width:100.0%'>
 <tr>
  <td width="1%" valign=top bgcolor=blue style='width:1.0%;background:blue;
  padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><b><font size=2 color=white face=Tahoma><span
  style='font-size:10.0pt;font-family:Tahoma;color:white;font-weight:bold'>&gt;</span></font></b>
  <o:p></o:p></p>
  </td>
  <td width="98%" valign=top bgcolor=white style='width:98.0%;background:white;
  padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><font size=3 face="Times New Roman"><span
  style='font-size:12.0pt'><br>
  </span></font><font size=1 face=Tahoma><span style='font-size:7.5pt;
  font-family:Tahoma'>Hi,</span></font><font size=2 face=Tahoma><span
  style='font-size:10.0pt;font-family:Tahoma'> </span></font><br>
  <br>
  <font size=1 face=Tahoma><span style='font-size:7.5pt;font-family:Tahoma'>I
  have a single spread daemon and a bunch of programs communicating via spread
  messages </span></font><br>
  <font size=1 face=Tahoma><span style='font-size:7.5pt;font-family:Tahoma'>through
  this daemon. All programs and the daemon are running on the same machine.</span></font><font
  size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> </span></font><br>
  <br>
  <font size=1 face=Tahoma><span style='font-size:7.5pt;font-family:Tahoma'>From
  previous mails on this list, I know that people have had problems with
  message </span></font><br>
  <font size=1 face=Tahoma><span style='font-size:7.5pt;font-family:Tahoma'>delivery
  when they have changed the clock, via settimeofday and even NTP.</span></font><font
  size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> </span></font><br>
  <br>
  <font size=1 face=Tahoma><span style='font-size:7.5pt;font-family:Tahoma'>But
  I'm not sure if this can only occur when there are multiple daemons or if it
  can happen</span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;
  font-family:Tahoma'> </span></font><br>
  <font size=1 face=Tahoma><span style='font-size:7.5pt;font-family:Tahoma'>in
  my case too. Browsing through the code in events.c, it looks as it could
  happen in my case </span></font><br>
  <font size=1 face=Tahoma><span style='font-size:7.5pt;font-family:Tahoma'>too,
  although the probability is perhaps small.</span></font><font size=2
  face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> </span></font><br>
  <br>
  <font size=1 face=Tahoma><span style='font-size:7.5pt;font-family:Tahoma'>Has
  someone a testprogram/argument proving that this is either true or false?</span></font><font
  size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> </span></font><br>
  <br>
  <font size=1 face=Tahoma><span style='font-size:7.5pt;font-family:Tahoma'>I'm
  thinking about changing the gettimeofday call in E_get_time to something that
  is not</span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;
  font-family:Tahoma'> </span></font><br>
  <font size=1 face=Tahoma><span style='font-size:7.5pt;font-family:Tahoma'>affected
  by some external source setting the time, for example,
  clock_gettime(CLOCK_MONOTONIC).</span></font><font size=2 face=Tahoma><span
  style='font-size:10.0pt;font-family:Tahoma'> </span></font><br>
  <br>
  <font size=1 face=Tahoma><span style='font-size:7.5pt;font-family:Tahoma'>Has
  someone done something similar before?</span></font><font size=2 face=Tahoma><span
  style='font-size:10.0pt;font-family:Tahoma'> </span></font><br>
  <br>
  <font size=1 face=Tahoma><span style='font-size:7.5pt;font-family:Tahoma'>Cheers,</span></font><font
  size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> </span></font><br>
  <font size=1 face=Tahoma><span style='font-size:7.5pt;font-family:Tahoma'>Drago
  </span></font><o:p></o:p></p>
  </td>
 </tr>
</table>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
<br>
<br>
<br>
<br>
</span></font><font size=2 face="Maiandra GD"><span style='font-size:10.0pt;
font-family:"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>
_________________________________________________________________________________________________________________
</span></font><o:p></o:p></p>

</div>

</body>

</html>