References: <745119239ef0a715f703f8315befc79ee34d0511.camel@siemens.com> <87sftig62e.fsf@xenomai.org> <33f3d640bea5967b794d817d0025e6b61d9fb4eb.camel@siemens.com> <3283ee7b-cede-39bf-ffe7-c53751cfbad6@siemens.com> From: Philippe Gerum Subject: Re: Dovetail 5.10 - Xenomai huge page support Date: Tue, 25 Jan 2022 18:43:32 +0100 In-reply-to: <3283ee7b-cede-39bf-ffe7-c53751cfbad6@siemens.com> Message-ID: <871r0vd7xj.fsf@xenomai.org> MIME-Version: 1.0 Content-Type: text/plain List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: "Bezdeka, Florian (T CED SES-DE)" , "xenomai@xenomai.org" Jan Kiszka writes: > On 20.01.22 10:15, Bezdeka, Florian (T CED SES-DE) wrote: >> On Thu, 2022-01-20 at 09:32 +0100, Philippe Gerum wrote: >>> "Bezdeka, Florian" writes: >>> >>>> On Wed, 2022-01-19 at 13:35 +0000, Bezdeka, Florian via Xenomai wrote: >>>>> 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? >>>> >>>> [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. >> > > 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 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(). > 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. > -- Philippe.