Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8A33D10BE5 for ; Sat, 26 Oct 2024 06:07:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 19D766B007B; Sat, 26 Oct 2024 02:07:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 14D796B0082; Sat, 26 Oct 2024 02:07:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F08466B0083; Sat, 26 Oct 2024 02:07:31 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id C8DE16B007B for ; Sat, 26 Oct 2024 02:07:31 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 468CFACF48 for ; Sat, 26 Oct 2024 06:06:51 +0000 (UTC) X-FDA: 82714720914.12.0F01B4F Received: from mail-il1-f173.google.com (mail-il1-f173.google.com [209.85.166.173]) by imf02.hostedemail.com (Postfix) with ESMTP id 9CFB780008 for ; Sat, 26 Oct 2024 06:06:50 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b="MhV/LQjy"; spf=pass (imf02.hostedemail.com: domain of rientjes@google.com designates 209.85.166.173 as permitted sender) smtp.mailfrom=rientjes@google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1729922643; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=PQSPHe+PJtxEzujGUtNL873qp26GJXxZytaxypHA5kI=; b=EwGHVw9BUgyhH2om5vkY5xM+yR2c7jgGPlpbc6H1jRuOLIN5vMWqpKFs62JC1vBvQMGsmQ guPS0ldl4VAUaEdsV41HltTEL13oXZm+6Pd4GzznpnN3MMUafRFt/Wk+AVXS6EN9D+Lawk IyYBrCkWTqOhX+YQ2yTf75405YrtMAU= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b="MhV/LQjy"; spf=pass (imf02.hostedemail.com: domain of rientjes@google.com designates 209.85.166.173 as permitted sender) smtp.mailfrom=rientjes@google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1729922643; a=rsa-sha256; cv=none; b=02RIBvA4so2GsBz1DbauQf92kfoHfnopsmzabKyVm4rbWL6vhM6lIdrp1hpgPwQmIIFQUa cI7JmlmhDO0XNwbCYCnocRHrikExKEICg2IjsDze2SY1YiNngcGr7gp2/PaiWURumhbxCw UDpgo0KL+Ww8o1QTfm9ljuCDOyQmTZM= Received: by mail-il1-f173.google.com with SMTP id e9e14a558f8ab-3a4e54d3cefso157445ab.0 for ; Fri, 25 Oct 2024 23:07:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1729922849; x=1730527649; darn=kvack.org; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=PQSPHe+PJtxEzujGUtNL873qp26GJXxZytaxypHA5kI=; b=MhV/LQjycJWsr3HfnWPetbC4eJivWB7ru8TZLLG6H4FlQf7+LghLO1Pn4WOEH2VYRk wmIW/uKIGwgQGujWxq0NJ62k2RQikUG2B8sVaLs7sVnOLKi52Is+H2M1cqpVp/nOCnIM cNcy7H/2/j2YBEy471JeM6O4jgbWDFCy8O2eC4lFClMI3CKZ4SZ9lONZICagVQu3K27w L9+MIJLAAIMnqxNrfWGLFVIymnx41nTrgGzgcQF+3q3e6a/LJt6MiwHyS849kCC5W5hz aLefJ/7g/aT8DeXriDaAUyR2AEMsLLRkRXpUEHPk+Bgmdm6JVQOuYLhZhZfPdS+k6ta1 JQVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729922849; x=1730527649; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PQSPHe+PJtxEzujGUtNL873qp26GJXxZytaxypHA5kI=; b=fzRfHWArTW5o0hDYkUl1fuAiXfM21tC7663sWnEhxoiElBinXVV+8jcFJUJ6URAqHR Fl2Snt0OMEEX4a+a/93G4EbRlCjSV3BW1WfNS+6WygBAcWZnfnMuhfTWTnwLLyjFCU0A bBx737QIUCK4T1Fv5Fcf7lTMU1XjIcmdhjp56LzEUpruhAzemi4f4kNffbkSnLEXj0tP TLuOHLyaxi6+MtF1THCB8QV8r3GaqOutG6iKNdx4AbbVlRk7YvMGdQtC63KgC0RChDrg NNmXF4EazjCINnJgrePZfL2rkqG3g8y/YmMBxrGUNiIfm5YjVbo4cCEaUoeO0JbdSrHF iQYg== X-Gm-Message-State: AOJu0Yxm/nth+tRBLjfkNHiti4tHYOzr+aH47Q9hyzsXQ8Vbfg45m2bl c/6Yc5IVgZ9qA0ClIU1JfcwQOYCTk3qCrATwIHV0v2zMTqZlfM98ER8TYI72zw== X-Google-Smtp-Source: AGHT+IHnGileZkvepxLdTSybvUnOAtRRrxty8+lkuWaRJ6nqZp9GWgJxqbOMP+zu3Uk5mBAi7NZuKg== X-Received: by 2002:a05:6e02:1a86:b0:3a0:aa6c:8a50 with SMTP id e9e14a558f8ab-3a4edfcc5cbmr1355895ab.29.1729922848679; Fri, 25 Oct 2024 23:07:28 -0700 (PDT) Received: from [2620:0:1008:15:a73a:2b46:3ef7:2150] ([2620:0:1008:15:a73a:2b46:3ef7:2150]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72057a1fe5fsm2091901b3a.160.2024.10.25.23.07.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2024 23:07:28 -0700 (PDT) Date: Fri, 25 Oct 2024 23:07:27 -0700 (PDT) From: David Rientjes To: James Gowans , Dave Hansen , David Hildenbrand , Matthew Wilcox , Mike Rapoport , Pasha Tatashin , Peter Xu , Alexander Graf , Ashish Kalra , Tom Lendacky , David Woodhouse , Anthony Yznaga , Jason Gunthorpe , Andrew Morton , Frank van der Linden , Vipin Sharma , David Matlack , Steve Rutherford , Erdem Aktas , Alper Gun , Vishal Annapurve , Ackerley Tng , Sagi Shahar cc: linux-mm@kvack.org, kexec@lists.infradead.org Subject: Re: Pmemfs/guestmemfs discussion recap and open questions In-Reply-To: Message-ID: <5b6613bc-beef-79e6-62ed-23de4dfafe51@google.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 9CFB780008 X-Stat-Signature: htic3eah73j7m9mftw9yykecunhakw1n X-Rspam-User: X-HE-Tag: 1729922810-140533 X-HE-Meta: U2FsdGVkX19SqzoGHlxVcmuD3imIqhAskrJC5LUZBCeBFOiEXatiBoFhRB86xJUF68/qYBW5JL14BxMLR5SUrHo4stS6T+aYJ4d14oDAR0m16RTjUSXFQ/ZIZ7Egz4sYG/FsBUiDB37b9t5p8KN02eFuIi1kgzAEVGOp+tAqff8NYYa6bAsuRF4K3jyhD1Ijz6/a7Ul9f4pOTXTQu2Edp/yeE3+Q3QdoUrtBp/D4vNZ1MCPJIlZl68rKy37wVssQzRCpFl9o1kFPbdfloE3/FEAU7zLxvGBlp/hobcH+VZl1YeZpLvzUBhMu7czFw8dWZSbkhpZR5v6kevUusroPZxDgAq9o9p/Dl6LRktgqgQ1QPHrAjtGFicxRZLiJjOrbKHZGiUEIbfhxu0gSCtxWrTmkeL3fxG6NBqPlIkWirSFJTVFw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-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: On Wed, 16 Oct 2024, David Rientjes wrote: > ----->o----- > My takeaway: based on the feedback that was provided in the discussion: > > - we need an allocator abstraction for persistent memory that can return > memory with various characteristics: 1GB or not, kernel direct map or > not, HVO or not, etc. > > - built on top of that, we need the ability to carve out very large > ranges of memory (cloud provider use case) with NUMA awareness on the > kernel command line > Following up on this, I think this physical memory allocator would also be possible to use as a backend for hugetlb. Hopefully this would be an allocator that would be generally useful for multiple purposes, something like a mm/phys_alloc.c. Frank van der Linden may also have thoughts on the above? > - we also need the ability to be able to dynamically resize this or > provide hints at allocation time that memory must be persisted across > kexec to support the non-cloud provider use case > > - we need a filesystem abstraction that map memory of the type that is > requested, including guest_memfd and then deal with all the fun of > multitenancy since it would be drawing from a finite per-NUMA node > pool of persistent memory > > - absolutely critical to this discussion is defining what is the core > infrastructure that is required for a generally acceptable solution > and then what builds off of that to be more special cased (like the > cloud provider use case or persistent tmpfs use case) > > We're looking to continue that discussion here and then come together > again in a few weeks. > We'll be looking to schedule some more time to talk about this topic in the Wednesday, November 13 instance of the Linux MM Alignment Session. After that, I think it would be quite useful to break out the set of people that are interested in persisting guest memory across kexec and KHO into a separate series to accelerate discussion and next stpes. Getting the requirements and design locked down are critical, so happy to facilitate that to any extent possible and welcome everybody interested in discussing it. James, for the guestmemfs discussions, would this work for you? Alexander, same question for you regarding the KHO work? It's a global community, so the timing won't work for eveyrbody. We'd plan on sending out summaries of these discussions, such as in this email, to solicit feedback and ideas from everybody. If you're not on the To: or Cc: list already, please email me separatel if you're interested in participating and then we can find a regular time. This is exciting!