<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">I would like to reboot now to fix this.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Can I proceed?</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<div id="Signature">
<div class="BodyFragment"><font size="2"><span style="font-size:10pt;">
<div class="PlainText">Ernest Williams <br>
Dept. Head, Advanced Control Systems<br>
Advanced Instrumentation Research, Technology Innovation Directorate<br>
SLAC National Laboratory, Stanford University</div>
</span></font></div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Williams Jr., Ernest L.<br>
<b>Sent:</b> Thursday, May 17, 2018 9:02 PM<br>
<b>To:</b> Slepicka, Hugo Henrique; Hoobler, Sonya; lerftest-ctrls@jlab.org<br>
<b>Cc:</b> Williams Jr., Ernest L.<br>
<b>Subject:</b> Re: [Lerftest-ctrls] linxuRT CPU system time</font>
<div> </div>
</div>
<meta content="text/html; charset=utf-8">
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p style="margin-top:0; margin-bottom:0">Hi Hugo,</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">Thanks <span>đź‘Ť</span></p>
<p style="margin-top:0; margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0; margin-bottom:0"><span>I think it is best to put the following in the LERF linuxRT CPU's "kernel-modules.cmd" file</span></p>
<p style="margin-top:0; margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0; margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0; margin-bottom:0"><span><span style="font-family:monospace"># Use Eastern timezone. <br>
# The computer hosting the linuxRT kernel is <span style="color:rgb(24,178,178)">
at</span> JLAB <br>
export<span style="color:rgb(24,178,178)"> TZ</span><span style="color:rgb(175,95,0)">=</span>EST5EDT <br>
<span style="color:rgb(24,178,178)">echo</span><span style="color:rgb(178,24,24)"> "Eastern timezone is "</span><span style="color:rgb(178,24,178)">$T</span><span style="color:rgb(178,24,24)">Z</span><br>
<br>
</span><br>
</span></p>
<p style="margin-top:0; margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0; margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0; margin-bottom:0"><span>Cheers,</span></p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<div id="x_Signature">
<div class="x_BodyFragment"><font size="2"><span style="font-size:10pt">
<div class="x_PlainText">Ernest Williams <br>
Dept. Head, Advanced Control Systems<br>
Advanced Instrumentation Research, Technology Innovation Directorate<br>
SLAC National Laboratory, Stanford University</div>
</span></font></div>
</div>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Slepicka, Hugo Henrique<br>
<b>Sent:</b> Thursday, May 17, 2018 8:54 PM<br>
<b>To:</b> Williams Jr., Ernest L.; Hoobler, Sonya; lerftest-ctrls@jlab.org<br>
<b>Subject:</b> Re: [Lerftest-ctrls] linxuRT CPU system time</font>
<div> </div>
</div>
<meta content="text/html; charset=utf-8">
<meta name="x_x_Generator" content="Microsoft Word 15 (filtered medium)">
<div lang="EN-US">
<div class="x_x_WordSection1">
<p class="x_x_MsoNormal">Hi Ernest,</p>
<p class="x_x_MsoNormal"> </p>
<p class="x_x_MsoNormal">Here it is:</p>
<p class="x_x_MsoNormal"> </p>
<ul type="disc" style="margin-top:0in">
<li class="x_x_MsoNormal" style="color:#454545"><span style="font-size:9.0pt; font-family:"Helvetica Neue"">From CPU Folder…</span>
<ul type="circle" style="margin-top:0in">
<li class="x_x_MsoNormal" style="color:#454545"><span style="font-size:9.0pt; font-family:"Helvetica Neue"">../common/st.cmd.linuxRT.cpu</span>
<ul type="square" style="margin-top:0in">
<li class="x_x_MsoNormal" style="color:#454545"><span style="font-size:9.0pt; font-family:"Helvetica Neue"">../common/cpuStart</span>
<ul type="square" style="margin-top:0in">
<li class="x_x_MsoNormal" style="color:#454545"><span style="font-size:9.0pt; font-family:"Helvetica Neue"">../facility/envSet.sh</span>
<ul type="square" style="margin-top:0in">
<li class="x_x_MsoNormal" style="color:#454545"><span style="font-size:9.0pt; font-family:"Helvetica Neue"">. $FACILITY_ROOT/epics/iocCommon/common/commonSetup.sh</span></li></ul>
</li><li class="x_x_MsoNormal" style="color:#454545"><span style="font-size:9.0pt; font-family:"Helvetica Neue"">. nfsMount.sh</span></li><li class="x_x_MsoNormal" style="color:#454545"><span style="font-size:9.0pt; font-family:"Helvetica Neue"">. ${EPICS_IOCS}/${HOSTNAME}/kernel-modules.cmd</span></li><li class="x_x_MsoNormal" style="color:#454545"><span style="font-size:9.0pt; font-family:"Helvetica Neue"">su $IOC_USER -c $(which caRepeater) &</span></li></ul>
</li><li class="x_x_MsoNormal" style="color:#454545"><span style="font-size:9.0pt; font-family:"Helvetica Neue"">su $IOC_USER -c linuxRT_cpu_load_viocs.sh</span>
<ul type="square" style="margin-top:0in">
<li class="x_x_MsoNormal" style="color:#454545"><span style="font-size:9.0pt; font-family:"Helvetica Neue"">su $IOC_USER -c 'linuxRT_startup_vioc.sh $VIOC $IOC_EXECUTABLE'</span>
<ul type="square" style="margin-top:0in">
<li class="x_x_MsoNormal" style="color:#454545"><span style="font-size:9.0pt; font-family:"Helvetica Neue"">STARTUP_CMD=$EPICS_IOCS/common/st.cmd.linuxRT</span>
<ul type="square" style="margin-top:0in">
<li class="x_x_MsoNormal" style="color:#454545"><span style="font-size:9.0pt; font-family:"Helvetica Neue"">< ${EPICS_IOCS}/facility/st.cmd.linuxRT.pre</span>
<ul type="square" style="margin-top:0in">
<li class="x_x_MsoNormal" style="color:#454545"><span style="font-size:9.0pt; font-family:"Helvetica Neue"">epicsEnvSet("ACF_FILE","/afs/slac.stanford.edu/g/lcls/epics/iocCommon/facility/Acf/lclsSecurity.acf")</span></li><li class="x_x_MsoNormal" style="color:#454545"><span style="font-size:9.0pt; font-family:"Helvetica Neue"">epicsEnvSet("ACF_INIT","/afs/slac.stanford.edu/g/lcls/epics/iocCommon/facility/Acf/soft_init_acf.cmd.soft")</span></li></ul>
</li><li class="x_x_MsoNormal" style="color:#454545"><span style="font-size:9.0pt; font-family:"Helvetica Neue"">< ${ST_CMD}</span></li><li class="x_x_MsoNormal" style="color:#454545"><span style="font-size:9.0pt; font-family:"Helvetica Neue"">< ${EPICS_IOCS}/common/st.cmd.soft.post</span></li></ul>
</li></ul>
</li></ul>
</li></ul>
</li></ul>
</li></ul>
<p class="x_x_MsoNormal"> </p>
<p class="x_x_MsoNormal"> <span style="font-family:monospace"># Use Eastern timezone. <br>
# The computer hosting the linuxRT kernel is <span style="color:rgb(24,178,178)">
at</span> JLAB <br>
export<span style="color:rgb(24,178,178)"> TZ</span><span style="color:rgb(175,95,0)">=</span>EST5EDT <br>
<span style="color:rgb(24,178,178)">echo</span><span style="color:rgb(178,24,24)"> "Eastern timezone is "</span><span style="color:rgb(178,24,178)">$T</span><span style="color:rgb(178,24,24)">Z</span><br>
<br>
</span></p>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="x_x_MsoNormal"><b><span style="font-size:12.0pt; color:black">From: </span>
</b><span style="font-size:12.0pt; color:black">"Williams Jr., Ernest L." <ernesto@slac.stanford.edu><br>
<b>Date: </b>Thursday, May 17, 2018 at 8:52 PM<br>
<b>To: </b>"Hoobler, Sonya" <sonya@slac.stanford.edu>, "lerftest-ctrls@jlab.org" <lerftest-ctrls@jlab.org><br>
<b>Cc: </b>"Williams Jr., Ernest L." <ernesto@slac.stanford.edu>, "Slepicka, Hugo Henrique" <slepicka@slac.stanford.edu><br>
<b>Subject: </b>Re: [Lerftest-ctrls] linxuRT CPU system time</span></p>
</div>
<div>
<p class="x_x_MsoNormal"> </p>
</div>
<div id="x_x_divtagdefaultwrapper">
<p><span style="font-size:12.0pt; color:black">Hi Sonya and Hugo,</span></p>
<p><span style="font-size:12.0pt; color:black"> </span></p>
<p><span style="font-size:12.0pt; color:black">Since LERF is a temporary facility with few linuxRT computers, we should just override "TZ=PST8PDT" in "kernel-modules.cmd"</span></p>
<p><span style="font-size:12.0pt; color:black"> </span></p>
<p><span style="font-size:12.0pt; font-family:"Courier New"; color:black"># Always use Pacific timezone. This will be fixed in future kernel images, but
<br>
# no harm in being redundant. <br>
export TZ=PST8PDT <br>
echo "Pacific timezone is "$TZ</span><span style="font-size:12.0pt; color:black"></span></p>
<p><span style="font-size:12.0pt; color:black"> </span></p>
<p><span style="font-size:12.0pt; font-family:"Courier New"; color:black">Note: commonSetup.sh is maintained by CVS.</span><span style="font-size:12.0pt; color:black"></span></p>
<p><span style="font-size:12.0pt; font-family:"Courier New"; color:black">I am not sure if it is worth the trouble to put logic that figures out the Locale/Region.<br>
<br>
</span><span style="font-size:12.0pt; color:black">Hugo, can you tell us the order of all these start scripts?</span></p>
<p><span style="font-size:12.0pt; color:black">I need a clear order of who calls who.</span></p>
<p><span style="font-size:12.0pt; color:black"> </span></p>
<p style="margin-bottom:12.0pt"><span style="font-size:12.0pt; color:black">Starting from: </span><span style="font-size:12.0pt; font-family:"Courier New"; color:black">/usr/local/lcls/epics/iocCommon/lcls-llrfcpu01/</span><span style="font-size:12.0pt; font-family:"Courier New"; color:aqua">startup.cmd</span><span style="font-size:12.0pt; color:black"></span></p>
<p><span style="font-size:12.0pt; color:black"> </span></p>
<p><span style="font-size:12.0pt; color:black"> </span></p>
<p><span style="font-size:12.0pt; color:black">Cheers,</span></p>
<p><span style="font-size:12.0pt; color:black"> </span></p>
<div id="x_x_Signature">
<div>
<div>
<p class="x_x_MsoNormal"><span style="font-size:10.0pt; color:black">Ernest Williams
<br>
Dept. Head, Advanced Control Systems<br>
Advanced Instrumentation Research, Technology Innovation Directorate<br>
SLAC National Laboratory, Stanford University</span></p>
</div>
</div>
</div>
<p class="x_x_MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:12.0pt; color:black"> </span></p>
<div>
<div class="x_x_MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt; color:black">
<hr size="2" width="98%" align="center">
</span></div>
<div id="x_x_divRplyFwdMsg">
<p class="x_x_MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> Lerftest-ctrls <lerftest-ctrls-bounces@jlab.org> on behalf of Williams Jr., Ernest L. <ernesto@slac.stanford.edu><br>
<b>Sent:</b> Thursday, May 17, 2018 8:34 PM<br>
<b>To:</b> Hoobler, Sonya; lerftest-ctrls@jlab.org<br>
<b>Subject:</b> Re: [Lerftest-ctrls] linxuRT CPU system time</span><span style="font-size:12.0pt; color:black">
</span></p>
<div>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
</div>
<div>
<div id="x_x_x_divtagdefaultwrapper">
<p><span style="font-size:12.0pt; color:black">Hi Sonya,</span></p>
<p><span style="font-size:12.0pt; color:black"> </span></p>
<p><span style="font-size:12.0pt; color:black">Do you mind if I go in a fix this?</span></p>
<p><span style="font-size:12.0pt; color:black"> </span></p>
<p><span style="font-size:12.0pt; color:black">I will need to reboot both linuxRT computers.</span></p>
<p><span style="font-size:12.0pt; color:black"> </span></p>
<p><span style="font-size:12.0pt; color:black"> </span></p>
<p><span style="font-size:12.0pt; color:black"> </span></p>
<p><span style="font-size:12.0pt; color:black">Cheers,</span></p>
<div id="x_x_x_Signature">
<div>
<div>
<p class="x_x_MsoNormal"><span style="font-size:10.0pt; color:black">Ernest Williams
<br>
Dept. Head, Advanced Control Systems<br>
Advanced Instrumentation Research, Technology Innovation Directorate<br>
SLAC National Laboratory, Stanford University</span></p>
</div>
</div>
</div>
<p class="x_x_MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:12.0pt; color:black"> </span></p>
<div>
<div class="x_x_MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt; color:black">
<hr size="2" width="98%" align="center">
</span></div>
<div id="x_x_x_divRplyFwdMsg">
<p class="x_x_MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> Lerftest-ctrls <lerftest-ctrls-bounces@jlab.org> on behalf of Sonya Hoobler <sonya@slac.stanford.edu><br>
<b>Sent:</b> Thursday, May 17, 2018 2:24 PM<br>
<b>To:</b> lerftest-ctrls@jlab.org<br>
<b>Subject:</b> [Lerftest-ctrls] linxuRT CPU system time</span><span style="font-size:12.0pt; color:black">
</span></p>
<div>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
</div>
<div>
<div>
<p class="x_x_MsoNormal"><span style="color:black">Hi Hugo,<br>
<br>
I see commonSetup.sh sets the time zone to SLAC time:<br>
<br>
export TZ=PST8PDT<br>
<br>
How do we want to handle this?<br>
<br>
And actually, the linuxRT CPU system time is 8 hours ahead:<br>
<br>
#date<br>
Thu May 17 22:19:05 PDT 2018<br>
<br>
so that is odd.<br>
<br>
Thanks,<br>
Sonya<br>
<br>
<br>
_______________________________________________<br>
Mailing List: Lerftest-ctrls@jlab.org<br>
<a href="https://mailman.jlab.org/mailman/listinfo/lerftest-ctrls" id="LPlnk760099" class="x_OWAAutoLink" previewremoved="true">https://mailman.jlab.org/mailman/listinfo/lerftest-ctrls</a><br>
Wiki: <a href="https://wiki.jlab.org/lerf/index.php/Network" id="LPlnk853352" class="x_OWAAutoLink" previewremoved="true">
https://wiki.jlab.org/lerf/index.php/Network</a></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>