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: Scan rate '.01 second' not achievable |
From: | "Barrett \(US\), Patrick E via Tech-talk" <tech-talk at aps.anl.gov> |
To: | "erico.rolim at lnls.br" <erico.rolim at lnls.br>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Fri, 6 Jan 2023 15:07:38 +0000 |
We are using EPICS 3.15.9. From: Érico Nogueira Rolim <erico.rolim at lnls.br>
On 06/01/2023 11:18, Barrett (US), Patrick E via Tech-talk wrote:
Hi! Apologies for the double email, Patrick, I had initially responded only to you instead of to the list. What version of EPICS are you using? I'm looking at EPICS 7, and from what I can see, it uses the following heuristic: number = ppsl->period / quantum; where quantum is determined by epicsThreadSleepQuantum(). On Linux, that function uses essentially '1.0 / sysconf ( _SC_CLK_TCK )'. The sysconf value is usually 100 (Hz), and it would explain why EPICS thinks it won't achieve the desired scan rate. I don't think a modern kernel will actually be limited by its tick
rate, so I don't know how accurate that heuristic is. Either way, the 'period' value isn't touched after this verification, so I think the IOC will still attempt to use it. You could try running a simple counter in your SCAN and checking with camonitor if the 100Hz rate is actually achieved. I think scanppl() might have trouble detecting overruns with a period of 0.01, though: if (period > 0.0 && By the way, epicsThreadSleepQuantum() can return 0.0 if the sysconf errors out, which I believe would result in a SIGFPE in initPeriodic() when dividing by quantum.
Aviso Legal: Esta mensagem e seus anexos podem conter informações confidenciais e/ou de uso restrito. Observe atentamente seu conteúdo e considere eventual consulta ao remetente antes
de copiá-la, divulgá-la ou distribuí-la. Se você recebeu esta mensagem por engano, por favor avise o remetente e apague-a imediatamente. Disclaimer: This email and its attachments may contain confidential and/or privileged information. Observe its content carefully and consider possible querying to the sender before
copying, disclosing or distributing it. If you have received this email by mistake, please notify the sender and delete it immediately. |