Skip to contentSkip to conversation

Kernel CONFIG_MIGRATION flag

Xenomai Simone Zucchi 3 participants 4 messages Jul 11, 2017 – Jul 12, 2017

lore
Share & tools
lore
#0 lore raw

Hello everybody,
I hope I won't be considered a spammer because of 2 mails in half an hour :) I couldn't really find any doc about CONFIG_MIGRATION flag and how it could worsen latency over Xenomai.
I wanted to disable it, just to be sure, but I can't really work it out.
http://cateee.net/lkddb/web-lkddb/MIGRATION.html shows relative dependencies about it but even disabling all of them I can't disable it. Could I please attach my .config in this mailing list willing for help?

Thanks in advance,

Simone

#1 lore raw

Am Tue, 11 Jul 2017 14:50:15 +0000
schrieb Simone Zucchi <[email protected]>:

Quoted 4 lines

Hello everybody,
I hope I won't be considered a spammer because of 2 mails in half an hour :) I couldn't really find any doc about CONFIG_MIGRATION flag and how it could worsen latency over Xenomai.

Well if the linux-kernel is busy moving memory around, other load - like realtime threads - might have to wait for that to finish. I would not be too worried about it.

Quoted 5 lines

I wanted to disable it, just to be sure, but I can't really work it out. http://cateee.net/lkddb/web-lkddb/MIGRATION.html shows relative dependencies about it but even disabling all of them I can't disable it. Could I please attach my .config in this mailing list willing for help?

If you have a closer look you will also see
Selected by: COMPACTION [=y] && MMU [=y] || CMA [=n] && HAVE_MEMBLOCK [=y] && MMU [=y]
That information can be seen i.e. in "make menuconfig". From there find a way to break the chain that is pulling it in. I guess MMU should stay enabled, so COMPACTION and its "Selected by"s.

Henning

Quoted 7 lines

Thanks in advance,

Simone
_______________________________________________
Xenomai mailing list
[email protected]
https://xenomai.org/mailman/listinfo/xenomai

#2 lore raw

Well I've just managed to disable it. Seems the problem was TRANSPARENT_HUGEPAGE flag
which selected COMPACTION which selects MIGRATION. Great :) thanks
p.s. sorry for the double e-mail, didn't mean to be mean :<

Quoted 32 lines · Henning Schild

Am Tue, 11 Jul 2017 14:50:15 +0000
schrieb Simone Zucchi <[email protected]>:

Quoted 4 lines

Hello everybody,
I hope I won't be considered a spammer because of 2 mails in half an hour :) I couldn't really find any doc about CONFIG_MIGRATION flag and how it could worsen latency over Xenomai.

Well if the linux-kernel is busy moving memory around, other load - like realtime threads - might have to wait for that to finish. I would not be too worried about it.

Quoted 5 lines

I wanted to disable it, just to be sure, but I can't really work it out. http://cateee.net/lkddb/web-lkddb/MIGRATION.html shows relative dependencies about it but even disabling all of them I can't disable it. Could I please attach my .config in this mailing list willing for help?

If you have a closer look you will also see
Selected by: COMPACTION [=y] && MMU [=y] || CMA [=n] && HAVE_MEMBLOCK [=y] && MMU [=y]
That information can be seen i.e. in "make menuconfig". From there find a way to break the chain that is pulling it in. I guess MMU should stay enabled, so COMPACTION and its "Selected by"s.

Henning

Quoted 7 lines

Thanks in advance,

Simone
_______________________________________________
Xenomai mailing list
[email protected]
https://xenomai.org/mailman/listinfo/xenomai

#3 lore raw
Quoted 4 lines · Simone Zucchi

Well I've just managed to disable it. Seems the problem was TRANSPARENT_HUGEPAGE flag
which selected COMPACTION which selects MIGRATION. Great :) thanks

As migration involves a series of changes to the page table done from the (non-rt) virtual memory core, an increased rate of minor page faults taken by the rt side has been observed in the wake of those fixups, which directly translates into latency peaks. This is why CONFIG_MIGRATION is flagged as potentially raising the overall latency figures in Kconfig.

This is not only a matter of dealing with large NUMA configurations though, since CONFIG_MIGRATION is also used by the memory compaction machinery, as you found out. So even on embedded systems, those peaks stand out.

Granted, page migration does not cause pathological latency peaks; but those tend to get in the way nevertheless on some SoCs when Xenomai is used to drive a closed loop control software running a high frequency acquisition.

Signature · 1 line
Philippe.