Skip to contentSkip to conversation

Dovetail 5.10 - Xenomai huge page support

DISCUSSION Bezdeka, Florian 3 participants 7 messages Jan 19, 2022 – Jan 25, 2022

lore
Share & tools
lore
#0 lore raw

Hi all,

after migrating from 4.19-ipipe to 5.10-dovetail internal users are reporting that they receive sporadic SIGXCPUs. The reported reason is "page_fault_user".

After disabling the huge page support in 5.10 the issue vanished. Tests are still running, but we are optimistic that we found the root cause.

Are there any known limitations to the huge page support in Xenomai / Dovetail? My understanding is that huge pages are supported by Xenomai, so any ideas where to look at?

Best regards,
Florian

#1 lore raw
Quoted 6 lines · Florian via Xenomai

Hi all,

after migrating from 4.19-ipipe to 5.10-dovetail internal users are reporting that they receive sporadic SIGXCPUs. The reported reason is "page_fault_user".

Quoted 6 lines

After disabling the huge page support in 5.10 the issue vanished. Tests are still running, but we are optimistic that we found the root cause.

Are there any known limitations to the huge page support in Xenomai / Dovetail? My understanding is that huge pages are supported by Xenomai, so any ideas where to look at?

[1] is part of the 5.15-rebased dovetail branch but not part of the 5.10-rebase branch and mentions huge page handling. Could that be related? Maybe this patch is not 5.15 specific?

[1] https://source.denx.de/Xenomai/linux-dovetail/-/commit/b0a4f4c3891949d079aa3d65f2a56428a67e580c

Quoted 3 lines

Best regards,
Florian

#2 lore raw
Quoted 10 lines · Florian
Quoted 9 lines · Florian via Xenomai

Hi all,

after migrating from 4.19-ipipe to 5.10-dovetail internal users are reporting that they receive sporadic SIGXCPUs. The reported reason is "page_fault_user".

After disabling the huge page support in 5.10 the issue vanished. Tests are still running, but we are optimistic that we found the root cause.

Quoted 8 lines
Quoted 3 lines

Are there any known limitations to the huge page support in Xenomai / Dovetail? My understanding is that huge pages are supported by Xenomai, so any ideas where to look at?

[1] is part of the 5.15-rebased dovetail branch but not part of the 5.10-rebase branch and mentions huge page handling. Could that be related? Maybe this patch is not 5.15 specific?

It is not 5.15 specific. The same logic would apply to 5.10.

Quoted 5 lines

[1] https://source.denx.de/Xenomai/linux-dovetail/-/commit/b0a4f4c3891949d079aa3d65f2a56428a67e580c

Quoted 3 lines

Best regards,
Florian

Signature · 1 line
Philippe.
#3 lore raw
Quoted 16 lines · Philippe Gerum
Quoted 14 lines · Florian
Quoted 12 lines · Florian via Xenomai

Hi all,

after migrating from 4.19-ipipe to 5.10-dovetail internal users are reporting that they receive sporadic SIGXCPUs. The reported reason is "page_fault_user".

After disabling the huge page support in 5.10 the issue vanished. Tests are still running, but we are optimistic that we found the root cause.

Are there any known limitations to the huge page support in Xenomai / Dovetail? My understanding is that huge pages are supported by Xenomai, so any ideas where to look at?

Quoted 6 lines
Quoted 4 lines

[1] is part of the 5.15-rebased dovetail branch but not part of the 5.10-rebase branch and mentions huge page handling. Could that be related? Maybe this patch is not 5.15 specific?

It is not 5.15 specific. The same logic would apply to 5.10.

Thanks Philippe! I will give it a try! Even with huge page support disabled the problem came back. The first run was OK, starting a second run after 2h of idle triggers kind of a SIGXCPUs storm.

Quoted 8 lines
Quoted 6 lines

[1] https://source.denx.de/Xenomai/linux-dovetail/-/commit/b0a4f4c3891949d079aa3d65f2a56428a67e580c

Quoted 3 lines

Best regards,
Florian

#4 lore raw
Quoted 22 lines · Florian (T CED SES-DE)
Quoted 21 lines · Philippe Gerum
Quoted 18 lines · Florian
Quoted 6 lines · Florian via Xenomai

Hi all,

after migrating from 4.19-ipipe to 5.10-dovetail internal users are reporting that they receive sporadic SIGXCPUs. The reported reason is "page_fault_user".

Quoted 6 lines

After disabling the huge page support in 5.10 the issue vanished. Tests are still running, but we are optimistic that we found the root cause.

