Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp584677pxy; Thu, 22 Apr 2021 08:47:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwODRP7sdu7OX2VDbvbXF7UAyG6RH3olNNPt74BWkKJb3aJWhkpckFbaPoq6DTuNcFyGTzR X-Received: by 2002:a17:906:c010:: with SMTP id e16mr4115228ejz.214.1619106422403; Thu, 22 Apr 2021 08:47:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619106422; cv=none; d=google.com; s=arc-20160816; b=WmTeJZTqvWcoVTobkhYnhxjIzMyKT1M7dKHASp0sx95vJBk2rAeT0bArE/EmBGj1HL X0kB6Mm3hBOzqlTavDG/R/aULzTWkdINDt0b9QcL4ZI5RIG056Kh8bdIjGOyoF4AK57s iF7j8MtOW5mlzJSQS2J49H/nAt1TOc7lZ0+lqY0b78iTGzclKkFVC6pgc0zKkU1Wr+zd 73//QlhxQhkdYfv/YElD9Y2sQJRCc9YiObEBMz8nssioTWfbT+LpbbpHl0cx2tNYP85v 2Ho4txYNQ2UwsKv2Bk51a4Vcrkms65BYjqzmn4fSPy8H9CGTkqez/lMERHNA39Fgn4g2 8ARg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:to:dkim-signature:dkim-signature:from; bh=TlPW80ZD1S7l4GGiUYfpnDcgBS6YV2GnyPaBBzf4Ybs=; b=yzniKWOvcQJSAgG/OeC+/YmPagw1dqQJY0/26FWAdJXejqwHkePTl3F48aIh2kmhnN 4QdCtNcBffZUsQcQbu2IkThZ5fjjBGLCGH+m7MptK0cwc/9KdV1Oqbmk7zde7gUBfuZi g/ZU9GFNVBSAI2gCZk14dxRPf8s8ULEEPIDoa3PLQoesA6hmGWgkpR1n6NQHGIKKeir9 voi9kUDIFsmaFCukZMlsSbVmHc3N1VhrnDkvvgY1UfSQODsC72T4vSwLsZFU//nO/Mvb CPH42LODUM6kka6TX3qq5w+B91E1QNWC1q8sLs09lj1YawQsY4Y5ZvEZiLibQ7lSrSBz zGBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=opKPnWRO; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s9si2675802edh.359.2021.04.22.08.46.38; Thu, 22 Apr 2021 08:47:02 -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=@linutronix.de header.s=2020 header.b=opKPnWRO; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238087AbhDVPnu (ORCPT + 99 others); Thu, 22 Apr 2021 11:43:50 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:39280 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237993AbhDVPmq (ORCPT ); Thu, 22 Apr 2021 11:42:46 -0400 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1619106130; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TlPW80ZD1S7l4GGiUYfpnDcgBS6YV2GnyPaBBzf4Ybs=; b=opKPnWROLG6bMR0stYFDgk1fQftfqthvrIubpCxW1tflDjDIF32LMsSFgV7tovinvT/NJF f7ZVijRxQe0ZBXiKV71gNku+yPsYWIRgxo0tjja8WXWXTUT6Sohi4lfV51r++AFCDwIUcl Jckns4q99s4cEy7UQe44wVezAVINPdzUYV02OFTlzMWiGSySo5XPjqu1SX8bCu+BvdCGtW tfMYpouZBk92OTW3N43EDnSrIhX7VWDkWcgP+h4WJ8HDFMqolfOV8PDZNLW5OqXI9hK8fa K4RfyxSeDtoZ5RyNIXnSvdNnh7b750nXRTTajP8WAPKk/d6lw1+BqGTmXTa1AA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1619106130; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TlPW80ZD1S7l4GGiUYfpnDcgBS6YV2GnyPaBBzf4Ybs=; b=CW1w9NeP1jjagLZEkywhcLwJIY0u65aqwTTznQvS39q80LuLIeafCZxxWK+4CG3MyEbCz3 6BX/k6uH9mHsxwDw== To: Nitesh Narayan Lal , Chris Friesen , LKML , Jesse Brandeburg Subject: Re: [IRQ] IRQ affinity not working properly? In-Reply-To: References: <87blb3ce29.ffs@nanos.tec.linutronix.de> Date: Thu, 22 Apr 2021 17:42:10 +0200 Message-ID: <87bla6xr59.ffs@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 21 2021 at 09:31, Nitesh Narayan Lal wrote: > On 3/28/21 2:45 PM, Thomas Gleixner wrote: >> On Fri, Jan 29 2021 at 13:17, Chris Friesen wrote: >>> I have a CentOS 7 linux system with 48 logical CPUs and a number of > > > >>> IR-PCI-MSI-edge iavf-net1-TxRx-3 >>> 961: 0 0 0 0 28492 0 >>> IR-PCI-MSI-edge iavf-0000:b5:02.7:mbx >>> 962: 0 0 0 0 435608 0 >>> IR-PCI-MSI-edge iavf-net1-TxRx-0 >>> 963: 0 0 0 0 394832 0 >>> IR-PCI-MSI-edge iavf-net1-TxRx-1 >>> 964: 0 0 0 0 398414 0 >>> IR-PCI-MSI-edge iavf-net1-TxRx-2 >>> 965: 0 0 0 0 192847 0 >>> IR-PCI-MSI-edge iavf-net1-TxRx-3 >>> >>> There were IRQs coming in on the "iavf-0000:b5:02.7:mbx" interrupt at >>> roughly 1 per second without any traffic, while the interrupt rate on >>> the "iavf-net1-TxRx-" seemed to be related to traffic. >>> >>> Is this expected? It seems like the IRQ subsystem is not respecting the >>> configured SMP affinity for the interrupt in question. I've also seen >>> the same behaviour with igb interrupts. >> No it's not expected. Do you see the same behaviour with a recent >> mainline kernel, i.e. 5.10 or 5.11? >> >> > Jesse pointed me to this thread and apologies that it took a while for me > to respond here. > > I agree it will be interesting to see with which kernel version Chris is > reproducing the issue. And the output of /proc/irq/$NUMBER/smp_affinity_list /proc/irq/$NUMBER/effective_affinity_list > Initially, I thought that this issue is the same as the one that we have > been discussing in another thread [1]. > > However, in that case, the smp affinity mask itself is incorrect and doesn't > follow the default smp affinity mask (with irqbalance disabled). That's the question... Thanks, tglx