Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp317205pxy; Fri, 30 Apr 2021 06:12:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMzznC3YTaoeXMIwnVCzlsTq9lds1J8OpTTU0lLgIW64+O0dQCL+SxqYLq7hZtgintxKTh X-Received: by 2002:a17:902:8b86:b029:e5:bef6:56b0 with SMTP id ay6-20020a1709028b86b02900e5bef656b0mr4988984plb.76.1619788333983; Fri, 30 Apr 2021 06:12:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619788333; cv=none; d=google.com; s=arc-20160816; b=UXc4jF1RbUuSQq87QpOYUWPcgzZI26q585s8D+CO/m4PECd1vojgBtbCWxlG3Ps8lH yWD15wrZKlWBQXvHUqMfyHESFStQQNHYMUneWGTNuXzXqU2kaEUezkcCgsxQ59GIsDKO WqBuvjkBKcPVfZxtTn8eDl9zFN3iA12pQaxnCfLIjXeH6V5K+8qfRcqX95zZoShds5mf 5ccMcgG6ID4UJeehZsbkWh7A2UgEbdjpf78SwbLNUTjxfWwDwgFvyvEUeYNZDk7xXfYh 8roGAXWmmQ9ZuasQYPEtIlKwllzaJFrpkw8BB4CTxyPSKvZvmpmf4ap+ORbpKAmKN/+I 641Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=eFmN7GXhyvWoD/0hmIYm1FOaJDGHK8SDles6jaDUx50=; b=uvN3HhQtaAHrARUKz2jVocoq+0u2+sFoeO96Y0KREhFNVAc41qLMnhFyACkdSy9Ttl 70FuCzjOmKHQaTPE9X5fF8UXQon+aZjQ2HAPRr1oDSPJQDGsBLs5XRHmFUv8mGeHE9+8 yj8RCSUsc2TfdjXx7rJSCJfu64ReOI9w0oNQ/pt26xwr4m97+x3WGe2imasK9HYc5S/R h7FE/DOx81IHDy8h69BecUalAMMiHW/p4UmuKnqQ6bvxGd3ZhdMuVRW/tRCBbb0mi+zw Hj47TpGIZ8JuYNW06DQZdpVtP4nMNjdvf1tCNLlDCSR71itXAO/IRlp8WcBN8TzSr/H2 zjdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="du3IS/VV"; 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 n7si2344933pfd.76.2021.04.30.06.11.59; Fri, 30 Apr 2021 06:12:13 -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="du3IS/VV"; 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 S232297AbhD3NLr (ORCPT + 99 others); Fri, 30 Apr 2021 09:11:47 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:39704 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231696AbhD3NLr (ORCPT ); Fri, 30 Apr 2021 09:11:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1619788259; 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: in-reply-to:in-reply-to:references:references; bh=eFmN7GXhyvWoD/0hmIYm1FOaJDGHK8SDles6jaDUx50=; b=du3IS/VVSu4+qm9EGw6eNOs2gyAqvuItNu2oxoAHrxe4gc6M9JlnvHQqn8RObyej6f9fhv pQv5BsEeC9VIaAaIgAhVbk8E8P32hOM3tupgK62d881rkqnyq8yoSZb1GswDOH0FLHdZ8C SB4D0LNcoPoxyX396LFgqAnzc08YV3M= Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-203-v7EEu3B7NhOSBsyWuErE6g-1; Fri, 30 Apr 2021 09:10:56 -0400 X-MC-Unique: v7EEu3B7NhOSBsyWuErE6g-1 Received: by mail-lj1-f200.google.com with SMTP id r30-20020a2e575e0000b02900bab4d6b74bso19404079ljd.14 for ; Fri, 30 Apr 2021 06:10:56 -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; bh=eFmN7GXhyvWoD/0hmIYm1FOaJDGHK8SDles6jaDUx50=; b=VPtZOyS/FBG9ry4KBufsajqR3OnV3pm8I5qIIcdSAfdXIjRDaBwruy8760kl0y/5dF MwqS9tQV07qdUo+xlsDBEkpOzY9oyxC/dN3c9nw22hoCQnxwvNaZ/a6KvpCwckCLQfCf XvlWhiBwm6wpvhKpOU1g+G2qXBlstns2FdKvF3tUaO/ZdPmeefUE5Unwv30QX4V+WcD8 GnP6NywAeLDEdpqX2EpsHIMYma/4zhxNpc/Es6GpO5en7xHYklDBL7g10thESs02XcDL J880eWWuQJe3XJJi8MoM0EXts/ehOB2491n4924TCxCXPMTBwsI+Rp3lGup7y/y0SUMG vtMg== X-Gm-Message-State: AOAM530Y5soXtBglo/dXbzBnJEXPmOlU6QrQE8+0bbjxlXHfATnPpprz 56lTZ9d7qRzqwBunDhf6R6jTBb+Nu377keWPtFTZk5t7Fg5MqbKrP4RaZB/F6Aik6+NT2aMsYLo kopAKijhy2mSZbzj0QJ++pU76u+jiEpzf1dlsia14 X-Received: by 2002:a2e:a71e:: with SMTP id s30mr3619812lje.137.1619788255159; Fri, 30 Apr 2021 06:10:55 -0700 (PDT) X-Received: by 2002:a2e:a71e:: with SMTP id s30mr3619779lje.137.1619788254917; Fri, 30 Apr 2021 06:10:54 -0700 (PDT) MIME-Version: 1.0 References: <20200625223443.2684-1-nitesh@redhat.com> <20200625223443.2684-2-nitesh@redhat.com> <3e9ce666-c9cd-391b-52b6-3471fe2be2e6@arm.com> <20210127121939.GA54725@fuller.cnet> <87r1m5can2.fsf@nanos.tec.linutronix.de> <20210128165903.GB38339@fuller.cnet> <87h7n0de5a.fsf@nanos.tec.linutronix.de> <20210204181546.GA30113@fuller.cnet> <20210204190647.GA32868@fuller.cnet> <87y2g26tnt.fsf@nanos.tec.linutronix.de> <7780ae60-efbd-2902-caaa-0249a1f277d9@redhat.com> <07c04bc7-27f0-9c07-9f9e-2d1a450714ef@redhat.com> <20210406102207.0000485c@intel.com> <1a044a14-0884-eedb-5d30-28b4bec24b23@redhat.com> <20210414091100.000033cf@intel.com> <54ecc470-b205-ea86-1fc3-849c5b144b3b@redhat.com> <20210429184802.0000641e@intel.com> In-Reply-To: <20210429184802.0000641e@intel.com> From: Nitesh Lal Date: Fri, 30 Apr 2021 09:10:40 -0400 Message-ID: Subject: Re: [Patch v4 1/3] lib: Restrict cpumask_local_spread to houskeeping CPUs To: Jesse Brandeburg Cc: Thomas Gleixner , "frederic@kernel.org" , "juri.lelli@redhat.com" , Marcelo Tosatti , abelits@marvell.com, Robin Murphy , "linux-kernel@vger.kernel.org" , "linux-api@vger.kernel.org" , "bhelgaas@google.com" , "linux-pci@vger.kernel.org" , "rostedt@goodmis.org" , "mingo@kernel.org" , "peterz@infradead.org" , "davem@davemloft.net" , "akpm@linux-foundation.org" , "sfr@canb.auug.org.au" , "stephen@networkplumber.org" , "rppt@linux.vnet.ibm.com" , "jinyuqi@huawei.com" , "zhangshaokun@hisilicon.com" , netdev@vger.kernel.org, chris.friesen@windriver.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 29, 2021 at 9:48 PM Jesse Brandeburg wrote: > > Nitesh Lal wrote: > > > @Jesse do you think the Part-1 findings explain the behavior that you have > > observed in the past? > > > > Also, let me know if there are any suggestions or experiments to try here. > > Wow Nitesh, nice work! That's quite a bit of spelunking you had to do > there! > > Your results that show the older kernels with ranged affinity issues is > consistent with what I remember from that time, and the original > problem. That's nice. > > I'm glad to see that a) Thomas fixed the kernel to even do better than > ranged affinity masks, and that b) if you revert my patch, the new > behavior is better and still maintains the fix from a). Right, the interrupts are naturally spread now. > > For me this explains the whole picture and makes me feel comfortable > with the patch that reverts the initial affinity mask (that also > introduces a subtle bug with the reserved CPUs that I believe you've > noted already). > Thank you for confirming! -- Nitesh