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

Subject: Re: Areadetector Plugin Enable/Disable Issue and Design Question
From: Ralph Lange via Tech-talk <tech-talk at aps.anl.gov>
To: EPICS Tech Talk <tech-talk at aps.anl.gov>
Date: Mon, 24 Mar 2025 09:13:24 +0100
On Mon, 24 Mar 2025 at 08:52, Blomley, Edmund (IBPT) via Tech-talk <tech-talk at aps.anl.gov> wrote:
For a second IOC instance with more cameras (14, but in this case only one
will ever be active at the same time) 5000 was not enough, but with a queue
size of around 15000 the callbeackRequest error disappeared.
What is the consequence of increasing the queue size? Would it be better to
split up the IOC into multiple IOCs with less cameras each?

Asyn (affecting AreaDetector as an Asyn-based driver) is handling the callbacks in a way that uses queue space up to 10 times the number of records. (See https://github.com/epics-modules/asyn/issues/170)
For ITER's PLC integration, we eventually used 150k as the queue size to be on the safe side. (On systems with virtual memory management, a few MB more is no show-stopper.)
Independent of that, another (probably separate) Asyn issue doesn't allow using parallel callback threads with Asyn drivers. If you enable them, you will see performance going down instead of up. (IMHO, feels like a locking issue.)

Each queue element takes a few bytes (~32 bytes x 3 queues), that's about all that there is as a side effect. On recent Base versions, you can use the watermark queue stats mechanism - available through the iocShell and iocStats - to see how much of the queues have actually been used.

Cheers,
~Ralph


References:
Areadetector Plugin Enable/Disable Issue and Design Question Blomley, Edmund (IBPT) via Tech-talk
Re: Areadetector Plugin Enable/Disable Issue and Design Question Mark Rivers via Tech-talk
AW: Areadetector Plugin Enable/Disable Issue and Design Question Blomley, Edmund (IBPT) via Tech-talk
RE: Areadetector Plugin Enable/Disable Issue and Design Question Mark Rivers via Tech-talk
AW: Areadetector Plugin Enable/Disable Issue and Design Question Blomley, Edmund (IBPT) via Tech-talk
Re: Areadetector Plugin Enable/Disable Issue and Design Question Mark Rivers via Tech-talk
AW: Areadetector Plugin Enable/Disable Issue and Design Question Blomley, Edmund (IBPT) via Tech-talk

Navigate by Date:
Prev: AW: Areadetector Plugin Enable/Disable Issue and Design Question Blomley, Edmund (IBPT) via Tech-talk
Next: How to add KeySight Laser interferometer to EPICS l123173 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  2022  2023  2024  <2025
Navigate by Thread:
Prev: AW: Areadetector Plugin Enable/Disable Issue and Design Question Blomley, Edmund (IBPT) via Tech-talk
Next: RE: Areadetector Plugin Enable/Disable Issue and Design Question Pearson, Matthew 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  2022  2023  2024  <2025
ANJ, 24 Mar 2025 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·