linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Jason Gunthorpe <jgg@ziepe.ca>
To: Alexander Graf <graf@amazon.com>
Cc: Pasha Tatashin <pasha.tatashin@soleen.com>,
	Mike Rapoport <rppt@kernel.org>,
	David Rientjes <rientjes@google.com>,
	lsf-pc@lists.linux-foundation.org, "Gowans,
	James" <jgowans@amazon.com>,
	linux-mm@kvack.org
Subject: Re: [LSF/MM/BPF TOPIC] memory persistence over kexec
Date: Mon, 27 Jan 2025 09:15:12 -0400	[thread overview]
Message-ID: <20250127131512.GC1103620@ziepe.ca> (raw)
In-Reply-To: <54945e03-c437-48b4-b739-4e8ac822c1fc@amazon.com>

On Sun, Jan 26, 2025 at 04:21:05PM -0800, Alexander Graf wrote:

> Yes, this is easier said than done. In the user space driven kexec path,
> user space is in control of memory locations. At least after the first kexec
> iteration, these locations will overlap with the existing Linux runtime
> environment, because both lie in the scratch region. Only the purgatory
> moves everything to where it should be.

This just doesn't seem ideal to me.. It makes sense for old fashioned
kexec, but if you are committed to KHO start earlier.

I would imagine a system that wants to do KHO to have A/B chunks of
memory that are used to boot up the kernel, and the running kernel
keeps the successor kernel's chunk entirely as ZONE_MOVABLE.

When kexec time comes the running kernel evacuates the successor
chunk, and the new kernel gets one of two reliable linear mappings to
work with. No complex purgatory, no copying, its simple.

The next kernel then makes the prior kernel's chunk ZONE_MOVABLE and
the cycle repeats.

Why make it so complicated by using overlapping memory???

Jason


  reply	other threads:[~2025-01-27 13:15 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-20  7:54 Mike Rapoport
2025-01-20 14:14 ` Jason Gunthorpe
2025-01-20 19:42   ` David Rientjes
2025-01-22 23:30     ` Pasha Tatashin
2025-01-25  9:53       ` Mike Rapoport
2025-01-25 15:19         ` Pasha Tatashin
2025-01-26 20:04           ` Jason Gunthorpe
2025-01-26 20:41             ` Pasha Tatashin
2025-01-27  0:21               ` Alexander Graf
2025-01-27 13:15                 ` Jason Gunthorpe [this message]
2025-01-27 16:12                   ` Alexander Graf
2025-01-28 14:04                     ` Jason Gunthorpe
2025-01-27 13:05               ` Jason Gunthorpe
2025-01-24 21:03     ` Zhu Yanjun
2025-01-24 11:30   ` Mike Rapoport
2025-01-24 14:56     ` Jason Gunthorpe
2025-01-24 18:23 ` Andrey Ryabinin

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=20250127131512.GC1103620@ziepe.ca \
    --to=jgg@ziepe.ca \
    --cc=graf@amazon.com \
    --cc=jgowans@amazon.com \
    --cc=linux-mm@kvack.org \
    --cc=lsf-pc@lists.linux-foundation.org \
    --cc=pasha.tatashin@soleen.com \
    --cc=rientjes@google.com \
    --cc=rppt@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