Experimental Physics and Industrial Control System
|
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.
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
|
- 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
<2011>
2012
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
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|
ANJ, 18 Nov 2013 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|