Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7002377ybi; Thu, 13 Jun 2019 08:00:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqz/Pv5tGxgHaUSxXSzpb4wW/3oyocQPXeaTXu8cpM7hkOTzqRJOAPUuRvLIUlNXIMkGY91g X-Received: by 2002:a17:902:2869:: with SMTP id e96mr85137073plb.203.1560438028160; Thu, 13 Jun 2019 08:00:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560438028; cv=none; d=google.com; s=arc-20160816; b=gYvyLTnIrXZxUGKKO6UMTiGu+++D2KTuYS7+KsvhXnS3THZzF054LoNI9ECMHQ82Qx hYj7ieJuxdo2SKhsvmkj7Glj3PeWagjjZT+0HO2aYRtQfW0Ja4QXoWual26i9NGNZnWi Rwpsa7TKy7eCuGmkKwwed4jQnr9cHmT2w7WUlp9YrYmufce94EON49vfJtE+wn3vH/2Q H8/lT4WN8XBIb20Nz3sJnyO9Q1vQFqO530dSC7/oAUvoRYqauYZLtI+y60ND0ALvvXN9 Jdx2PYaRFHqY0qYqYFlMogWSSOSxUBzk4p39oK4y+SSEZNA7LbraJVdWfhTk28BEyWEF 1CIw== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=olQbu2ngwI3YtzGFs8sP7EdoGNn7rnJQQn2+YTZVesE=; b=zIFxATdwFQJSQi07Ta4tF71WzmCWvXA3oyFvWzzIMj0RFa4jg8K/vjs4C486G2hlFJ Q2JWWqOBKdg+qWLJyA7hshgG6Hh1PNK3gQbCO5Op3y2pAI8fad/aG2jPffVXwXzSq1AL 3Rd9hy0iEmF4Z8t/YwzBOkB/6d77/7pmdQko6emWNPZ1CY/yyS6OdjvDLTpjEG/w1km4 CW1fTUImtQNnkGtKOK/Lr+t0thFy44zfKNQkBHiLA71hEBi1QyoJpLkH3i+vWR2uNkYA VZYIcS+egPo3M/cYRbvaJSss4SEJGxFXw49LqlNjY8jq5xLv4Mdl4fwPWe2bJlkVuYrL 8fiQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s17si45876pgj.186.2019.06.13.08.00.12; Thu, 13 Jun 2019 08:00:28 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732729AbfFMO7i convert rfc822-to-8bit (ORCPT + 99 others); Thu, 13 Jun 2019 10:59:38 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:41976 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732607AbfFMOwi (ORCPT ); Thu, 13 Jun 2019 10:52:38 -0400 Received: by mail-ot1-f65.google.com with SMTP id 107so19230005otj.8 for ; Thu, 13 Jun 2019 07:52:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=cX5FJ+aRLK1/hJQi/LFkmdjYRZCST630rgnMW1p6Y9Q=; b=NfQPIfi5lqZf9K9btqqanz60LSun8pBuJoZRF0FSZYbKM1KgGA79St9zPztY8LVNlT kWdMQXdAdtZnhUL40Dl3Pith2JzwkzNtICOj1awCj/97xLWANOCzRh2Uw2/4bplhZC5Z vgfSwMoOyb7qekmiQLfOULWxEm4uyaZ/sllowp5KC4KhBS0U41OeZnMUo1eYu7NCpzdn QOeOZIYFIOw6fM3HkPhOGaCENtfKk3ivhL0CBa1Yg/ZMquK+acZPH6EnrwbS974jNITs yOd4+arOcDSbzVHqCu4bm+RaUUERSBBrcVqma+LnZ1Bi40RnrigE64PKHLEBjbehjEy5 iB0w== X-Gm-Message-State: APjAAAXO4E8J4wd+XyRjDH+/qYOEVhXe1u9MaUp1Cg7r+Wa0Aa7cJixb CPEd3HwMo+s13TpYXb5DwIUtnzGgtGwMmHmvxIVsuA== X-Received: by 2002:a05:6830:1249:: with SMTP id s9mr26932374otp.33.1560437558004; Thu, 13 Jun 2019 07:52:38 -0700 (PDT) MIME-Version: 1.0 References: <20190409204003.6428-1-jsavitz@redhat.com> <20190521143414.GJ5307@blackbody.suse.cz> <20190528121036.GC31588@blackbody.suse.cz> <20190613120228.GA26668@blackbody.suse.cz> In-Reply-To: <20190613120228.GA26668@blackbody.suse.cz> From: Joel Savitz Date: Thu, 13 Jun 2019 10:52:22 -0400 Message-ID: Subject: Re: [PATCH v2] cpuset: restore sanity to cpuset_cpus_allowed_fallback() To: =?UTF-8?Q?Michal_Koutn=C3=BD?= Cc: Li Zefan , Tejun Heo , Waiman Long , Phil Auld , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I just did a quick test on a patched kernel to check on that "no longer affine to..." message: # nproc 64 # taskset -p 4 $$ pid 2261's current affinity mask: ffffffffffffffff pid 2261's new affinity mask: 4 # echo off > /sys/devices/system/cpu/cpu2/online # taskset -p $$ pid 2261's current affinity mask: fffffffffffffffb # echo on > /sys/devices/system/cpu/cpu2/online # taskset -p $$ pid 2261's current affinity mask: ffffffffffffffff # dmesg | tail -5 [ 143.996375] process 2261 (bash) no longer affine to cpu2 [ 143.996657] IRQ 114: no longer affine to CPU2 [ 144.007472] IRQ 227: no longer affine to CPU2 [ 144.013460] smpboot: CPU 2 is now offline [ 162.685519] smpboot: Booting Node 0 Processor 2 APIC 0x4 dmesg output is observably the same on patched and unpatched kernels in this case. The only difference in output is that on an unpatched kernel, the last `taskset -p $$` outputs: pid 2274's current affinity mask: fffffffffffffffb Which is the behavior that this patch aims to modify This case, which I believe is generalizable, demonstrates that we retain the "no longer affine to..." output on a kernel with this patch. Best, Joel Savitz On Thu, Jun 13, 2019 at 8:02 AM Michal Koutný wrote: > > On Tue, May 28, 2019 at 02:10:37PM +0200, Michal Koutný wrote: > > Although, on v1 we will lose the "no longer affine to..." message > > (which is what happens in your demo IIUC). > FWIW, I was wrong, off by one 'state' transition. So the patch doesn't > cause change in messaging (not tested though).