From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Henri Roosen <henriroosen@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Pagefaults during mlocked Realtime task
Date: Tue, 28 Jul 2009 14:20:01 +0200 [thread overview]
Message-ID: <4A6EECF1.9000103@domain.hid> (raw)
In-Reply-To: <b88603c30907280509u685a18di730cc0b021ab06eb@domain.hid>
Henri Roosen wrote:
> Hi everyone,
>
> I have a basic Xenomai realtime user task which does a read call to a
> basic RTDM driver. The problem is that the realtime task is generating
> pagefaults when the system is under heavy network load even while the
> current and future memory is locked with mlockall(MCL_CURRENT |
> MCL_FUTURE);. There should also be enough free memory.
>
> Both the MSW and PF go up when showing the stat. So the realtime task
> switches to the secondary domain causing long latencies which we don't
> want.
>
> (Aside from that I just want to mention that when we generate the high
> load on the usb-gadget ethernet interface (g_ether), the realtime task
> even gets defunct or generates a segfault. I first want to understand
> the pagefaults when using the normal ethernet interface, which might
> then later explain the things we are seeing using the usb-gadget
> interface.)
>
> I used the sigxcpu.c example to try to find the root of the
> pagefaults, but that only provides me one address which seems to be on
> the [stack] according to the process maps. Running the app in the
> debugger halts when the signal triggers and the call stack shows it is
> at <rt_dev_read+60>: pop {r4, r7, pc}
> I cannot really find anything in our driver code (rt_dev_read) or
> realtime app that would generate these pagefaults.
>
> Any help to explain and get rid of the pagefaults is very welcome!
>
> I am currently running a 2.6.28 linux kernel and Xenomai version 2.4.8
> on an ARM926EJ-S (at91sam9263ek) processor, using the EABI and
> -msoft-float cross compiled with CodeSourcery 2007q3.
Do you have the same behaviour while running the Xenomai latency test.
If not, without seeing your code, there is not much we can tell. One
thing to look for, however is the unaligned accesses. Also, do you have
FCSE enabled?
--
Gilles
next prev parent reply other threads:[~2009-07-28 12:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-28 12:09 [Xenomai-help] Pagefaults during mlocked Realtime task Henri Roosen
2009-07-28 12:20 ` Gilles Chanteperdrix [this message]
2009-08-17 12:37 ` Henri Roosen
2009-08-17 12:42 ` Gilles Chanteperdrix
2009-08-17 12:47 ` Gilles Chanteperdrix
2009-08-17 13:40 ` Henri Roosen
2009-08-17 13:44 ` Gilles Chanteperdrix
2009-08-17 22:55 ` 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=4A6EECF1.9000103@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=henriroosen@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.