From: Philippe Gerum <rpm@xenomai.org>
To: Brandon Ho <brandonho667@gmail.com>
Cc: xenomai@lists.linux.dev, Brandon Ho <brho@relativityspace.com>,
Jay Sridharan <jsridharan@relativityspace.com>
Subject: Re: Minor page faults from memory compaction causing in-band transitions
Date: Fri, 03 Apr 2026 14:55:52 +0200 [thread overview]
Message-ID: <87v7e8yzhj.fsf@xenomai.org> (raw)
In-Reply-To: <20260331231457.141480-1-brho@relativityspace.com> (Brandon Ho's message of "Tue, 31 Mar 2026 16:14:47 -0700")
Brandon Ho <brandonho667@gmail.com> writes:
> Hi Xenomai team,
>
> I'm working on a real-time control application using Xenomai and we've been
> experiencing unexpected in-band transitions caused by minor page faults during
> kernel memory compaction. Even though our RT threads use mlockall(MCL_CURRENT |
> MCL_FUTURE) and we've pre-faulted memory, the kernel's compaction process seems
> to temporarily invalidate PTEs on our locked pages, causing faults when the RT
> thread accesses them.
>
> Has this issue come up before?
Yes, this is a known issue.
> I'm wondering if there's a mechanism to reserve
> a section of RAM that's excluded from compaction/migration entirely,
> or if
Not to my knowledge.
> there are kernel/Xenomai configurations we should be using to prevent this.
>
> Any guidance would be appreciated!
>
As Jan mentioned, the only way is to disable all options which select
CONFIG_COMPACTION ATM.
--
Philippe.
next prev parent reply other threads:[~2026-04-03 12:56 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-31 23:14 Minor page faults from memory compaction causing in-band transitions Brandon Ho
2026-04-02 21:23 ` Jan Kiszka
2026-04-03 12:55 ` Philippe Gerum [this message]
2026-04-13 18:19 ` Brandon Ho
2026-04-13 18:31 ` Philippe Gerum
[not found] ` <CY1P110MB0760484C0708C37BA89D5A02D624A@CY1P110MB0760.NAMP110.PROD.OUTLOOK.COM>
2026-04-14 7:05 ` Philippe Gerum
2026-04-14 7:37 ` Florian Bezdeka
2026-04-14 7:42 ` Philippe Gerum
2026-04-14 7:52 ` Philippe Gerum
-- strict thread matches above, loose matches on Subject: below --
2026-05-04 17:52 Jay Sridharan
2026-05-06 7:40 ` Philippe Gerum
2026-04-13 19:45 Jay Sridharan
2026-03-31 22:52 Brandon Ho
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=87v7e8yzhj.fsf@xenomai.org \
--to=rpm@xenomai.org \
--cc=brandonho667@gmail.com \
--cc=brho@relativityspace.com \
--cc=jsridharan@relativityspace.com \
--cc=xenomai@lists.linux.dev \
/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.