From: Michal Hocko <mhocko@suse.com>
To: Kyle Meyer <kyle.meyer@hpe.com>
Cc: akpm@linux-foundation.org, corbet@lwn.net, david@redhat.com,
linmiaohe@huawei.com, shuah@kernel.org, tony.luck@intel.com,
jane.chu@oracle.com, jiaqiyan@google.com,
Liam.Howlett@oracle.com, bp@alien8.de, hannes@cmpxchg.org,
jack@suse.cz, joel.granados@kernel.org, laoar.shao@gmail.com,
lorenzo.stoakes@oracle.com, mclapinski@google.com,
nao.horiguchi@gmail.com, osalvador@suse.de,
rafael.j.wysocki@intel.com, rppt@kernel.org,
russ.anderson@hpe.com, shawn.fan@intel.com, surenb@google.com,
vbabka@suse.cz, linux-acpi@vger.kernel.org,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-kselftest@vger.kernel.org, linux-mm@kvack.org
Subject: Re: [PATCH v3] mm/memory-failure: Support disabling soft offline for HugeTLB pages
Date: Wed, 16 Sep 2026 10:52:20 +0200 [thread overview]
Message-ID: <aqpYxAktjexhaMGc@tiehlicka> (raw)
In-Reply-To: <aqmGd0GGUCkbZpkZ@hpe.com>
On Tue 15-09-26 12:55:03, Kyle Meyer wrote:
> On Tue, Sep 15, 2026 at 10:31:42AM +0200, Michal Hocko wrote:
> > On Mon 14-09-26 18:49:38, Kyle Meyer wrote:
> > > Soft offlining a HugeTLB page dissolves it, permanently reducing the
> > > HugeTLB page pool. This can be problematic for workloads that depend on
> > > a fixed number of HugeTLB pages.
> > >
> > > Currently, soft offline must be disabled to prevent HugeTLB pages from
> > > being soft offlined.
> > >
> > > This patch allows soft offline to be disabled for HugeTLB pages while
> > > remaining enabled for non-HugeTLB pages.
> > >
> > > Commit 56374430c5dfc ("mm/memory-failure: userspace controls
> > > soft-offlining pages") introduced the following sysctl interface to
> > > control soft offline:
> > >
> > > /proc/sys/vm/enable_soft_offline
> > >
> > > The interface does not distinguish between page types:
> > >
> > > 0 - Soft offline is disabled
> > > 1 - Soft offline is enabled
> > >
> > > Convert enable_soft_offline to a bitmask and support disabling soft
> > > offline for HugeTLB pages:
> > >
> > > Bits:
> > >
> > > 0 - Enable soft offline
> > > 1 - Disable soft offline for HugeTLB pages
> > >
> > > Supported values:
> > >
> > > 0 - Soft offline is disabled
> > > 1 - Soft offline is enabled
> > > 3 - Soft offline is enabled (disabled for HugeTLB pages)
> > >
> > > Existing behavior is preserved.
> > >
> > > Update documentation and HugeTLB soft offline selftests.
> >
> > This is adding a lot of user interfaces to control something you can
> > disable by config option for an admin only functionality.
>
> I may be missing it, but I'm not aware of a config option that disables soft
> offline specifically for HugeTLB pages.
No, there is none. And IMHO there shouldn't be any. We do not want
config nor runtime option for any random type of page to be soft
offlined. You can disable the whole feature. If we need to enforce a
boot time parameter then I can be convinced about usefulness because
distro kernels need to enable config to be generally available but there
are usecases where this might be better disabled during runtime.
> > I fail to to see any actual justification for all of that. If an admin
> > can disolve a hugetlb page it has power to allocate a new one as well.
>
> Allocating HugeTLB pages after boot is not guaranteed.
yes, and so what?
> > Not to menation that the whole soft offlining is mostly a testing
> > feature so adding a lot of fine grained configuration space seems
> > excessive to me.
>
> Can you elaborate on "mostly a testing feature"? For example, how does that
> apply to the BIOS/GHES path discussed here?
>
> https://lore.kernel.org/all/aMkOCmGBhZKhKPrI@hpe.com
OK, so apparently there are some BIOSes which abuse this feature to
mimic a real HW poisoning. This doesn't change the overall picture
though
> If you think this should be handled differently, I'm open to suggestions.
Yes, do not treat hugetlb pages any special. In case there is a HW
related problem which decides to offline portion of the hugetlb page
then bad for you. It wouldn't be too much different if this was handled
through a real HW poisoning.
--
Michal Hocko
SUSE Labs
next prev parent reply other threads:[~2026-09-16 8:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-14 23:49 Kyle Meyer
2026-09-15 0:37 ` Andrew Morton
2026-09-15 0:57 ` Kyle Meyer
2026-09-15 8:31 ` Michal Hocko
2026-09-15 17:55 ` Kyle Meyer
2026-09-16 8:52 ` Michal Hocko [this message]
2026-09-16 13:08 ` David Hildenbrand (Arm)
2026-09-16 13:19 ` Michal Hocko
2026-09-16 13:28 ` David Hildenbrand (Arm)
2026-09-16 13:45 ` Michal Hocko
2026-09-16 14:30 ` David Hildenbrand (Arm)
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=aqpYxAktjexhaMGc@tiehlicka \
--to=mhocko@suse.com \
--cc=Liam.Howlett@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=bp@alien8.de \
--cc=corbet@lwn.net \
--cc=david@redhat.com \
--cc=hannes@cmpxchg.org \
--cc=jack@suse.cz \
--cc=jane.chu@oracle.com \
--cc=jiaqiyan@google.com \
--cc=joel.granados@kernel.org \
--cc=kyle.meyer@hpe.com \
--cc=laoar.shao@gmail.com \
--cc=linmiaohe@huawei.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=lorenzo.stoakes@oracle.com \
--cc=mclapinski@google.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=shuah@kernel.org \
--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
all inboxes | Powered by JetHome®