From: Bob Feretich <bob.feretich@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] Shared memory between a Xenomai user task and a standard Linux process?
Date: Sun, 01 Aug 2010 19:06:48 -0700 [thread overview]
Message-ID: <4C562838.8050000@domain.hid> (raw)
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
next reply other threads:[~2010-08-02 2:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-02 2:06 Bob Feretich [this message]
2010-08-02 5:42 ` [Xenomai-help] Shared memory between a Xenomai user task and a standard Linux process? 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C562838.8050000@domain.hid \
--to=bob.feretich@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.