All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Shared memory between a Xenomai user task and a standard Linux process?
@ 2010-08-02  2:06 Bob Feretich
  2010-08-02  5:42 ` Philippe Gerum
  0 siblings, 1 reply; 7+ messages in thread
From: Bob Feretich @ 2010-08-02  2:06 UTC (permalink / raw)
  To: xenomai

  I understand that a RT_PIPE is the preferred way to move data between 
a rt user task and a standard Linux process, but I have a large amount 
of data to move per second and I would like to minimize the number of 
times that the data is copied.

My rt user task performs several tasks that need to be time 
deterministic. I also want to store a history of its activity in a 
standard Linux file. Adequate buffering is available so that the file 
writing and management does not need to be done in real time.

Ideally, I would like to share a block of memory (~128KB) between the rt 
user task and a standard Linux process which performs the file activities.

The documentation indicates that many API calls are available to "user 
tasks", but I assume that unless "Linux process" is explicitly mentioned 
(as in the case of "pipe") these references apply only to rt user tasks. 
Am I correct?

Is there a shared memory mechanism that works between a rt user task and 
a standard Linux process?

Is there a way to operate a RT_PIPE in a zero copy mode? That is, the rt 
user task constructs the message in the in the same buffer that is made 
accessible a standard Linux process to perform a fwrite() from it.

Also, what what exactly does the poolsize parameter of pipe_create 
module do?
I assume that it is specified in units of bytes. My message size is 16KB 
and a message will be sent about every 140 milliseconds. I expect that 
no more than 2 or 3 messages will queue up before the "standard Linux 
process" can consume them, but for safety I want to allow for 8 (128KB). 
Will a poolsize of 128KB sufice or is the pool also consumed by other 
invisible things too?

Regards,
Bob Feretich


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

end of thread, other threads:[~2010-08-02 21:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-02  2:06 [Xenomai-help] Shared memory between a Xenomai user task and a standard Linux process? Bob Feretich
2010-08-02  5:42 ` Philippe Gerum
2010-08-02  6:01   ` Gilles Chanteperdrix
2010-08-02 17:38     ` Philippe Gerum
2010-08-02 17:56       ` Gilles Chanteperdrix
2010-08-02 20:52         ` Bob Feretich
2010-08-02 21:52           ` Gilles Chanteperdrix

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.