1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 <2019> 2020 2021 2022 2023 2024 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 <2019> 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Change/Sync General Time Providers |
From: | "Johnson, Andrew N. via Tech-talk" <[email protected]> |
To: | "[email protected]" <[email protected]> |
Date: | Wed, 20 Mar 2019 23:14:54 +0000 |
Hi Kyle, On 3/20/19 9:52 AM, Kyle Hesse via Tech-talk wrote:
We have two IOCs, both mv2700s running EPICS r314123j0 that have OS Clock times in the future. Our NTP time is correct and it is set to a higher priority but is not syncing with the OS time. Is there a way to force synchronization of the two time providers at run-time? Or is there a way to forcibly set the current general time provider at run-time? Rebooting is an option, but I'm checking to see if there is a run-time solution. I've left some additional information below.Unfortunately back in 3.14.12.3 the generalTime code had a forwards-only ratchet in its time synchronization routine, so if your OS clock runs fast it could never adjust it backwards with time from a higher priority NTP provider, which is obviously a problem. The fix for that particular bug landed 2¼ years ago in 3.14.12.6. I can't promise that an upgrade will completely fix your problem, but if your CPU's tick timer runs fast you're always going to have issues with it until you do upgrade. In your case though your IOC isn't currently running the OS clock synchronization thread for some reason — did someone give it a "ClockTime_Shutdown" command? There is no way to restart that thread by hand so you'll have to reboot the IOC anyway, but you might want to investigate why it got stopped if you don't already know. HTH, - Andrew
-- Arguing for surveillance because you have nothing to hide is no different than making the claim, "I don't care about freedom of speech because I have nothing to say." -- Edward Snowdon |