linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* The best queue for RT_PREEMPT
@ 2008-04-04 18:49 Mauricio A. Araya L�pez
  2008-04-04 19:08 ` Remy Bohmer
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Mauricio A. Araya L�pez @ 2008-04-04 18:49 UTC (permalink / raw)
  To: linux-rt-users

Hi again,

I have some experience working on RTAI, and I am trying to do
something similar to a RT_FIFO. Which is the best method to have 
a FIFO queue between a real-time process and a non real-time process.
Maybe a pipe is enough, or msgget, or directly have a shared memory space,
etc... Any comment will be very welcome!

Thanks!

-- 
Mauricio Araya L. 
ACS-UTFSM Team Leader, cel: 0-81564903
Est. Magister en Ciencias de la Informatica UTFSM, Valparaiso, Chile
counter.li.org: #249395, http://www.inf.utfsm.cl/~maray 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: The best queue for RT_PREEMPT
  2008-04-04 18:49 The best queue for RT_PREEMPT Mauricio A. Araya L�pez
@ 2008-04-04 19:08 ` Remy Bohmer
  2008-04-04 19:09 ` Robert Schwebel
  2008-04-04 20:40 ` K.R. Foley
  2 siblings, 0 replies; 4+ messages in thread
From: Remy Bohmer @ 2008-04-04 19:08 UTC (permalink / raw)
  To: Mauricio A. Araya López; +Cc: linux-rt-users

Hello,

I used a plain socket on localhost.
This works properly in our application, with little overhead, and does
not generate page-faults during RT-showtime.

Remy

2008/4/4, Mauricio A. Araya López <maray@inf.utfsm.cl>:
> Hi again,
>
>  I have some experience working on RTAI, and I am trying to do
>  something similar to a RT_FIFO. Which is the best method to have
>  a FIFO queue between a real-time process and a non real-time process.
>  Maybe a pipe is enough, or msgget, or directly have a shared memory space,
>  etc... Any comment will be very welcome!
>
>  Thanks!
>
>  --
>  Mauricio Araya L.
>  ACS-UTFSM Team Leader, cel: 0-81564903
>  Est. Magister en Ciencias de la Informatica UTFSM, Valparaiso, Chile
>  counter.li.org: #249395, http://www.inf.utfsm.cl/~maray
>
> --
>  To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
>  the body of a message to majordomo@vger.kernel.org
>  More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: The best queue for RT_PREEMPT
  2008-04-04 18:49 The best queue for RT_PREEMPT Mauricio A. Araya L�pez
  2008-04-04 19:08 ` Remy Bohmer
@ 2008-04-04 19:09 ` Robert Schwebel
  2008-04-04 20:40 ` K.R. Foley
  2 siblings, 0 replies; 4+ messages in thread
From: Robert Schwebel @ 2008-04-04 19:09 UTC (permalink / raw)
  To: Mauricio A. Araya L?pez; +Cc: linux-rt-users

On Fri, Apr 04, 2008 at 02:49:41PM -0400, Mauricio A. Araya L?pez wrote:
> I have some experience working on RTAI, and I am trying to do
> something similar to a RT_FIFO. Which is the best method to have a
> FIFO queue between a real-time process and a non real-time process.
> Maybe a pipe is enough, or msgget, or directly have a shared memory
> space, etc... Any comment will be very welcome!

If your communication is message oriented, you can use POSIX Message
Queues. However, you can surely also use any other kind of other method,
as long as you don't lock shared ressources for too long.

Robert
-- 
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
     Hannoversche Str. 2, 31134 Hildesheim, Germany
   Phone: +49-5121-206917-0 |  Fax: +49-5121-206917-9


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: The best queue for RT_PREEMPT
  2008-04-04 18:49 The best queue for RT_PREEMPT Mauricio A. Araya L�pez
  2008-04-04 19:08 ` Remy Bohmer
  2008-04-04 19:09 ` Robert Schwebel
@ 2008-04-04 20:40 ` K.R. Foley
  2 siblings, 0 replies; 4+ messages in thread
From: K.R. Foley @ 2008-04-04 20:40 UTC (permalink / raw)
  To: Mauricio �; +Cc: linux-rt-users

Mauricio � wrote:
> Hi again,
> 
> I have some experience working on RTAI, and I am trying to do
> something similar to a RT_FIFO. Which is the best method to have 
> a FIFO queue between a real-time process and a non real-time process.
> Maybe a pipe is enough, or msgget, or directly have a shared memory space,
> etc... Any comment will be very welcome!
> 
> Thanks!
> 

Why not use a FIFO implemented as a circular buffer in shared memory?

-- 
    kr
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-04-04 20:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-04 18:49 The best queue for RT_PREEMPT Mauricio A. Araya L�pez
2008-04-04 19:08 ` Remy Bohmer
2008-04-04 19:09 ` Robert Schwebel
2008-04-04 20:40 ` K.R. Foley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).