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 overflow issue |
From: | "Zhang, Tong via Tech-talk" <tech-talk at aps.anl.gov> |
To: | Ralph Lange <ralph.lange at gmx.de> |
Cc: | EPICS Tech Talk <tech-talk at aps.anl.gov> |
Date: | Thu, 11 Aug 2022 20:23:14 +0000 |
Hi Ralph, It works great, thanks for the help! The issue was gone after I set it as 5000, though I don’t know what is the optimal setting. The version of the deployed EPICS base is 3.15.9. Does it support checking the queue size through some command in the IOC shell? And How? Thanks, Tong From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of
Ralph Lange via Tech-talk [EXTERNAL] This email originated from outside of FRIB
On Thu, 11 Aug 2022 at 15:39, Zhang, Tong via Tech-talk <tech-talk at aps.anl.gov> wrote:
My guess: as all records that have PINI=YES are put in the internal queue for records that need to be processed once when the IOC boots, the default queue size of 1000 is too small for your IOC. Use the command scanOnceSetQueueSize from your startup script (needs to be done before calling
iocInit) to set the queue size to a larger value. (See "SetQueueSize" in the AppDevGuide.) Recent versions of EPICS also have a high water mark mechanism for the internal queues. Looking at those values (from the iocShell or via iocStats) can give you an idea of how large the queues need to be. Splitting the IOC would also help, obviously. But 20k is probably fine. We have been running IOCs with >100k records without issues. (But the queue sizes are certainly increased accordingly.) The number is only one of the parameters... what kind of records, how much driver code is executing, how much IO is being done, how many calculations... the load depends on the combination. Cheers, |