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  <20112012  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  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: epicsMessageQueue Linux PREEMPT_RT
From: Eric Norum <[email protected]>
To: <[email protected]>
Cc: [email protected]
Date: Fri, 28 Jan 2011 08:37:33 -0800
Hmm...
I see that my name is on the code in osi/os/default/osdMessageQueue.cpp but I don't think that I actually wrote it.  I would have expected that all allocation would be done at message queue initialization -- I agree that allocating at run-time is a poor idea.

On Jan 28, 2011, at 8:16 AM, <[email protected]> wrote:

Hi Andrew

The PREEMPT_RT patch makes the kernel fully pre-emptive (leading to
improved maximum latency) and adds support for priority inheritance
mutexes. There are no user space API changes, the code to use
_POSIX_THREAD_PRIORITY_SCHEDULING and _POSIX_THREAD_PRIO_INHERIT is
already in libCom (if disabled by default). I'd like to use the
epicsMessageQueue from a high priority thread but the send and receive
functions may calloc an eventNode, and that might cause a page fault or
block my thread on the malloc lock. I'd like to be able to pre-allocate
the eventNodes because I know the maximum number of threads that may
wait on the queue in advance.

James


-- 
Eric Norum
[email protected]


Replies:
Re: epicsMessageQueue Linux PREEMPT_RT Till Straumann
References:
epicsMessageQueue Linux PREEMPT_RT james.rowland
Re: epicsMessageQueue Linux PREEMPT_RT Andrew Johnson
RE: epicsMessageQueue Linux PREEMPT_RT james.rowland

Navigate by Date:
Prev: Re: OMS VS4 "omsPut: card 0 send ring full!" Nerses Gevorgyan
Next: ca_create_channel memory management pthomas
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: epicsMessageQueue Linux PREEMPT_RT james.rowland
Next: Re: epicsMessageQueue Linux PREEMPT_RT Till Straumann
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·