Received: by 10.223.164.202 with SMTP id h10csp1617370wrb; Wed, 8 Nov 2017 07:04:41 -0800 (PST) X-Google-Smtp-Source: ABhQp+Q4V8qbLlcb4/ZQbQ5JfHgxP12rlMcKQI7za580agPP6XqOaJ3zAZYpgut5SUH4u480QOdC X-Received: by 10.159.207.149 with SMTP id z21mr722896plo.258.1510153481403; Wed, 08 Nov 2017 07:04:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510153481; cv=none; d=google.com; s=arc-20160816; b=WvGk85VTn8ps6IqklUSuFIrndktW9LzItVjKQ9z6iu8lLmN3uMKHk4SnlzvEGvWqc+ xtG+eSa05YnJfJNd2m6ZhBId4e+8d0Mh12IBcUEkP1PBf8Qieuuw0VZjSbEbKQ0NwhwL Et2nJ2T9gFao58D9beYJzqCPY62CKCpmCi9rP+oSDegd44usCUTx9WRrHrlpnETouQ44 bCywDVRIGmEl4Ut9kVG5oilTP6dtRpSePNThOhkWpAPhM/VQS4bMJnNI1xdXiXNbxOIr SokinwlZkza0fpqVbxjOunfy/CVtJHnknGy9yiI2Zm14ITKFOCaT7ZU7vMyw6qLyvfXQ gNmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=rtagjsvL+eAKtW89QMJln3LT5dwI4ICuyfB2gtZHLOY=; b=DjmRS/khR19iMNccZpw2jt3PTHtODgqxKVCeKcVAGTbwG/FtLKKfXzU43GnzF24yEf meyYh+pADZEiLEXd/PD1iap+VNF8Yzv8xlfCjTAYZP3IJQV8FgN/MCBpAO13Ljcuel03 Ng5LuGyp7dJsmtoAYGClWXzf9vvh/rJ8mPrZFli3cT9BON8MVlyO3GgATaeFA15nKzi6 Im4eRbvbJAD/9CiCxCSYLzJpmXtFmbrW061Ph2D8/gVNVKPbkqA8395Lye/u6G3z2pnq +vKnHBM0yve82lqphrHl3Wwh9Cmx7ZpqwBVcazLrDZ3CftPDlZBEQenG+Gwde7o7a7ut DBAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s13si3973718pgp.418.2017.11.08.07.04.28; Wed, 08 Nov 2017 07:04:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752648AbdKHPCk (ORCPT + 83 others); Wed, 8 Nov 2017 10:02:40 -0500 Received: from resqmta-ch2-12v.sys.comcast.net ([69.252.207.44]:37218 "EHLO resqmta-ch2-12v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751716AbdKHPCj (ORCPT ); Wed, 8 Nov 2017 10:02:39 -0500 Received: from resomta-ch2-02v.sys.comcast.net ([69.252.207.98]) by resqmta-ch2-12v.sys.comcast.net with ESMTP id CRr1eikOOkqGZCRsEesKHd; Wed, 08 Nov 2017 15:02:38 +0000 Received: from gentwo.org ([98.222.162.64]) by resomta-ch2-02v.sys.comcast.net with SMTP id CRsDe8nlBN5w4CRsDeERBn; Wed, 08 Nov 2017 15:02:38 +0000 Received: by gentwo.org (Postfix, from userid 1001) id EF1881160190; Wed, 8 Nov 2017 09:02:36 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id ECC9D116017D; Wed, 8 Nov 2017 09:02:36 -0600 (CST) Date: Wed, 8 Nov 2017 09:02:36 -0600 (CST) From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Yisheng Xie cc: Vlastimil Babka , akpm@linux-foundation.org, mhocko@suse.com, mingo@kernel.org, rientjes@google.com, n-horiguchi@ah.jp.nec.com, salls@cs.ucsb.edu, linux-mm@kvack.org, linux-kernel@vger.kernel.org, tanxiaojun@huawei.com, linux-api@vger.kernel.org, Andi Kleen Subject: Re: [PATCH RFC v2 4/4] mm/mempolicy: add nodes_empty check in SYSC_migrate_pages In-Reply-To: <4b08f1e9-5449-6ea2-e7da-65fe5f678683@huawei.com> Message-ID: References: <1509099265-30868-1-git-send-email-xieyisheng1@huawei.com> <1509099265-30868-5-git-send-email-xieyisheng1@huawei.com> <04e4cb50-8cba-58af-1a5e-61e818cffa70@suse.cz> <4b08f1e9-5449-6ea2-e7da-65fe5f678683@huawei.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-CMAE-Envelope: MS4wfHDAEkjOkfc0yuVoI90pI+0hySZ1dSKaZkwvv5fLj7As3RfSFQa2RKRCf48nVvT9sFIpkpJ/mGGD+doT8cKhh/t03HM0nCRwJQhJRNeRlxGRGmaH2OLh 2iPSvLwQ9DF3YkRZXzIBonc791g0/pBWTe8otb4aHpycRhT454CL7rXT/uxL+nto7TUq7rP83ogbO3m/4hac2CXf0ICbqYFG2CkNS04zqcZ5mpNBKDxt+8PR A+RaBnzr9KDR8mHsu2yFMaJ9IPV9YSnbMLDXhLKVFtAJblzQi1qM7AGajUe600BUy6nt9zNhKbgFHnDOnanICd1s0cDXnFGR+0A2exNS18RuWQLsK0VPZq80 fwhKUnwJ3oOWcZg7D/cUthidNgVz7od/azc4cOpDhRkLIYj1U80eSxESCAlrO5NM7kgjAr8j5ITZJkLKL1PiZS8Xy3wYdPds4tTFpZjsuXHcWy4S5MKmjXty eS5LSVisXWUpWLtkLDiy21e1ioioXN57BCAHSW0CviMMAMmoGBf6Jbf2bnb1nzH1SnqgJkZh/3nqL6Jl Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 8 Nov 2017, Yisheng Xie wrote: > Another case is current process is *not* the same as target process, and > when current process try to migrate pages of target process from old_nodes > to new_nodes, the new_nodes should be a subset of target process cpuset. The caller of migrate_pages should be able to migrate the target process pages anywhere the caller can allocate memory. If that is outside the target processes cpuset then that is fine. Pagecache pages that are not allocated by the target process already are not subject to the target processes restriction. So this is not that unusual. From 1583468208105779132@xxx Wed Nov 08 03:49:20 +0000 2017 X-GM-THRID: 1582405894727115875 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread