From: Jeff Weber <jweber@domain.hid>
To: rpm@xenomai.org
Cc: Xenomai help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] isolating unwanted mode switch
Date: Thu, 25 Jan 2007 11:04:50 -0600 [thread overview]
Message-ID: <200701251104.50567.jweber@domain.hid> (raw)
In-Reply-To: <1169722218.5028.21.camel@domain.hid>
A correction to my previous post on this problem: the memory in question was
previously allocated heap, that was apparently not yet paged in. The pointer
to the memory was in bss, so, at the time, I assumed the page fault memory
was in bss as well. I have a "solution" which is working for now, to write
(zero out) dynamically allocated memory before first use. (The dynamic
allocation is after the mlockall() ).
My application is a legacy C++ program, which has an initialization phase:
where all RT tasks are created and all memory is allocated; and a run phase:
where the task T_WARNSW mode is enabled, to report unwanted modes switches.
I am in the process of porting this application from Linux-2.4.27+rtai-3.1.0
to Linux-2.6.17.14+Xenomai-2.2.4. (As a side note, it has now become
interesting to consider how and if page faults were affectinging the
Linux-2.4+RTAI version of this application.)
From the discussions in this thread, there will always be a non-zero
probability that my application will still encounter future page faults. So
I've decided to enable T_WARNSW for the applicaion while under development,
but T_WARNSW will not be enabled for deployed applications. Instead, I may
periodically parse /proc/xenomai/faults, and /proc/xenomai/stat .
Jeff
On Thursday 25 January 2007 04:50, Philippe Gerum wrote:
> Gilles is working on a patch that solves a number of on-demand mapping
> issues initially observed on ARM and ppc, but generic enough to affect
> other archs; I'll merge it into the I-pipe 1.7 series for x86 in a near
> future.
prev parent reply other threads:[~2007-01-25 17:04 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-23 20:48 [Xenomai-help] isolating unwanted mode switch Jeff Weber
2007-01-23 21:45 ` Dmitry Adamushko
2007-01-23 22:27 ` Jeff Weber
2007-01-24 10:08 ` Dmitry Adamushko
2007-01-24 11:22 ` [Xenomai-help] Patching latest Denx 2.4.25-devel kernel with xenomai-2.3.0 fails Daniel Schnell
2007-01-24 14:44 ` Wolfgang Grandegger
2007-01-24 17:04 ` Daniel Schnell
2007-01-24 21:33 ` Wolfgang Grandegger
2007-01-25 7:14 ` Wolfgang Grandegger
2007-01-25 9:03 ` Daniel Schnell
2007-01-25 9:38 ` Wolfgang Grandegger
2007-01-29 15:36 ` Philippe Gerum
2007-01-24 17:52 ` [Xenomai-help] isolating unwanted mode switch Jeff Weber
2007-01-24 18:55 ` Eric Noulard
2007-01-25 7:30 ` M. Koehrer
2007-01-25 8:24 ` Eric Noulard
2007-01-25 10:50 ` Philippe Gerum
2007-01-25 17:04 ` Jeff Weber [this message]
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=200701251104.50567.jweber@domain.hid \
--to=jweber@domain.hid \
--cc=rpm@xenomai.org \
--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.