All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Jeroen Van den Keybus <jeroen.vandenkeybus@domain.hid>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Page faults
Date: Tue, 28 Feb 2006 17:29:40 +0100	[thread overview]
Message-ID: <44047A74.9040106@domain.hid> (raw)
In-Reply-To: <fd6a47a90602280729xb39e0f4l@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 1423 bytes --]

Jeroen Van den Keybus wrote:
>> Maybe not all of your user memory is cleanly locked and got swapped out
>> (swapping activated?). If you don't see kernel oopses and your programs
>> don't receive segfaults, these faults are references to swapped out or
>> not yet mapped in pages. BTW, what does the kernel console tell you?
> 
> 
> I have a mlockall(MCL_CURRENT | MCL_FUTURE) in my main() (non-RT) task
> alright. Do I need to repeat that for the real-time tasks as well ?

You should not have to. I observed some cases where malloc'ed memory was
not immediately available, and you had to touch it first. I guess this
depends on how glibc requests the memory. So, if unsure, do an memset on
freshly allocated memory.

> 
> I'm quite certain that my kernel is configured for swapping. I did not see
> any harm in it, as a mlockall() was given. Should I try turning it off (if
> so, where) ?

Swapping does not do any harm, correct. I just wanted to check what may
trigger the problem.

> 
> I do not see 'oopses' and the dmesg log is clean, apart from one
> incidental spurious IRQ7 interrupt. Is 'dmesg' what you mean by 'kernel
> console' ?
> 

Ah, I oversaw some dependency. Try to enable CONFIG_XENO_OPT_DEBUG. Then
the nucleus should spit out which task is being relaxed due to faults:

"Switching XYZ to secondary mode after exception #? from user-space at
0x??? (pid ?)"

Jan



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

  reply	other threads:[~2006-02-28 16:29 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-28 14:22 [Xenomai-help] Page faults Jeroen Van den Keybus
2006-02-28 15:05 ` Jan Kiszka
2006-02-28 15:29   ` Jeroen Van den Keybus
2006-02-28 16:29     ` Jan Kiszka [this message]
2006-02-28 16:31 ` Philippe Gerum
2006-02-28 17:08   ` Jeroen Van den Keybus
  -- strict thread matches above, loose matches on Subject: below --
2007-04-16 19:49 [Xenomai-help] page faults Jeff Weber
2007-04-16 20:05 ` Philippe Gerum
2007-04-16 20:20   ` Jeff Weber
2007-04-16 20:43     ` Gilles Chanteperdrix
2007-04-16 21:27       ` Jeff Weber
2007-04-16 21:34         ` Gilles Chanteperdrix
2007-04-17 13:21           ` Jeff Weber
2007-04-17 19:17             ` Gilles Chanteperdrix
2007-04-17 20:59               ` Jeff Weber
2007-04-20 16:43               ` Jeff Weber
2007-04-20 17:24                 ` Philippe Gerum

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=44047A74.9040106@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=jeroen.vandenkeybus@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.