mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Hildenbrand <david@redhat.com>
To: "Petr Vaněk" <arkamar@atlas.cz>, linux-xfs@vger.kernel.org
Cc: Matthew Wilcox <willy@infradead.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Greg KH <gregkh@linuxfoundation.org>
Subject: Re: xfs: Xen/HPT related regression in v6.6
Date: Mon, 4 Nov 2024 16:40:58 +0100	[thread overview]
Message-ID: <63b7f241-3340-431b-bf20-1cde551a96b8@redhat.com> (raw)
In-Reply-To: <2024114141121-ZyjWCQr5TJE0JoRT-arkamar@atlas.cz>

On 04.11.24 15:11, Petr Vaněk wrote:
> I would like to report a regression in XFS introduced in kerenel v6.6 in
> commit 5d8edfb900d5 ("iomap: Copy larger chunks from userspace"). On a
> system running under Xen, when a process creates a file on an XFS file
> system and writes exactly 2MB or more in a single write syscall,
> accessing memory through mmap on that file causes the process to hang,
> while dmesg is flooded with page fault warnings:

[...]

> [   62.406493]  </TASK>
> 
> As shown in the log above, the issue persists in kernel 6.6.59. However,
> it was recently resolved in commit 2b0f922323cc ("mm: don't install PMD
> mappings when THPs are disabled by the hw/process/vma"). The fix was
> backported to 6.11. Would it make sense to backport it to 6.6 as well?

I was speculating about this in the patch description:

"Is it also a problem when the HW disabled THP using 
TRANSPARENT_HUGEPAGE_UNSUPPORTED?  At least on x86 this would be the 
case without X86_FEATURE_PSE."

I assume we have a HW, where has_transparent_hugepage() == false, so 
likely x86-64 without X86_FEATURE_PSE.

QEMU/KVM should be supporting X86_FEATURE_PSE, but maybe XEN does not 
for its (PC?) guests? If I understood your setup correctly :)

At least years ago, this feature was not available in XEN PV guests [1].


Note that I already sent a backport [2], I should probably ping at this 
point.

[1] 
https://lore.kernel.org/all/57188ED802000078000E431C@prv-mh.provo.novell.com/
[2] https://lkml.kernel.org/r/20241022090952.4101444-1-david@redhat.com

> 
> I encountered this issue while updating a Gentoo VM with an XFS
> filesystem running under Xen. During a final stage of glibc update,
> files were copied to the live system, but when locale-gen started, it
> hung. I couldn't open a new shell, as it attempted to mmap an
> LC_COLLATE-related file, resulting in the same page faults as reported
> above.

Yes, looks like something is not happy about the PMD mapping that we 
installed.

-- 
Cheers,

David / dhildenb


  reply	other threads:[~2024-11-04 15:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-04 14:11 Petr Vaněk
2024-11-04 15:40 ` David Hildenbrand [this message]
2024-11-05  8:44   ` Petr Vaněk
2024-11-05  8:55     ` Andrew Cooper
2024-11-05  8:56       ` David Hildenbrand
2024-11-05  9:16       ` Petr Vaněk

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=63b7f241-3340-431b-bf20-1cde551a96b8@redhat.com \
    --to=david@redhat.com \
    --cc=arkamar@atlas.cz \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-xfs@vger.kernel.org \
    --cc=willy@infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®