Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1646132ioo; Sun, 22 May 2022 22:52:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCQ3BLCpQNV6cInjiXbHbQKFuDUpjx7igzSVtau4twcsJKeEP5B8D2q/96CqN316Wqd1Wn X-Received: by 2002:a05:6a00:15c5:b0:518:a654:1bf8 with SMTP id o5-20020a056a0015c500b00518a6541bf8mr2611361pfu.23.1653285131624; Sun, 22 May 2022 22:52:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653285131; cv=none; d=google.com; s=arc-20160816; b=VJNDro/+nmSXXSZG+ruZaoKtXkxagR/1dEqWKcsdnb2KLQ5y5p/tGAPKlgyOJv3mVW xo2Eg9SrBtjzclWRKqCEZZ0kqu9mmsD6XzispcpqiTepLImCE/lvNN2TQc7l9cfOC2CD WfqsWp6cgqZ/d0TZoqRmjNZEcT/rR5qaE6Sfak8gH1/q8ntsVcapSijf5qhHaphia1v2 pbNXCkR8jrBFq7vCKUXh0IspqzUlLK8P9xIZ5pgqCotOcAHEfe2e2OcCFNI2PvR2wzqi Ru2CcVQTrRvhvr30aX+qiFTKieH7pLmJNpguBYtYtkEDSy5s0xFdR4ErPgpZk5w+4JUI F/6Q== 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=b11yj7k2aWIJUC0HrAN1JE6uNRPyX/9gm1nWkGjLk8o=; b=oG5QcP9vdzrlLeAYwPPXw3SpoT7VsNSNMnzH/lGCSuQcZtphKNDl8bYEnQvQ3+L3FM N7VjpV5A5Cx1PBBUYWU736M8vrKNeMAGZLHb6f7xZ//FtU95HdW6kDo+KIUp7Hzth/uE y2sNh776KV99lvoPIP3mh/1OcrTPO4xHr/7XN46jBObSnNuImV0bD0J2v4r5rf00s60Z 96CCexJO4FLW6kbc+oGCH09zjkZ4YZB7nw0d2fUhBcXSL62036FOLPmz82KDXW3IGuwJ uFIvC/4biOQyD4xv1hK+lsEkmLOL3ysHvn6WpS0hnHo2gQ4a0JWla68zFSrtfywFaW8y 4MbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=lYHaz3uA; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s70-20020a632c49000000b003fa74c5ecf9si1322565pgs.588.2022.05.22.22.52.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 May 2022 22:52:11 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=lYHaz3uA; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5A8DC2BB0A; Sun, 22 May 2022 22:50:18 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235941AbiEVAcC (ORCPT + 99 others); Sat, 21 May 2022 20:32:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbiEVAcA (ORCPT ); Sat, 21 May 2022 20:32:00 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1C222DA8D for ; Sat, 21 May 2022 17:31:57 -0700 (PDT) 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=b11yj7k2aWIJUC0HrAN1JE6uNRPyX/9gm1nWkGjLk8o=; b=lYHaz3uAV41tpTBPj8WDZh8ZPQ sFOmAQT7jhCNSrbgQhokByzyVkd++Ic4ak1j53Ov4P8TaQVc7wXPASxAdNJi2i3nGioAD6P5hssEp CZTjfna3vBly3tZNaIUELdmOvmK6ThyN75wky9w3yxyRRLMqfugtOr+U98BRM09tYmlMSaRIp2H+c gkxvYiN04zeBX1+i6WOeTOMIN+XJO0YigONeojJcb5spgWMT3o+n1kH+r51hERAeeaCV5JKyBtVS9 3TlEOnaSU4v5zXTPkNTFZZEZJc2DileQIVzkYDEgioEdIzWTgS0xPiTnkmHvXZcSATjbfOq1cMZiW 9orNnJtg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nsZUs-00F1WZ-C7; Sun, 22 May 2022 00:31:02 +0000 Date: Sun, 22 May 2022 01:31:02 +0100 From: Matthew Wilcox To: Andy Lutomirski Cc: David Hildenbrand , Chih-En Lin , Andrew Morton , linux-mm@kvack.org, Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Christian Brauner , Vlastimil Babka , William Kucharski , John Hubbard , Yunsheng Lin , Arnd Bergmann , Suren Baghdasaryan , Colin Cross , Feng Tang , "Eric W. Biederman" , Mike Rapoport , Geert Uytterhoeven , Anshuman Khandual , "Aneesh Kumar K.V" , Daniel Axtens , Jonathan Marek , Christophe Leroy , Pasha Tatashin , Peter Xu , Andrea Arcangeli , Thomas Gleixner , Sebastian Andrzej Siewior , Fenghua Yu , linux-kernel@vger.kernel.org, Kaiyang Zhao , Huichun Feng , Jim Huang Subject: Re: [RFC PATCH 0/6] Introduce Copy-On-Write to Page Table Message-ID: References: <20220519183127.3909598-1-shiyn.lin@gmail.com> <64d0da08-6ffd-4bce-bc66-5097913937b4@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <64d0da08-6ffd-4bce-bc66-5097913937b4@kernel.org> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 21, 2022 at 03:19:24PM -0700, Andy Lutomirski wrote: > I can see a rather different use for this type of shared-pagetable > technology, though: monstrous MAP_SHARED mappings. For database and some VM > users, multiple processes will map the same file. If there was a way to > ensure appropriate alignment (or at least encourage it) and a way to handle > mappings that don't cover the whole file, then having multiple mappings > share the same page tables could be a decent efficiently gain. This doesn't > even need COW -- it's "just" pagetable sharing. The mshare proposal did not get a warm reception at LSFMM ;-( The conceptual model doesn't seem to work for the MM developers who were in the room. "Fear" was the most-used word. Not sure how we're going to get to a model of sharing page tables that doesn't scare people.