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  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: Channel Access performance with RTEMS on MVME5500
From: Heinz Junkes via Tech-talk <tech-talk at aps.anl.gov>
To: "Wells, Alex (DLSLtd,RAL,LSCI)" <alex.wells at diamond.ac.uk>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Thu, 20 Mar 2025 14:30:28 +0100
Hello Alex,
the ‘USE_POSIX_THREAD_PRIORITY_SCHEDULING = NO’' is an EPICS thing.
I don't know exactly what this does as I have never used it with RTEMS.
I think that cancels out the whole point of a priority-based system ;-)

All your jobs have a very low priority 253 (in RTEMS) and priority 2 in Posix.

Based on my gut feeling, I would recommend setting back to USE_POSIX_THREAD_PRIORITY_SCHEDULING=YES and then
in rtems_init for POSIX_Init() to set the priority high. You can use the code element I sent to you in the last tech-talk-reply.
Then all the interrupt handlers will also get a high priority and I assume that the crashes will also go away.

Would you like to try that?

Good luck,
Heinz



> On 20. Mar 2025, at 12:50, Wells, Alex (DLSLtd,RAL,LSCI) <alex.wells at diamond.ac.uk> wrote:
>
> Hi Heinz,
>
> Thank you for the information. There's definitely something fishy going on with the thread priorities somewhere; it seems that everything is being started with the same priority.
>
> I will also note that we are building RTEMS with "USE_POSIX_THREAD_PRIORITY_SCHEDULING = NO". This appears to be required, as we use EPICS Mutexes in an interrupt context, and if we leave this set to "YES" we see a crashes. Could this be related to the oddities below?


Attachment: smime.p7s
Description: S/MIME cryptographic signature


Replies:
Re: [EXTERNAL] Re: Channel Access performance with RTEMS on MVME5500 Kasemir, Kay via Tech-talk
References:
Channel Access performance with RTEMS on MVME5500 Wells, Alex (DLSLtd,RAL,LSCI) via Tech-talk
Re: Channel Access performance with RTEMS on MVME5500 Michael Davidsaver via Tech-talk
Re: Channel Access performance with RTEMS on MVME5500 Wells, Alex (DLSLtd,RAL,LSCI) via Tech-talk
Re: Channel Access performance with RTEMS on MVME5500 Heinz Junkes via Tech-talk
Re: Channel Access performance with RTEMS on MVME5500 Wells, Alex (DLSLtd,RAL,LSCI) via Tech-talk

Navigate by Date:
Prev: Re: Thermo Fischer FHT 6020 Radiation Monitor Chandler, Brendan via Tech-talk
Next: Re: [EXTERNAL] Re: Channel Access performance with RTEMS on MVME5500 Kasemir, Kay 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: Re: Channel Access performance with RTEMS on MVME5500 Wells, Alex (DLSLtd,RAL,LSCI) via Tech-talk
Next: Re: [EXTERNAL] Re: Channel Access performance with RTEMS on MVME5500 Kasemir, Kay 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