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

Subject: Re: Usage of an EPICS word
From: Ralph Lange via Tech-talk <tech-talk at aps.anl.gov>
To: EPICS Tech Talk <tech-talk at aps.anl.gov>
Date: Mon, 29 Mar 2021 09:38:37 +0200
So, coming back to what (I think) was the original question:
How to change the priority of the general purpose callback threads (named "cb...") to be higher than a periodic scanning thread?

You don't have to. Use the PRIO field.
There are three (sets of) general purpose callback threads, related to the three values of the records' PRIO field: Low, Medium and High.
Their priorities are designed to be lower than all periodic processing (Low), halfway between the slow and the fast periodic processing (Medium) and higher than all period processing (High). For each record, the thread used for callback processing is selected based on the setting of its PRIO field.
On multi-CPU systems, you can also enable multiple parallel callback threads (e.g., one per CPU) to boost the callback and 'I/O Intr' processing power of your IOC.

Only if these mechanisms show not being sufficient for your application, additional steps need to be taken. In most cases, I would assume further parallelization (splitting up the application to multiple IOCs, adding more CPU power) to be more efficient than tuning priorities.

Cheers,
~Ralph


Replies:
Re: Usage of an EPICS word jun-ichi.odagiri--- via Tech-talk
References:
Usage of an EPICS word jun-ichi.odagiri--- via Tech-talk
Re: Usage of an EPICS word Mark Rivers via Tech-talk

Navigate by Date:
Prev: RE: Phoebus lock down BOB Stainer Tom via Tech-talk
Next: CS-Studio Databrowser historical data display Vishnu Patel 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  <20212022  2023  2024 
Navigate by Thread:
Prev: Re: Usage of an EPICS word jun-ichi.odagiri--- via Tech-talk
Next: Re: Usage of an EPICS word jun-ichi.odagiri--- 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  <20212022  2023  2024 
ANJ, 29 Mar 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·