Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp533975pxb; Wed, 1 Sep 2021 04:43:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnDzUKdBDJwI+pINwJ6+MT+hfm78UnRjK0cSC9eKclZUbBeKJrvyQFz89YsMUwUH0WtJLQ X-Received: by 2002:a17:906:4346:: with SMTP id z6mr36202128ejm.403.1630496589200; Wed, 01 Sep 2021 04:43:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630496589; cv=none; d=google.com; s=arc-20160816; b=hKflkz8coDe62Jryh8kzVMa3VN94B91VEN+Y6DKH0cs6htdxH8olFrB9u85/ptFMbL +ft5jb/B/3jIJCkMh0JCuCbwh+m6ckGcBTyX6Ex8mpuHEwM1UbpZ/DeOrOE89HOkDNFs 8yL6L/YDFNR7HZf//wxCm+z98gr/CYVZow9voOJieGw5EVEwQLQPSrGWoVqAa/SmJcUb Fll0AHbB7kD3d1x/zTCutyNYlumibO4WI/TLX9jHRi6sn4Akl2OcDkX2gfrJhGdrdNlL sfh3sgzZjZdtpj3PHXxWhHw+5EdUMy8U5zMKyl8BiFXelY46XNtxY6OGlqMlhpW0Og5G rmYw== 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=+dQK5IdXVw1yYS5o1jTuz3XuwDlTgndYHGD+Wfsq0ms=; b=k9TFl5Fh4nUqIbhg+nQ8P/X3zT0d3o/mSjMWxhn7+sNVW/wkhmFptNXu/w3EJ4l4Zf b0rLnT3in/zj16IjtDMvOMxrdlpxBi9Wrho/oAGU7d0f7BOrb18KDs8U/Qj9Vm4fKUuy LiX62XgC+aVK+a3CUeAAgr4pLjYZc9Hu1yFHK01J+W9H/USVvej6UOaKhbFtzTE3lRR1 FPID6p0/bEZ37UjNPSLMgWg1DqpjPWXPFdrGNvDXF70MCHnGeGjbUddcO3VRTYpuZATL FFukKAhk8s/a0Iwl9RVejVbwh2bXs3n4xXf6I7l8NNj91W254TxigmbHH/MoR1EyPbLo Qwow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=tJ7GqxWC; 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 dm12si11519651ejc.744.2021.09.01.04.42.24; Wed, 01 Sep 2021 04:43:09 -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=tJ7GqxWC; 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 S243849AbhIALfe (ORCPT + 99 others); Wed, 1 Sep 2021 07:35:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243805AbhIALfd (ORCPT ); Wed, 1 Sep 2021 07:35:33 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02E4EC061575 for ; Wed, 1 Sep 2021 04:34:37 -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=+dQK5IdXVw1yYS5o1jTuz3XuwDlTgndYHGD+Wfsq0ms=; b=tJ7GqxWClGIuXimww6oVVwdOwZ bEcpqk2eh+HJaRGutpm3ntp9EL7HJViLBto4AnIBKwTw5GW0I6i3HGgfIPBOrCHpl7Ycfvf1JLYu5 WK1/MvmCmy9cMxl8l9A2Xi8cB7ISZw+jm39i0uC2ehzoSvDrCStqQ1dxJwHZhDwlAVWbvBzd11jUh YKrU3OA+mEi8rtu6FMi5YPygRmWqKXTIv+AeZ2zoT5WJJiZ2fLPu6aR+pOk9B+H6r8QSJHS30MTY/ mSDQ0mtOSzcCA4KxvP30fMSxsXs6jvncU96COKT48mXxEIUuI4O4rVVqmRiVW0NrJlra1otklChW5 tRNFgGqA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mLOTj-002Ev2-Ni; Wed, 01 Sep 2021 11:32:38 +0000 Date: Wed, 1 Sep 2021 12:32:27 +0100 From: Matthew Wilcox To: Huang Shijie Cc: Shijie Huang , torvalds@linux-foundation.org, viro@zeniv.linux.org.uk, akpm@linux-foundation.org, linux-mm@kvack.org, song.bao.hua@hisilicon.com, linux-kernel@vger.kernel.org, Frank Wang Subject: Re: Is it possible to implement the per-node page cache for programs/libraries? Message-ID: References: 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 Wed, Sep 01, 2021 at 02:25:34PM +0000, Huang Shijie wrote: > On Wed, Sep 01, 2021 at 01:30:45PM +0000, Huang Shijie wrote: > > On Wed, Sep 01, 2021 at 04:25:01AM +0100, Matthew Wilcox wrote: > > > On Wed, Sep 01, 2021 at 11:07:41AM +0800, Shijie Huang wrote: > > > > In the NUMA, we only have one page cache for each file. For the > > > > program/shared libraries, the > > > > remote-access delays longer then the local-access. > > > > > > > > So, is it possible to implement the per-node page cache for > > > > programs/libraries? > > > > > > At this point, we have no way to support text replication within a > > > process. So what you're suggesting (if implemented) would work for > > > > I created a glibc patch which can do the text replication within a process. > The "text replication" means the shared libraries, not program itself. Is it really worthwhile to do only the shared libraries?