Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp604413pxk; Wed, 16 Sep 2020 12:00:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJ+BtJaz6/VaZyeSUz0zlKOlCldAXmwdd8WLvwxyjc0N1GjL7afrBrOl5SKe5uzLtjzTkF X-Received: by 2002:a17:907:43f6:: with SMTP id mu6mr27886322ejb.244.1600282846856; Wed, 16 Sep 2020 12:00:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600282846; cv=none; d=google.com; s=arc-20160816; b=tI04r7uMs6Sm7KUlUkJJMKk4BQnycdzmC8IQ5hYDuAE/WX/llS4FLhd8SVuarPAiHk Hxyb2YZ8t3Y/PFkNh3OFyL0MhLvXMv1PxByMLWJW7WYjXJTrh521oVZ5/CwJ1pDnivkK h1lGrmwdzT6fb97mQrr4UvPMHdGPFij/UugcA4wpq4UPq/EwK8MwO6iaZbDfKHJ2bpF4 ERgF3kNnWv2KAJzRAT5yS3LqxIh8NyIMYsC1Mn000E193N11Y6N7R8qCoQfPy86hWGlk XNVgn6RfnMsSqjTxRepXwEL0gJpPFrUHngcx1+2eRoEf3WAWC0yLlJFN8HH5m5YBIUDH 6aMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=94FZRbp8AcSQD0vP4z88A9nd5B7RpuwhLxKLeX1vNOE=; b=hHSk6pGWwEvm4FR7grzCt4PpMtKEhWWGZxzxIbDUI0OxqC69YVqBzWy0atZi+9kFuf oJEYXNbMoNMlZ1V3xQMdLAOUJTELR/shDyPvZgwX3AACDFW8htylwUw7Tnl+zhcXZjpo 9jbl7CY4BKIQUs/pb+mxEcnGTHOI3qTUbJKBt/4rZ9y91e/d3Dg7L8IHEsPjEctGySwn qixcMZieXENcOgwD77zD483WhB1XBKtSkHkuHIhYjujXEIIuunwhPiln40M3VcXWaTd+ FtT2gu/2DQbbm4zb60a6KXhRgbz4w7fwDXkY5edGs/HRAiXzHk4QflW6MSWBjllMKrMP peKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=heWYoQlT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n20si13392712eda.406.2020.09.16.12.00.23; Wed, 16 Sep 2020 12:00:46 -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=@redhat.com header.s=mimecast20190719 header.b=heWYoQlT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728272AbgIPS7g (ORCPT + 99 others); Wed, 16 Sep 2020 14:59:36 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:37218 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727416AbgIPRvR (ORCPT ); Wed, 16 Sep 2020 13:51:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1600278634; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=94FZRbp8AcSQD0vP4z88A9nd5B7RpuwhLxKLeX1vNOE=; b=heWYoQlTj5C0MOjNQ33cpBg368KWE0w8nA3RUhdcUbf8ZmizD2PCSDgtrMgJWtGm9MLo6n FGAHN+tWwvUefFHve1gfG8/onB9FZw2ZhviL8hDcg5SrJsQvZj06TdySIYzjqa/z0RZy+m enhRbgnqIFXalxd//L/WPXZ9YAxSNkg= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-432-FmMPfPBYPgyThWG_YCM86w-1; Wed, 16 Sep 2020 11:35:23 -0400 X-MC-Unique: FmMPfPBYPgyThWG_YCM86w-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 984B118BA283; Wed, 16 Sep 2020 15:35:21 +0000 (UTC) Received: from ovpn-66-86.rdu2.redhat.com (ovpn-66-86.rdu2.redhat.com [10.10.66.86]) by smtp.corp.redhat.com (Postfix) with ESMTP id E615419D61; Wed, 16 Sep 2020 15:35:16 +0000 (UTC) Message-ID: Subject: Re: [RFC] autonuma: Migrate on fault among multiple bound nodes From: Qian Cai To: David Hildenbrand , Huang Ying , Peter Zijlstra Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Ingo Molnar , Mel Gorman , Johannes Weiner , "Matthew Wilcox (Oracle)" , Dave Hansen , Andi Kleen , Michal Hocko , David Rientjes Date: Wed, 16 Sep 2020 11:35:16 -0400 In-Reply-To: <91cfda06-0286-cb36-01fb-23cf28facee4@redhat.com> References: <20200916005936.232788-1-ying.huang@intel.com> <2fe2a22235a0474b4a3de939cc22c19affc945fd.camel@redhat.com> <91cfda06-0286-cb36-01fb-23cf28facee4@redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-09-16 at 17:29 +0200, David Hildenbrand wrote: > On 16.09.20 15:39, Qian Cai wrote: > > On Wed, 2020-09-16 at 08:59 +0800, Huang Ying wrote: > > > static int apply_policy_zone(struct mempolicy *policy, enum zone_type > > > zone) > > > @@ -2474,11 +2481,13 @@ int mpol_misplaced(struct page *page, struct > > > vm_area_struct *vma, unsigned long > > > int thisnid = cpu_to_node(thiscpu); > > > int polnid = NUMA_NO_NODE; > > > int ret = -1; > > > + bool moron; > > > > Are you really going to use that name those days? > > > > > > include/uapi/linux/mempolicy.h:#define MPOL_F_MORON (1 << 4) /* > Migrate On protnone Reference On Node */ > > Not commenting the decision for that name. It's uapi ... and naming the > variable like the uapi flag seems to be a sane thing to do ... hmmm ... One can argue there is no need to enforce that past decision today. Also, it could be total different thing with a prefix and all capital letters (correct for abbreviation). Anyway, not going to insist on it at all.