From: "Arnd Bergmann" <arnd@arndb.de>
To: "Linus Torvalds" <torvalds@linux-foundation.org>,
"H. Peter Anvin" <hpa@zytor.com>
Cc: "Arnd Bergmann" <arnd@kernel.org>,
linux-kernel@vger.kernel.org, x86@kernel.org,
"Thomas Gleixner" <tglx@linutronix.de>,
"Ingo Molnar" <mingo@redhat.com>,
"Borislav Petkov" <bp@alien8.de>,
"Dave Hansen" <dave.hansen@linux.intel.com>,
"Andy Shevchenko" <andy@kernel.org>,
"Matthew Wilcox" <willy@infradead.org>,
linux-mm@kvack.org
Subject: Re: [PATCH v3 05/10] x86: remove HIGHMEM64G support
Date: Fri, 28 Feb 2025 11:09:52 +0100 [thread overview]
Message-ID: <0047f565-ada4-491a-b157-f2d8dfde0ac0@app.fastmail.com> (raw)
In-Reply-To: <CAHk-=wjFb7jeWXB2wovPeHqZ7XaxfiCbb+Vgk9FeGO2pcY78zA@mail.gmail.com>
On Thu, Feb 27, 2025, at 17:51, Linus Torvalds wrote:
> On Thu, 27 Feb 2025 at 07:41, H. Peter Anvin <hpa@zytor.com> wrote:
>>
>> One of the generations of kernel.org ran on a dual socket system with
>> 6 GiB RAM. It was a mess; basically it achieved less than 50% memory
>> utilization because of highmem.
>
> I'll be very very happy when HIGHMEM is gone completely, but yes,
> HIGHMEM64G was particularly painful.
I'm optimistic about being able to remove highmem in the future
as well, hopefully this series was a good step in that direction.
This is a rough list of what I think the remaining problems are:
- anyone running 32-bit kernels on 64-bit hardware or virtual
machines should move to 64-bit kernels. This is mostly about
educating users (on x86) and embedded system builders (on arm
and possibly powerpc/booke64).
One idea we had discussed in the past was to have the
kernel refuse to run on 64-bit hardware if highmem is
detected (with a command line override to allow regression
testing).
- arm32 needs a way to have sparse physical memory linearized
into lowmem, to deal with the case where the total memory is
small enough to fit, but half of it sits at a high physical
address. We are working on this.
- Ideally the same change should support a boot-time vmsplit
selection on arm32 instead of compile-time CONFIG_VMSPLIT_*.
This would also help x86-32 when a distro kernel needs to run
on both 1GB and 2GB RAM machines but still allow
3GB of user addresses on smaller machines.
- Machines with 3GB or 4GB of RAM (pre-2005 Intel PC/server
systems, 2005-2007 era Intel Laptops, 2007-2009 era
Netbooks, 2013-2015 era Arm Chromebooks, rare Arm/x86/PowerPC
embedded systems) can hopefully get away with a combination
of VMSPLIT_2G and zram/zswap.
Someone needs to rework the highmem code to separate the
bits needed for zsmalloc from the rest so we can disable
and eventually remove normal highmem while keeping
zsmalloc-in-highmem. I have not looked in detail at how
that would work in practice.
- There is still an open question about implementing a
4GB-split on ARM-LPAE (flipping a 3.75GB ttbr0 between
lowmem and user). Linus Walleij has done some work on
this, but we may find that VMSPLIT_2G plus zsmalloc-only
highmem is good enough that we don't need both. Both
approaches have important downsides.
- arm32 machines with more than 4GB of total memory need to
get rare enough that we can throw them under the bus.
There are still a few of them in use, but the chips are
all more than 10 years old by now and eventually they
will stop needing kernel updates.
- sparc32 kernels should start supporting more than 192MB of
lowmem (or stop existing). Apparently there are Leon3
machines with up to 2GB of RAM.
- mips32 has a hardware lowmem limit of 512MB, and I think
we can live with that because they tend to have less actual
RAM. There is one important chip (mt7621) that supports
512MB RAM in machines with real users, and apparently that
number goes down to 448MB without highmem.
- arc/csky/microblaze/xtensa all support highmem in theory,
but I am not aware of anyone actually needing it any more.
- Lastly, there has to be some executive decision to actually
do it as there will always be /some/ systems that are
affected in the end. I don't think we can do enough of
the mitigation work done for arm32 for this year's longterm
kernel, but probably enough that we can agree on a
deadline at the Tokyo LPC kernel summit, and maybe remove
highmem after the 2026 longterm kernel.
I'll try to collect more data from affected users about what
will really break for them, and what I may have missed.
Arnd
next prev parent reply other threads:[~2025-02-28 10:10 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-26 21:37 [PATCH v3 00/10] x86: 32-bit cleanups Arnd Bergmann
2025-02-26 21:37 ` [PATCH v3 01/10] x86/Kconfig: Geode CPU has cmpxchg8b Arnd Bergmann
2025-02-27 10:42 ` [tip: x86/cpu] x86/Kconfig: Add cmpxchg8b support back to Geode CPUs tip-bot2 for Arnd Bergmann
2025-02-26 21:37 ` [PATCH v3 02/10] x86: drop 32-bit "bigsmp" machine support Arnd Bergmann
2025-02-27 10:42 ` [tip: x86/cpu] x86/smp: Drop " tip-bot2 for Arnd Bergmann
2025-02-26 21:37 ` [PATCH v3 03/10] x86: rework CONFIG_GENERIC_CPU compiler flags Arnd Bergmann
2025-02-27 10:42 ` [tip: x86/cpu] x86/build: Rework " tip-bot2 for Arnd Bergmann
2025-02-26 21:37 ` [PATCH v3 04/10] x86: drop configuration options for early 64-bit CPUs Arnd Bergmann
2025-02-27 10:42 ` [tip: x86/cpu] x86/cpu: Drop " tip-bot2 for Arnd Bergmann
2025-02-26 21:37 ` [PATCH v3 05/10] x86: remove HIGHMEM64G support Arnd Bergmann
2025-02-27 10:42 ` [tip: x86/cpu] x86/mm: Remove CONFIG_HIGHMEM64G support tip-bot2 for Arnd Bergmann
2025-02-27 15:41 ` [PATCH v3 05/10] x86: remove HIGHMEM64G support H. Peter Anvin
2025-02-27 16:51 ` Linus Torvalds
2025-02-28 1:48 ` H. Peter Anvin
2025-02-28 10:09 ` Arnd Bergmann [this message]
2025-02-26 21:37 ` [PATCH v3 06/10] x86: drop SWIOTLB for PAE Arnd Bergmann
2025-02-27 10:42 ` [tip: x86/cpu] x86/mm: Drop CONFIG_SWIOTLB " tip-bot2 for Arnd Bergmann
2025-02-26 21:37 ` [PATCH v3 07/10] x86: drop support for CONFIG_HIGHPTE Arnd Bergmann
2025-02-27 10:42 ` [tip: x86/cpu] x86/mm: Drop " tip-bot2 for Arnd Bergmann
2025-02-26 21:37 ` [PATCH v3 08/10] x86: document X86_INTEL_MID as 64-bit-only Arnd Bergmann
2025-02-27 10:42 ` [tip: x86/cpu] x86/cpu: Document CONFIG_X86_INTEL_MID " tip-bot2 for Arnd Bergmann
2025-02-28 16:20 ` [PATCH v3 08/10] x86: document X86_INTEL_MID " Ferry Toth
2025-02-28 18:40 ` Andy Shevchenko
2025-02-26 21:37 ` [PATCH v3 09/10] x86: remove old STA2x11 support Arnd Bergmann
2025-02-27 10:42 ` [tip: x86/cpu] x86/pci: Remove " tip-bot2 for Arnd Bergmann
2025-02-26 21:37 ` [PATCH v3 10/10] x86: only allow EISA for 32-bit Arnd Bergmann
2025-02-27 10:42 ` [tip: x86/cpu] x86/platform: Only allow CONFIG_EISA " tip-bot2 for Arnd Bergmann
2025-02-27 10:34 ` [PATCH v3 00/10] x86: 32-bit cleanups Ingo Molnar
2025-02-27 14:08 ` Andy Shevchenko
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=0047f565-ada4-491a-b157-f2d8dfde0ac0@app.fastmail.com \
--to=arnd@arndb.de \
--cc=andy@kernel.org \
--cc=arnd@kernel.org \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.org \
--cc=willy@infradead.org \
--cc=x86@kernel.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®