Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2520621pxb; Sun, 23 Jan 2022 07:17:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwHyIUnye/vNBXJ3MnM8YAnT6d2xe9YUqa51dCJnqURV1xkWRr2mXa5mbD2oFpV4r8BxoEf X-Received: by 2002:a17:903:1ce:b0:14b:e03:2d with SMTP id e14-20020a17090301ce00b0014b0e03002dmr10814619plh.128.1642951062343; Sun, 23 Jan 2022 07:17:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642951062; cv=none; d=google.com; s=arc-20160816; b=A8iRvMxDBNCM47QtrOIx+NSCUFOXakmJyRm4+T/IKOUwq70u82gIYXJgNIDAbdrXvn BBRXLbobgonCnNrV8Ryb0E7Tis3nrJl/0Lr6svi0PBdMITcVYA3j/ywgObng8N69NT2d p5AQupI94MXwLOPPX64m5uG6MCBUxKdbukUfInV8E58McriqpRlLte6wnFZHZS9gFajs ca2UclC/PmSIu8L8I4ZRyGFFuij/zalfFe2YznCpg5qJOgkLrww8tKAGr1RezWEqNcL1 bhfaOgB6nTWO9X4MYEyIJF07SH3aQPB0NbWOnLxwkn90oWMBtQ8oh8QoVewNq4z+C0zr wU1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=kb74F43BLvLHWOm3OwbStCcd3tcNlftQe6dpkaPslG4=; b=f3uFaNUxZknvV+RhHk6mrTHvS1HM/LH/KvsBRfmrvJmTCb+sw69x+ee1edzQ0YLP9V W5Ef6rB1iMhwjnS3e7NgEUtfrPgCF5gPBxfLud2amkpRXnmxYw17me/VejkKeKhkuuF8 ZvM3PZZN+z79YTV+o6Uyb3gBID/u7efN8E1YP7UwIvLMb6zTZDwS3lLHfXxwWsMB+ojQ J7DrZLkzgE0hvq1xOkhscJEcYjOWM9TOCSXl9me+bf5lNO/pKmUNFIBGj73rr4fHyElB iatG/XEw/aVfT4DkvDG0WcdXe0VmM825EkAt9tepTChBDtdOm+qEku4P/F8YS9rWLUjt qCAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="jvi1a1/c"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ob7si7539276pjb.143.2022.01.23.07.17.30; Sun, 23 Jan 2022 07:17:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="jvi1a1/c"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234012AbiAVQJl (ORCPT + 99 others); Sat, 22 Jan 2022 11:09:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229581AbiAVQJk (ORCPT ); Sat, 22 Jan 2022 11:09:40 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8073BC06173B for ; Sat, 22 Jan 2022 08:09:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=kb74F43BLvLHWOm3OwbStCcd3tcNlftQe6dpkaPslG4=; b=jvi1a1/cpna0okOzXXnVQ3/7Vy megpSp0hPM9ZIPP1FIzcMtnA1eNBNjsr+oDk+2DO3XYvF5a9YQKrw33LtEYC5wcy3B6GX3InyZDvQ NaeU3bDHj9HyOoa5rvtkRBGq1cr9yN4Ne263a3Q3g1I8LDyvyS3FYWqJCpwunM3nuE10CLlChLDVZ NddyjQEgrb4VSQBT27gGv/XfG2J5Mz0yvXjBq4cLOK+Agqs89TJWWR/iJTLTy8Wknh0SoHxda06fK YmIl4Wg4Kjdoc5uuBFexqZdB7ViLXBL/QHoXmqk6fRZxOwYjOQKk9vzYfspjR7rIOgTi5QUP1vzCW 2Iqq6ewg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nBIx0-00GT0o-0O; Sat, 22 Jan 2022 16:09:14 +0000 Date: Sat, 22 Jan 2022 16:09:13 +0000 From: Matthew Wilcox To: Thomas Schoebel-Theuer Cc: "Longpeng (Mike, Cloud Infrastructure Service Product Dept.)" , Khalid Aziz , Barry Song <21cnbao@gmail.com>, Andrew Morton , Arnd Bergmann , Dave Hansen , David Hildenbrand , LKML , Linux-MM , Mike Rapoport , Suren Baghdasaryan Subject: Re: [RFC PATCH 0/6] Add support for shared PTEs across processes Message-ID: References: <20220121010806.5607-1-21cnbao@gmail.com> <0ec88ae7-9740-835d-1f07-60bd57081fcd@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 22, 2022 at 11:18:14AM +0100, Thomas Schoebel-Theuer wrote: > On 1/22/22 2:41 AM, Matthew Wilcox wrote: > > On Sat, Jan 22, 2022 at 01:39:46AM +0000, Longpeng (Mike, Cloud Infrastructure Service Product Dept.) wrote: > > > > > Our use case is that we have some very large files stored on persistent > > > > > memory which we want to mmap in thousands of processes. So the first > > > The memory overhead of PTEs would be significantly saved if we use > > > hugetlbfs in this case, but why not? > > Because we want the files to be persistent across reboots. > > 100% agree. There is another use case: geo-redundancy. > > My view is publicly documented at > https://github.com/schoebel/mars/tree/master/docu and click at > architecture-guide-geo-redundancy.pdf That's a 160+ page PDF. No offence, Thomas, I'm not reading that to try to understand how you want to use page table sharing. > In some scenarios, migration or (temporary) co-existence of block devices > from/between hardware architecture A to/between hardware architecture B > might become a future requirement for me. I'm not sure how sharing block devices between systems matches up with sharing page tables between processes. > It would be great if msharefs is not only low-footprint, but also would be > usable from kernelspace. I don't understand what you want here either. Kernel threads already share their page tables.