Are there any known limitations to the huge page support in Xenomai / Dovetail? My understanding is that huge pages are supported by Xenomai, so any ideas where to look at?

[1] is part of the 5.15-rebased dovetail branch but not part of the 5.10-rebase branch and mentions huge page handling. Could that be related? Maybe this patch is not 5.15 specific?

Quoted 6 lines
Quoted 1 line

It is not 5.15 specific. The same logic would apply to 5.10.

Thanks Philippe! I will give it a try! Even with huge page support disabled the problem came back. The first run was OK, starting a second run after 2h of idle triggers kind of a SIGXCPUs storm.

That patch [1] is not targeting 5.10 - that was at least the information you shared, Philippe, when I asked this question as well back then.

Meanwhile we understood that the mode changes originated from CONFIG_MIGRATION. We are now trying to understand if we can live without it in that large NUMA setup or if some more targeted per-process pinning would be desirable. Such pinning may also come with implicit unCOW in the end, let's see.

Jan

Quoted 9 lines
Quoted 8 lines
Quoted 6 lines

[1] https://source.denx.de/Xenomai/linux-dovetail/-/commit/b0a4f4c3891949d079aa3d65f2a56428a67e580c

Quoted 3 lines

Best regards,
Florian

Signature · 2 lines
Siemens AG, Technology
Competence Center Embedded Linux
#5 lore raw
Quoted 24 lines · Jan Kiszka
Quoted 23 lines · Florian (T CED SES-DE)
Quoted 22 lines · Philippe Gerum
Quoted 10 lines · Florian
Quoted 9 lines · Florian via Xenomai

Hi all,

after migrating from 4.19-ipipe to 5.10-dovetail internal users are reporting that they receive sporadic SIGXCPUs. The reported reason is "page_fault_user".

After disabling the huge page support in 5.10 the issue vanished. Tests are still running, but we are optimistic that we found the root cause.

Quoted 8 lines
Quoted 3 lines

Are there any known limitations to the huge page support in Xenomai / Dovetail? My understanding is that huge pages are supported by Xenomai, so any ideas where to look at?

[1] is part of the 5.15-rebased dovetail branch but not part of the 5.10-rebase branch and mentions huge page handling. Could that be related? Maybe this patch is not 5.15 specific?

It is not 5.15 specific. The same logic would apply to 5.10.

Quoted 9 lines
Quoted 4 lines

Thanks Philippe! I will give it a try! Even with huge page support disabled the problem came back. The first run was OK, starting a second run after 2h of idle triggers kind of a SIGXCPUs storm.

That patch [1] is not targeting 5.10 - that was at least the information you shared, Philippe, when I asked this question as well back then.

The fact that the original bug was not in 5.10 as I mentioned does not preclude the change to have a wider impact, please see the commit log:

commit 4dfc2bc1c47d2343cacd2a4ae01a3c3513d27d12 (HEAD -> rebase/v5.15.y-evl, linux-evl/v5.15.y-evl-rebase)

Author: Philippe Gerum <[email protected]>
Date:   Sat Jan 8 16:30:24 2022 +0100

dovetail: mm: fix logic of COW-disabling check

...

As a result of this change, other callers of page_needs_cow_for_dma() are now influenced by the Dovetail pinning status of the mm, specifically the huge page management.

Finally, since page_needs_cow_for_dma() does not exclusively apply to pinned memory for DMA anymore, rename it to page_needs_cow().

Quoted 6 lines

Meanwhile we understood that the mode changes originated from CONFIG_MIGRATION. We are now trying to understand if we can live without it in that large NUMA setup or if some more targeted per-process pinning would be desirable. Such pinning may also come with implicit unCOW in the end, let's see.

Signature · 1 line
Philippe.
#6 lore raw
In reply to Bezdeka, Florian
Quoted 6 lines · Florian

Hi all,

after migrating from 4.19-ipipe to 5.10-dovetail internal users are reporting that they receive sporadic SIGXCPUs. The reported reason is "page_fault_user".

Quoted 7 lines

After disabling the huge page support in 5.10 the issue vanished. Tests are still running, but we are optimistic that we found the root cause.

Are there any known limitations to the huge page support in Xenomai / Dovetail? My understanding is that huge pages are supported by Xenomai, so any ideas where to look at?

No limitation intended or known, however the recent change in the Dovetail implement you mention in your next post may help addressing the issue indeed by disabling COW for huge pages too, which was missing so far.

Signature · 1 line
Philippe.