Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp2775399pxb; Mon, 6 Sep 2021 05:13:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzl4/rWJBkCcWTGYk6Wr5FeFeurPvYm+nm7IC5WycysbsAiMAgm2QvLJ6DAMKiBH4T8DqW0 X-Received: by 2002:a17:907:50a1:: with SMTP id fv33mr13179810ejc.128.1630930380976; Mon, 06 Sep 2021 05:13:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630930380; cv=none; d=google.com; s=arc-20160816; b=NRBJK/o/vES8gLR3jrlTnCj4NnJpS1fLERztdSJB/GbvBroXxFh56txCzQ9bFThQo8 7e07x1Jsa2s4lz18HlKxSoP9qkm31voXd9IsJoT3SneQdDfl/NwlgY9tsXzGbrB6zWlc yrOhW0dpf5i7Xq7B8xJaN/BNFJfY5pAlOxXpZgmmvFFQdSNfwYoRG2kxsvXMPTS73mYQ 1XHHiv7JFBXdZRrBwhjSosZw+weVMJQ3/bEJ0+6ByJdESL6azXPP6Zs2wnE3tdD5oAnS gTjmgZ97X6cqC3AMtudLpYbTY7UekrC96XsVUPG474g2AZ/gcYuUX4PQKxv2DWxc+iWw dApg== 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=rCmh1KfC0hUsWI8m+mOwABNgKJfWxkdKYiq+H56M0BI=; b=jKg2ybc5ad6OAaqiKDK0xxUTPsa7xOBS1JwtZgvDyiDH+D0E96O9z7jCyI5fhvjRu0 58jPTeAzUV4oDyVq7N5uND4RaMpcBUEF3c1zmqrUrqGhpLBnmhhJwzElPhS9JCxC97Lb iKTuJpfsmdoNZVSBQVfJCJUvaXP/kACM2Wvn4GpsfkAK67Ur/c9PTgT0D8dJ00FWwy3m MsmZckfiaxi/N9SCrOnDzTsg6ZlsuBwBQB2Tngmrdiqa0ahe4W0uQ+EPhHgBDAvG6kKn 4E1kHY+FYKYCnnt4aog/YIyJZP261Mup22W5RSDBzHcbczidSRwwllCB0OJ8nyCtpDQq wzDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ufiQMk8b; 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 n18si7923973ejl.774.2021.09.06.05.12.35; Mon, 06 Sep 2021 05:13:00 -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=ufiQMk8b; 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 S241644AbhIFMLu (ORCPT + 99 others); Mon, 6 Sep 2021 08:11:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239993AbhIFMLt (ORCPT ); Mon, 6 Sep 2021 08:11:49 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F1FFC061575; Mon, 6 Sep 2021 05:10:45 -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=rCmh1KfC0hUsWI8m+mOwABNgKJfWxkdKYiq+H56M0BI=; b=ufiQMk8bZfkG/iYyy5zcmQBoC6 G+OXykPBnP9uwZNhQ1dlHMEu9C1VGHgnCkEws2jkLqMEDDI/8Xk6ZK1q65QvTfIhaAME0TzSA4+ZM yRHoKXzkKUqvyP++yPGRrqfqavRiASeddqYMprOSu2tJ7fYBYskpZX1ro5X8j/yP7o4z+XSVEa2+w kzGnLSolTb+z7hUg35HtLr/0bUzaBrUcHLP/VsZCeOt62g3ZLH2r7U0fHN4UNMTQnN0eNUC0+3eAJ V38lTXHRSj33yW5ZEtyGhN+kerZpCW3GU84X/Gge80mrApUsrt05PzLV81lF6gx7wGZvsU0TqHPAh oUmS4bCA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mNDRC-006vSd-In; Mon, 06 Sep 2021 12:09:36 +0000 Date: Mon, 6 Sep 2021 13:09:22 +0100 From: Matthew Wilcox To: Huang Shijie Cc: viro@zeniv.linux.org.uk, akpm@linux-foundation.org, jlayton@kernel.org, bfields@fieldses.org, torvalds@linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, song.bao.hua@hisilicon.com, patches@amperecomputing.com, zwang@amperecomputing.com Subject: Re: [RFC PATCH] fs/exec: Add the support for ELF program's NUMA replication Message-ID: References: <20210906161613.4249-1-shijie@os.amperecomputing.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210906161613.4249-1-shijie@os.amperecomputing.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 06, 2021 at 04:16:13PM +0000, Huang Shijie wrote: > This patch adds AT_NUMA_REPLICATION for execveat(). > > If this flag is set, the kernel will trigger COW(copy on write) > on the mmapped ELF binary. So the program will have a copied-page > on its NUMA node, even if the original page in page cache is > on other NUMA nodes. This does absolutely nothing for programs which run on multiple NUMA nodes at the same time. Also, I dislike the abuse of the term "COW" for this. It's COF -- Copy On Fault.