All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Florian Bezdeka <florian.bezdeka@siemens.com>
Cc: Brandon Ho <brandonho667@gmail.com>,
	 brho@relativityspace.com, jsridharan@relativityspace.com,
	 xenomai@lists.linux.dev,  Jan Kiszka <jan.kiszka@siemens.com>
Subject: Re: Minor page faults from memory compaction causing in-band transitions
Date: Tue, 14 Apr 2026 09:52:08 +0200	[thread overview]
Message-ID: <87mrz6yo5z.fsf@xenomai.org> (raw)
In-Reply-To: <87se8yyomg.fsf@xenomai.org> (Philippe Gerum's message of "Tue, 14 Apr 2026 09:42:15 +0200")

Philippe Gerum <rpm@xenomai.org> writes:

> Florian Bezdeka <florian.bezdeka@siemens.com> writes:
>
>> On Mon, 2026-04-13 at 20:31 +0200, Philippe Gerum wrote:
>>> Brandon Ho <brandonho667@gmail.com> writes:
>>> 
>>> > Thank you for the responses! I recently came across the
>>> > `compact_unevictable_allowed` sysctl option and it seems like it could be a
>>> > good fit for our use case. Setting it to 0 would prevent the kernel from
>>> > compacting/migrating locked pages, which should eliminate the minor faults
>>> > we're seeing during compaction.
>>> > 
>>> > Could we possibly set `compact_unevictable_allowed=0` by default when
>>> > CONFIG_EVL is enabled?
>>> 
>>> Definitely, yes. Thanks for chasing this issue down. This patch is going
>>> to be merged upstream asap, you may want to apply it for a preview.
>>
>> Targeting linux-evl or linux-dovetail?
>>
>
> linux-dovetail, this is a general issue for any latency-sensitive code.

While reviewing all PREEMPT_RT exclusion cases in Kconfigs, some of
which Dovetail may want to share, I found this potential one:

--- a/init/Kconfig
+++ b/init/Kconfig
@@ -947,7 +947,7 @@ config NUMA_BALANCING
 	bool "Memory placement aware NUMA scheduler"
 	depends on ARCH_SUPPORTS_NUMA_BALANCING
 	depends on !ARCH_WANT_NUMA_VARIABLE_LOCALITY
-	depends on SMP && NUMA && MIGRATION && !PREEMPT_RT
+	depends on SMP && NUMA && MIGRATION && !PREEMPT_RT && !DOVETAIL

Any objection to disabling NUMA_BALANCING when operating in dual kernel
mode? (CONFIG_DOVETAIL=y).

-- 
Philippe.

  reply	other threads:[~2026-04-14  8:02 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
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 [this message]
  -- 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=87mrz6yo5z.fsf@xenomai.org \
    --to=rpm@xenomai.org \
    --cc=brandonho667@gmail.com \
    --cc=brho@relativityspace.com \
    --cc=florian.bezdeka@siemens.com \
    --cc=jan.kiszka@siemens.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.