linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Matthew Wilcox <willy@infradead.org>
To: Huang Shijie <shijie@os.amperecomputing.com>
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
Date: Mon, 6 Sep 2021 13:09:22 +0100	[thread overview]
Message-ID: <YTYE8tBNAhK0MXsY@casper.infradead.org> (raw)
In-Reply-To: <20210906161613.4249-1-shijie@os.amperecomputing.com>

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.


  parent reply	other threads:[~2021-09-06 12:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-06 16:16 Huang Shijie
2021-09-06  9:35 ` David Hildenbrand
2021-09-09  9:46   ` Huang Shijie
2021-09-09  8:58     ` David Hildenbrand
2021-09-06 12:09 ` Matthew Wilcox [this message]
2021-09-09  9:48   ` Huang Shijie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YTYE8tBNAhK0MXsY@casper.infradead.org \
    --to=willy@infradead.org \
    --cc=akpm@linux-foundation.org \
    --cc=bfields@fieldses.org \
    --cc=jlayton@kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=patches@amperecomputing.com \
    --cc=shijie@os.amperecomputing.com \
    --cc=song.bao.hua@hisilicon.com \
    --cc=torvalds@linux-foundation.org \
    --cc=viro@zeniv.linux.org.uk \
    --cc=zwang@amperecomputing.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox