linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Andi Kleen <ak@linux.intel.com>
To: Matthew Wilcox <willy@infradead.org>
Cc: linux-mm@kvack.org,
	"Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>,
	Hugh Dickins <hughd@google.com>
Subject: Re: File THP and HWPoison
Date: Tue, 16 Mar 2021 09:36:49 -0700	[thread overview]
Message-ID: <20210316163649.GR203350@tassilo.jf.intel.com> (raw)
In-Reply-To: <20210316140947.GA3420@casper.infradead.org>

> So we now map the PMD-sized page into userspace, even though it has a
> HWPoison in it.

Yes that's bad. It might panic the system.

> 
> I think there are two things that we should be doing:
> 
> 1. Attempt to split THPs which are file-backed.  That makes most of this
> problem disappear because there won't be THPs with HWPoison, mostly.

That seems simple and sensible.

> 2. When the THP fails to split, use a spare page flag to indicate that
> the THP contains a HWPoison bit in one of its subpages.  There are a
> lot of PF_SECOND flags available for this purpose.

Why should it fail? I thought splitting always succeeds.

-Andi


  reply	other threads:[~2021-03-16 16:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-16 14:09 File THP and HWPoison Matthew Wilcox
2021-03-16 16:36 ` Andi Kleen [this message]
2021-03-16 16:52   ` Matthew Wilcox
2021-03-18 14:08 ` Kirill A. Shutemov
2021-03-18 14:57   ` Matthew Wilcox
2021-03-18 17:25     ` HORIGUCHI NAOYA(堀口 直也)
2021-03-18 18:05       ` Yang Shi

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=20210316163649.GR203350@tassilo.jf.intel.com \
    --to=ak@linux.intel.com \
    --cc=hughd@google.com \
    --cc=kirill.shutemov@linux.intel.com \
    --cc=linux-mm@kvack.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;
as well as URLs for NNTP newsgroup(s).