linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: jane.chu@oracle.com
To: "Luck, Tony" <tony.luck@intel.com>,
	"Liam R. Howlett" <Liam.Howlett@oracle.com>,
	"Wysocki, Rafael J" <rafael.j.wysocki@intel.com>,
	"surenb@google.com" <surenb@google.com>,
	"Anderson, Russ" <russ.anderson@hpe.com>,
	"rppt@kernel.org" <rppt@kernel.org>,
	"osalvador@suse.de" <osalvador@suse.de>,
	"nao.horiguchi@gmail.com" <nao.horiguchi@gmail.com>,
	"mhocko@suse.com" <mhocko@suse.com>,
	"lorenzo.stoakes@oracle.com" <lorenzo.stoakes@oracle.com>,
	"linmiaohe@huawei.com" <linmiaohe@huawei.com>,
	"jiaqiyan@google.com" <jiaqiyan@google.com>,
	"david@redhat.com" <david@redhat.com>,
	"bp@alien8.de" <bp@alien8.de>, "Meyer, Kyle" <kyle.meyer@hpe.com>,
	"akpm@linux-foundation.org" <akpm@linux-foundation.org>,
	"linux-mm@kvack.org" <linux-mm@kvack.org>,
	"vbabka@suse.cz" <vbabka@suse.cz>,
	"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
	"Fan, Shawn" <shawn.fan@intel.com>
Subject: Re: PATCH v3 ACPI: APEI: GHES: Don't offline huge pages just because BIOS asked
Date: Fri, 5 Sep 2025 13:14:27 -0700	[thread overview]
Message-ID: <698d9758-a22d-4d70-8b56-54efcc453f2f@oracle.com> (raw)
In-Reply-To: <SJ1PR11MB60830CB47549119351B1DF73FC03A@SJ1PR11MB6083.namprd11.prod.outlook.com>


On 9/5/2025 12:58 PM, Luck, Tony wrote:
>> So the issue is the result of inaccurate MCA record about per rank CE
>> threshold being crossed. If OS offline the indicted page, it might be
>> signaled to offline another 4K page in the same rank upon access.
> 
> It appears that the BIOS that resulted in this report sensibly treats crossing
> the rank error threshold as needing a one-time report via GHES.
> 
>> Both MCA and offline-op are performance hitter, and as argued by this
>> patch, offline doesn't help except loosing a already corrected page.
>>
>> Here we choose to bypass hugetlb page simply because it's huge.  Is it
>> possible to argue that because the page is huge, it's less likely to get
>> another MCA on another page from the same rank?
> 
> If there really is a problem with the rank, it likely affects most pages (or
> at least most pages on the same NUMA node) because memory access
> is (usually) interleaved between channels, and accesses within a 4K page
> may hash to different ranks withing a channel.
> 
>> A while back this patch
>> 56374430c5dfc mm/memory-failure: userspace controls soft-offlining pages
>> has provided userspace control over whether to soft offline, could it be
>> a more preferable option?
> 
> Thanks for pointing that one out. I'll feed that back to the original reporter
> and see if it is an acceptable solution.
> 
>> I don't know, the patch itself is fine, it's the issue that it has
>> exposed that is more concerning.
> 
> Agreed. The root problem is the BIOS using this threshold reporting
> mechanism, without there being a way for the OS to determine the
> scope of memory affected by the threshold.
> 
> When this was originally implemented, the expectation was that the
> scope would be a 4K page.

Thanks!

BTW, forgot to ask another question.
	ghes_do_proc
	  bool sync = is_hest_sync_notify(ghes);
	  [..]
		queued = ghes_handle_memory_failure(gdata, sev, sync);
	  [..]
	  if (sync && !queued) {
	      force_sig(SIGBUS);
The question is, in the CE MCE case, 'sync' is never 'true' by design, 
correct?

thanks,
-jane


	
	


> 
> -Tony



  reply	other threads:[~2025-09-05 20:15 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-04 15:57 [PATCH] " Tony Luck
2025-09-04 17:25 ` Mike Rapoport
2025-09-04 18:16 ` Liam R. Howlett
2025-09-05 15:53   ` [PATCH v2] " Luck, Tony
2025-09-05 16:25     ` Liam R. Howlett
2025-09-05 18:17       ` PATCH v3 " Luck, Tony
2025-09-05 19:39         ` jane.chu
2025-09-05 19:58           ` Luck, Tony
2025-09-05 20:14             ` jane.chu [this message]
2025-09-05 20:36               ` Luck, Tony
2025-09-05 19:59           ` Jiaqi Yan
2025-09-08 19:14             ` Kyle Meyer
2025-09-08 20:01               ` Luck, Tony
2025-09-10 12:01                 ` Rafael J. Wysocki
2025-09-18  3:39               ` Shuai Xue
2025-09-18 15:43                 ` Jiaqi Yan
2025-09-18 18:45                   ` Luck, Tony
2025-09-19  1:53                     ` Shuai Xue
2025-09-18 19:46                   ` Luck, Tony
2025-09-19  1:49                   ` Shuai Xue

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=698d9758-a22d-4d70-8b56-54efcc453f2f@oracle.com \
    --to=jane.chu@oracle.com \
    --cc=Liam.Howlett@oracle.com \
    --cc=akpm@linux-foundation.org \
    --cc=bp@alien8.de \
    --cc=david@redhat.com \
    --cc=jiaqiyan@google.com \
    --cc=kyle.meyer@hpe.com \
    --cc=linmiaohe@huawei.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=lorenzo.stoakes@oracle.com \
    --cc=mhocko@suse.com \
    --cc=nao.horiguchi@gmail.com \
    --cc=osalvador@suse.de \
    --cc=rafael.j.wysocki@intel.com \
    --cc=rppt@kernel.org \
    --cc=russ.anderson@hpe.com \
    --cc=shawn.fan@intel.com \
    --cc=surenb@google.com \
    --cc=tony.luck@intel.com \
    --cc=vbabka@suse.cz \
    /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