Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp731278pxb; Fri, 3 Sep 2021 12:06:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvKBFq1MdpcqBJezThE9ynisg/rcVmvHdMujRik+44Y1F3XnsR8UK772SNr//xH4afTtT7 X-Received: by 2002:aa7:c04a:: with SMTP id k10mr529400edo.32.1630695981028; Fri, 03 Sep 2021 12:06:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630695981; cv=none; d=google.com; s=arc-20160816; b=UVPMBiqdVldX0nuAgggOUI64l4QNSjCEJkXQ/BkLJUx4K8i7RsTm6Xnr2UOweCkyi1 Ca9Mhly2imd1SXWw8k+ZAA31h14kk+42wiF9NW4lZb5qeEgUYQ+NK868azk73nA/bMrB 0thPsoWpM3JISTt3BDp72JGwpQEQftC3sx4oQsbSd8wf3m61pPYMKmbpzKbS2zG4Nc6s W53vOynPWNCi3iNnsPFL4wV32LYoeLvBib1EcGG9HVkUlls0rZAtkFT11ysuSbl55DOE 1HSarF7BrKBdTNWuQbCpvqS7ssIlHEmZ/+t3Yl/9iaohyEXnYW4/3eTtVB85+lzUSR7i 8Hdg== 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=aH/w/+Cnoi5Txr0//vfK/74qoG/0s9SMxp4KCpOEQNc=; b=prJ5w9dvjBWcW4W+UrMaR5FDDNKqMw7GE5mJy1vsU3LsPVj4mjXXRkjTeZAk8Cuhxx vB3TxTFyjoYOKfG0B7mrK1igXB326N1yscgDmc8skPc/k8zZsihPjzRrfFdhTnkr96Sh UyxgdWuM6dqk8jY4JIxG2pU5WjrD3+valHdP5cwsf9a+Yu7nO1yGxiwHiw+1gryxAF1v YFb5x6GW3suw9jn2nVDqUCq3ladmF89M3vCbC7EdSr+CC0a+4OdhYihGyNjcFTLrlTDF SjLJuW9riTMhGucuLr4kNWKkzBp9hNvle+EloGeilwruNIfJajd+x5PgFO7x5GioucpR SruA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Udk67ofu; 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 hp6si1894ejc.477.2021.09.03.12.05.57; Fri, 03 Sep 2021 12:06:21 -0700 (PDT) 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=Udk67ofu; 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 S1350593AbhICTDV (ORCPT + 99 others); Fri, 3 Sep 2021 15:03:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239381AbhICTDU (ORCPT ); Fri, 3 Sep 2021 15:03:20 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F383C061575 for ; Fri, 3 Sep 2021 12:02:20 -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=aH/w/+Cnoi5Txr0//vfK/74qoG/0s9SMxp4KCpOEQNc=; b=Udk67ofuMPuRnJfAeSghwUmZR3 8t2sYr5DhN6waO8X8Bk9jTiLqDqp/m3y25qQbEUaE9ESWhBa3JP3YY/8NyHm0CWcZ8CxHCt64yDyG xwitDvpshWWmP7kquY3hSizYINAjhsTo242vfIpX0aAMtuNWDc1vjOfPf4neM4XVMwSOzEVbcruYO M57mbCbwWmtkwZ1ePynw+AyjNPd0sjBICUmFpvdT1yBkslO54lt/cQpkA37n/54mbLRP/krQdAblY zrsCsdQMYsmkqJwDdvGA6M1Np8lDW5YUR903PZCRYBIbnDgFmg4yjacx4C3MXH929iDE5DNDGsxQy 6gi3G0sA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mMERa-004hkO-HP; Fri, 03 Sep 2021 19:01:49 +0000 Date: Fri, 3 Sep 2021 20:01:42 +0100 From: Matthew Wilcox To: Nicholas Piggin Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Shijie Huang , song.bao.hua@hisilicon.com, torvalds@linux-foundation.org, viro@zeniv.linux.org.uk, Frank Wang Subject: Re: Is it possible to implement the per-node page cache for programs/libraries? Message-ID: References: <1630552995.2mupnzoqzs.astroid@bobo.none> <1630652670.aplcvu6g23.astroid@bobo.none> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1630652670.aplcvu6g23.astroid@bobo.none> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 03, 2021 at 05:10:31PM +1000, Nicholas Piggin wrote: > Excerpts from Matthew Wilcox's message of September 2, 2021 8:17 pm: > > On Thu, Sep 02, 2021 at 01:25:36PM +1000, Nicholas Piggin wrote: > >> > I have been thinking about this a bit; one of our internal performance > >> > teams flagged the potential performance win to me a few months ago. > >> > I don't have a concrete design for text replication yet; there have been > >> > various attempts over the years, but none were particularly compelling. > >> > >> What was not compelling about it? > > > > It wasn't merged, so clearly it wasn't compelling enough? > > Ha ha. It sounded like you had some reasons you didn't find it > particularly compelling :P I haven't studied it in detail, but it seems to me that your patch (from 2007!) chooses whether to store pages or pcache_desc pointers in i_pages. Was there a reason you chose to do it that way instead of having per-node i_mapping pointers? (And which way would you choose to do it now, given the infrastructure we have now?)