Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1028107ybm; Tue, 21 May 2019 07:35:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqwb2aRQGpn1dwOhKdrgPijKFAoo8wOCdl/QMq+iAfoJWJHz36vkzn9JLR6Rgk2h6M3hDotp X-Received: by 2002:a63:d343:: with SMTP id u3mr82351601pgi.285.1558449356416; Tue, 21 May 2019 07:35:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558449356; cv=none; d=google.com; s=arc-20160816; b=uNtL9ZobCbDGV+02OBDUmP5jhjboJquijBWIIHwcluxk9Pc0IV9RdFjC1DBO0Dvcz0 spF1hQ9wn2p367GeeLWch+TI+sfH3djKxCNMhzhkhRsoh/lobdsz94kyLYfHVjTUmg0s ptWDeFUfa80y+oRIT7hfXFB7w0UmMz6Mk+PsFJDw8OKEf55IcgYMg3UANEcnaB5SQ+Yt w0jLA+X9IdM92uj89SEpMnjQsX00y1VLMOgPXNEpBgB1ywOov0wF1KrlybGp3RjL80XW dcPv8s5gWbiqa+g9eS+8dXOvnHXsNNr6MEmV/+/EGcdYnjIjqDPIVdL5A3pUgwc0TGbk xt5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ps/3V6qhcWGFRCjxxzPpDYRepYvALK4cfAnZaV51QWU=; b=yHDPXzRGgHiAhG01E8s3zWtDJvdKS/X7Qw9a1hke9wwYU1IpW6i59Bu2GdnoTSHe80 6MWOfPaA/8zjC0jR016oVqok3RcpbnmF9iDXyPEod52eSqvIaEFU7i7e8y34l4K+FW95 X9iK9QspJNePUKJPAQL1sNeDP/+SHd7IjnLXXRATijscMeI9/k7jkKu1e0fO6+U2OzqL bwYVHgmj5Bypers4pBT8qgjWvE2kHhOndxOR24601sSxpXCbvnJSUTu2ZW04V5ujic9M ZwfWHDcPueGpdXNH+/mgRYkFiecQHqhcqFeFeO4ajhE4Ok7SwABJke9JF4XBKGIJcfNs n++Q== 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 z72si17410534pgz.56.2019.05.21.07.35.40; Tue, 21 May 2019 07:35:56 -0700 (PDT) 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 S1728201AbfEUOeR (ORCPT + 99 others); Tue, 21 May 2019 10:34:17 -0400 Received: from mx2.suse.de ([195.135.220.15]:38094 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726900AbfEUOeR (ORCPT ); Tue, 21 May 2019 10:34:17 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id E3E03AF3F; Tue, 21 May 2019 14:34:15 +0000 (UTC) Date: Tue, 21 May 2019 16:34:14 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Joel Savitz Cc: linux-kernel@vger.kernel.org, Li Zefan , Tejun Heo , Waiman Long , Phil Auld , cgroups@vger.kernel.org Subject: Re: [PATCH v2] cpuset: restore sanity to cpuset_cpus_allowed_fallback() Message-ID: <20190521143414.GJ5307@blackbody.suse.cz> References: <20190409204003.6428-1-jsavitz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190409204003.6428-1-jsavitz@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 09, 2019 at 04:40:03PM -0400, Joel Savitz wrote: > $ grep Cpus /proc/$$/status > Cpus_allowed: ff > Cpus_allowed_list: 0-7 (a) > $ taskset -p 4 $$ > pid 19202's current affinity mask: f > pid 19202's new affinity mask: 4 > > $ grep Cpus /proc/self/status > Cpus_allowed: 04 > Cpus_allowed_list: 2 > > # echo off > /sys/devices/system/cpu/cpu2/online > $ grep Cpus /proc/$$/status > Cpus_allowed: 0b > Cpus_allowed_list: 0-1,3 I'm confused where this value comes from, I must be missing something. Joel, is the task in question put into a cpuset with 0xf CPUs only (at point (a))? Or are the CPUs 4-7 offlined as well? Thanks, Michal