Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2510928pxb; Sun, 23 Jan 2022 07:02:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJwKiJPWWDQQ2xr8lwWoXmIypWVvoXX6szcuP4kRLZnHvaRqlB6px/trLHhIs1S5GBuAHboB X-Received: by 2002:a62:1884:0:b0:4c1:3c05:3170 with SMTP id 126-20020a621884000000b004c13c053170mr10927184pfy.78.1642950174012; Sun, 23 Jan 2022 07:02:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642950174; cv=none; d=google.com; s=arc-20160816; b=Ch6uV+iQMJ3euHd9t0rKN/qljO/Mm7X6mGxdntgzSf4Shfg8DHDFI0KV58dVAKjqKP ZVj1FSdYUPGCKllq3V/cLMWeJA4+fPCXWfA+A+9SvOo91Qx7f/FOA4AtpMX6cMO3eLye F6hZbtsktByNKPojd4/oQPbAnSF/mqgAjTEwu2I+HVcBid55I+UPIdIM55bkjKEoo1De BB6t1s91dhzTgFX7Ak1Zp5KvGC4eqy8KNKZEyr1uaRVTZs/V4I2BQ2VcExWJYU8yWLLg 5UUZgxt7Qyh0+y5lOjMHvmCS/Ag8wD/qQiIDFGKYIRbQgZYCfvP2rHX+wsWlTRkS8ZRQ EHog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:subject:from:dkim-signature; bh=8T8wzyEFV1gpfcMp5beb/aXparqxKKNBbKGp5R8qWvU=; b=eK9XPN6dWs7ovciNvhEAj3YtE6b07TU89fQIDERnLJEiV4ZjyI7dOjj4PSgWnzTl12 /iKOMMg+Jdpm80QFLL18uw5LEQSuIS6bYJ9lhDbbzQvB6y+f3atHkPvB8UhBdxbwLVih ki/7g+278KJpL+ZJI2Ikawab06WtjudphKVx3shNWXWBZ5SuNcZl9FNb7SjyrgRuKC+u XmYth2tEokNH3xBEzcCYsXjHIN1RZJMdGbng/QznyfT8YcXLEXKR8fI9byyfoBoTsDi7 WYVSbqGjNLtglXF13AZ6vxsAOsWK8hVQYlh48F/LLkJa14V9cOT2x9gctpSdMvb4Ny0a CHUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@schoebel-theuer.de header.s=strato-dkim-0002 header.b=WCkICED+; 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 o22si11404774pgb.263.2022.01.23.07.02.41; Sun, 23 Jan 2022 07:02:53 -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=@schoebel-theuer.de header.s=strato-dkim-0002 header.b=WCkICED+; 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 S232471AbiAVKSu (ORCPT + 99 others); Sat, 22 Jan 2022 05:18:50 -0500 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.52]:37615 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230212AbiAVKSs (ORCPT ); Sat, 22 Jan 2022 05:18:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1642846695; s=strato-dkim-0002; d=schoebel-theuer.de; h=In-Reply-To:Date:Message-ID:References:Cc:To:Subject:From:Cc:Date: From:Subject:Sender; bh=8T8wzyEFV1gpfcMp5beb/aXparqxKKNBbKGp5R8qWvU=; b=WCkICED+u8UqCXNAn4Q6ec3VIfgAQioAw1TAu4XkEqOOpuIlCorxIE+ICU9SYmvjXt QFP5iTmHrT8aCDSd/MDbYLGBwbtQyYb8b2+E81yESNOiCtNCHrLxHZ8tqQRmz2EJ3Z8t VvTY4VoAES0QxOaNjkSyNY1lbtrkHz6+2EonIYa8SiCeYuHJl0IzC0sI1K7BJO1gzpff QR2Cyr2lwLTbQh97+2Cpx/hF0uh1sXirZQfBVTcnlUGJJzIaEUc2j1Hu0jYuSq/1v1GF BkUHu1f9Q50Ez8UYUlUxYLMkBp0/yT42fvV8upU/J9MYmSgKE9/20kTcQlpDT+MLSr5P 2tGA== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":OH8QVVOrc/CP6za/qRmbF3BWedPGA1vjs2e0bDjfg8OiOrPJifeRMRhMYPeob5ctvymt3ppSxzy7" X-RZG-CLASS-ID: mo00 Received: from [192.168.2.102] by smtp.strato.de (RZmta 47.38.0 DYNA|AUTH) with ESMTPSA id 036fcey0MAIEB3H (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Sat, 22 Jan 2022 11:18:14 +0100 (CET) From: Thomas Schoebel-Theuer Subject: Re: [RFC PATCH 0/6] Add support for shared PTEs across processes To: Matthew Wilcox , "Longpeng (Mike, Cloud Infrastructure Service Product Dept.)" Cc: Khalid Aziz , Barry Song <21cnbao@gmail.com>, Andrew Morton , Arnd Bergmann , Dave Hansen , David Hildenbrand , LKML , Linux-MM , Mike Rapoport , Suren Baghdasaryan References: <20220121010806.5607-1-21cnbao@gmail.com> <0ec88ae7-9740-835d-1f07-60bd57081fcd@oracle.com> Message-ID: Date: Sat, 22 Jan 2022 11:18:14 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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. The currrent implementation does not yet use hugetlbfs and/or its proposed / low-overhead / more fine-grained and/or less hardware-architecture specific (future) alternatives. For me, all of these are future options. In particular, when (1) abstractable for reduction of architectural dependencies, and hopefully (2) usable from both kernelspace and userspace. It would be great if msharefs is not only low-footprint, but also would be usable from kernelspace. Reduction (or getting rid) of preallocation strategies would be also a valuable feature for me. Of course, I cannot decide what I will prefer in future for any future requirements. But some kind of mutual awareness and future collaboration would be great.