EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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  <20222023  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  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Timing in seq record
From: Andrew Johnson via Tech-talk <tech-talk at aps.anl.gov>
To: Michael Davidsaver <mdavidsaver at gmail.com>, Mark Rivers <rivers at cars.uchicago.edu>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Thu, 3 Mar 2022 10:26:19 -0600
On 3/3/22 9:56 AM, Michael Davidsaver wrote:
On 3/3/22 05:21, Mark Rivers via Tech-talk wrote:
I believe Freddie is correct in his more recent message:

There were timers waking up early, but also half a quantum being subtracted from the time value asked for, I think to give a good average wakeup time for systems when wakeup is on boundaries of the quantum. I see that this subtraction still happens

This looks like a problem of quantum/2 subtraction.

I agree that this arbitrary shortening is a ~bug, but it is worth remembering
that my attempt at removing this it caused a problem for you (Mark) on vxworks.

https://bugs.launchpad.net/epics-base/+bug/1861612/comments/12

There are some known problems with using epicsTimer for precise, short, delays.

One thing Mark could try would be to set the sleep quantum to 0 on Linux. I've not looked at the code for ages so I don't know if it will cause other problems (please do a 'make runtests' after changing it to look for possible issues).

- Andrew

-- 
Complexity comes for free, Simplicity you have to work for.

References:
Timing in seq record Mark Rivers via Tech-talk
RE: Timing in seq record Mark Rivers via Tech-talk
Re: Timing in seq record Mark Rivers via Tech-talk
Re: Timing in seq record Johnson, Andrew N. via Tech-talk
Re: Timing in seq record Mark Rivers via Tech-talk
Re: Timing in seq record Michael Davidsaver via Tech-talk

Navigate by Date:
Prev: Possible bug??? in dbReadDatabaseFP Dudley, David via Tech-talk
Next: Re: Possible bug??? in dbReadDatabaseFP Michael Davidsaver via Tech-talk
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  <20222023  2024 
Navigate by Thread:
Prev: Re: Timing in seq record Michael Davidsaver via Tech-talk
Next: StreamDevice 刘晓敏 via Tech-talk
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  <20222023  2024 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·