EPICS Home

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  2025  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  2025 
<== Date ==> <== Thread ==>

Subject: Re: odd ASYN behavior
From: Ralph Lange via Tech-talk <tech-talk at aps.anl.gov>
To: EPICS Tech Talk <tech-talk at aps.anl.gov>
Date: Fri, 18 Mar 2022 22:54:51 +0100
On Fri, 18 Mar 2022 at 22:11, Mark Rivers via Tech-talk <tech-talk at aps.anl.gov> wrote:
The problem was that the EPICS callback queue was overflowing.  John was getting a lot of these errors:
    callbackRequest: cbLow ring buffer full

By adding this command just before iocInit() the problem was fixed:
    callbackSetQueueSize(10000)

This is normally not needed if the IOC is controlling a single TetrAMM.   However, John is controlling several TetrAMM devices from the same IOC, and that led to more callbacks than the default queue size could handle.

Please also consider setting
    callbackParallelThreads    

to enable multiple concurrent threads to be working on the callback queues. Making the callback queue larger is one way, having the IOC process the callbacks faster is another way to cope with high traffic situations.
See the AppDevGuide for more details [1].

There are iocShell commands to show statistics on queue usage to allow for checking as well as proper and safe queue size configuration. The iocStats module [2] can be used for continuous monitoring of queue status.

Cheers,
~Ralph

[1] https://epics.anl.gov/base/R3-16/1-docs/AppDevGuide/EPICSGeneralPurposeTasks.html#x17-69800016.2.5
[2] https://github.com/epics-modules/iocStats



Replies:
Re: odd ASYN behavior Mark Rivers via Tech-talk
References:
odd ASYN behavior Runchey, John via Tech-talk
Re: odd ASYN behavior Mark Rivers via Tech-talk
Re: odd ASYN behavior Mark Rivers via Tech-talk
Re: odd ASYN behavior Runchey, John via Tech-talk
Re: odd ASYN behavior Mark Rivers via Tech-talk

Navigate by Date:
Prev: Re: odd ASYN behavior Mark Rivers via Tech-talk
Next: Re: odd ASYN behavior Mark Rivers 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  2025 
Navigate by Thread:
Prev: Re: odd ASYN behavior Mark Rivers via Tech-talk
Next: Re: odd ASYN behavior Mark Rivers 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  2025