Received: by 10.223.164.202 with SMTP id h10csp319688wrb; Tue, 7 Nov 2017 06:55:47 -0800 (PST) X-Google-Smtp-Source: ABhQp+RO1IU7xxZinzSnA1oKt7kcqpNX5vC5bK+Ge7rgQrZez3/NZnwzoZt0kd8Zy6nbXejcqLiJ X-Received: by 10.101.67.3 with SMTP id j3mr18752411pgq.278.1510066547107; Tue, 07 Nov 2017 06:55:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510066547; cv=none; d=google.com; s=arc-20160816; b=fU6HVrMRB/XCansjzsu53OGqQBuL+6hUumvlBJ8ct2Q3v2KTB+AgxZTZERxpSU4a5i U45mP/GaKoA+Ykb11NQel7ITWI2QKm3WlB1Ft3oCziTywg08rYBXHNfPz3df66CWn2lF Jpx8McsynQ+o0UCze04fIXT8KYkk6LDjXlMUIoCsFQELAMwYBeJMn/42OWLK6fQlgYzb RQaaSSFVnzQJ58IoGMgI2WYggSmpJTV9CrW6QSuIK/hZRUp/lfWTh3jaDTGD+WSTRNbo ND0eDIt6VpCmSQanQ4PdHoBf5XsChAIKPj6qD840chcqPsiWv2nxYKkYcpV5v6WfaU6Z nj9w== 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=7dcya7SseuSMMPA9AzUMOa6S/W+zUbb7ctHBonRZZ0w=; b=L50vUlHrJ8f0hTiZzs051y4CP8+jyicI4pmQWDP6/uUot5AG9mbZTU3cojlVnvF9ku lGmlY++uwu9PvAp1J9vVL5X9frQFqLTuxclhg0IPFING1vXTjukG7qrh/5LLE7W9Fw+R CFfIVpMAVTuvSZRw0X9baxSFQpgD+qJp/jNL8MUIWSG0097mjudceG47fWPrbLU4/jqU Bi2UPKvXv0MJeAUFHtcqLg36yLKrypsfcVJtU5OkfkgI5jJcAJcOdWBE9IvMQuqFcNJO ++s0Io2erCP7HGRt5wWwywNZR1eNEvkgZnej6MnzorSMrPn7QJKuXRCZg7F80IkkCUZa 585Q== 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 b8si1424044pgv.271.2017.11.07.06.55.34; Tue, 07 Nov 2017 06:55:47 -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 S934494AbdKGOyv (ORCPT + 91 others); Tue, 7 Nov 2017 09:54:51 -0500 Received: from resqmta-ch2-11v.sys.comcast.net ([69.252.207.43]:57944 "EHLO resqmta-ch2-11v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934238AbdKGOyt (ORCPT ); Tue, 7 Nov 2017 09:54:49 -0500 Received: from resomta-ch2-03v.sys.comcast.net ([69.252.207.99]) by resqmta-ch2-11v.sys.comcast.net with ESMTP id C5G3eorjqGeO6C5H6eSpY8; Tue, 07 Nov 2017 14:54:48 +0000 Received: from gentwo.org ([98.222.162.64]) by resomta-ch2-03v.sys.comcast.net with SMTP id C5H4eiOXK0v3OC5H5ecaWU; Tue, 07 Nov 2017 14:54:48 +0000 Received: by gentwo.org (Postfix, from userid 1001) id 7A6F111602C5; Tue, 7 Nov 2017 08:54:46 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id 771751160140; Tue, 7 Nov 2017 08:54:46 -0600 (CST) Date: Tue, 7 Nov 2017 08:54:46 -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: Message-ID: References: <1509099265-30868-1-git-send-email-xieyisheng1@huawei.com> <1509099265-30868-5-git-send-email-xieyisheng1@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: MS4wfACrC7NkqcTWsOyWHFNMwro06SyVeM4Xwv3btDxyjCbfd/Y5bZXmv8g+4QIMoYbtuLdlkRPdg6GU3qtL2iCzpGE+WDGuEU0llg/uQgJ76/EUHt0FAaf2 Su/7AoENDFEHZDEvdwbtMZPKEwGQN3X57OF0AvQYpCJ3fukOiU0zarMgwse4q2j+z8AFReQmWc8dOpQdR8D9ic7Bkx4+/7ayG4TINwPz9AUeQM+C5/89yaoH sIStt15bwEKhE/4ogb1Pp808Yvw6h41xPh3pvYs8xNUoEEvwEsZ0cFrRyBQ1or3YJhpl50KTiFeY819rk5i5ayFyc1aHmtPTbcC6W9PntxgXguY7ZeP7buR4 WWGmFtrSkjbIAFzOM4Wo5MzvpvXdxioO4KhITPDaODWPChnmaydtMZLfy7LPPkmWcpbyirn8v+WHQrZ7eKEJhIKZcMHmkPej1Ql9JPlAQsC64C5xbywH9PQu vKLWT9Ou/h7WtDlqcvD04eSZmVCHfP5ep3RZOhBSEh6f2RvjBX/iI1VbuPBOTIH6IwwP7a1bXMcfgxuF Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 7 Nov 2017, Yisheng Xie wrote: > On 2017/11/6 23:29, Christopher Lameter wrote: > > On Mon, 6 Nov 2017, Vlastimil Babka wrote: > > > >> I'm not sure what exactly is the EPERM intention. Should really the > >> capability of THIS process override the cpuset restriction of the TARGET > >> process? Maybe yes. Then, does "insufficient privilege (CAP_SYS_NICE) to > > > > CAP_SYS_NICE never overrides cpuset restrictions. The cap can be used to > > migrate pages that are *also* mapped by other processes (and thus move > > pages of another process which may have different cpu set restrictions!). > > So you means the specified nodes should be a subset of target cpu set, right? The specified nodes need to be part of the *current* cpu set. Migrate pages moves the pages of a single process there is no TARGET process. Thus thehe *target* nodes need to be a subset of the current cpu set. From 1583411993402269985@xxx Tue Nov 07 12:55:50 +0000 2017 X-GM-THRID: 1582405894727115875 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread