Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp623526pxk; Thu, 17 Sep 2020 11:35:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMpUEQbeXm3wYzEj/lXxels/0DJJ7QhG3tPaD9ChSGOf01zIzKGf6c4BcC8R2T7qxThesz X-Received: by 2002:a17:906:6682:: with SMTP id z2mr33696129ejo.434.1600367754040; Thu, 17 Sep 2020 11:35:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600367754; cv=none; d=google.com; s=arc-20160816; b=AKuPZPBkTHZZMLy6p/LFywZc95iPikthsKpXryAeic/CkEz3IlAo0XJyBcIw49NJJS mvQCJSg/L6cEBL2WUzAjCweakxeeiwBLD6O6R7Mbl4fhxbvXmuAVDApL+Jm+AYxPp8t9 Fy5csXZL7iG2JQqX7FFxc3oiAyolMxT+JGQIC9Gk00T+E8WL/MbdV0YQjqynz+Etnpqm 33nStSF66ojftoCxEIO1xRg2G8flI613b5ydllhwTyw9L20sq3YSfWsjvKJDjjAGemf0 laFEcKwn1ENAutnQyxycFYKZMWZ+lG1d0hEfoQinRd2cwEnRXAUDlM/OzOo6cDlU9v2k VwBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=pnmYHgFM9pGAnCtCJrM5IOqrApmQ2plMuXv9PjDxeZA=; b=1BXMvYhha1VVqA37Ujz2Fr5CGOYsCB/nEg1cDd7Vs0LUbS51wqHgSxHo95V200O46O zA3dw51gFoo2BBLm+GJQgL9nynAaIIgj2hcXyXWVWvdb6sYDj1Gh5pAyoF8uxxsTcmrF Aza7orI+XKLPbVlVeQnzDudmAXNof+tzcdyizmfo72qAdzYzS5E8sS+7nqtGofEOTHY2 h7xqZQJJMz8JjK9QPU4S4fIHEcTeOUQLVXQJmSX7xzX82hc8JLgbU73YI+fla7jot37J n0zwC3CF1Q7xI/9Op1SwnM/cIXokZ/3M/xARIx/Px+fU7Us/DVzTIQbRa6et3jzF28m+ 76gQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id fi13si488911ejb.490.2020.09.17.11.35.30; Thu, 17 Sep 2020 11:35:54 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726544AbgIQSdq (ORCPT + 99 others); Thu, 17 Sep 2020 14:33:46 -0400 Received: from mga04.intel.com ([192.55.52.120]:27797 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726325AbgIQScs (ORCPT ); Thu, 17 Sep 2020 14:32:48 -0400 X-Greylist: delayed 506 seconds by postgrey-1.27 at vger.kernel.org; Thu, 17 Sep 2020 14:32:42 EDT IronPort-SDR: 7ew2Hb6n78lGQ3CqvJOe1JiPoVu193dtxB2v2OaHWgVNILDosVxvnq8P6UlKCEM2TqmkQaagiP nwN1OtBqaffQ== X-IronPort-AV: E=McAfee;i="6000,8403,9747"; a="157152788" X-IronPort-AV: E=Sophos;i="5.77,271,1596524400"; d="scan'208";a="157152788" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2020 11:24:00 -0700 IronPort-SDR: yYtdAPkiDQ4SILsHO3HluWV0SOgMmQfmPW+5nbU66OIMIbrUlVibSnpBqoEUSwT69RNxgFV7pi IBD6K8SdIkxw== X-IronPort-AV: E=Sophos;i="5.77,271,1596524400"; d="scan'208";a="483851908" Received: from jbrandeb-mobl3.amr.corp.intel.com (HELO localhost) ([10.251.16.238]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2020 11:24:00 -0700 Date: Thu, 17 Sep 2020 11:23:59 -0700 From: Jesse Brandeburg To: Nitesh Narayan Lal Cc: , , , , , , , , , , , , , , , , Subject: Re: [RFC][Patch v1 2/3] i40e: limit msix vectors based on housekeeping CPUs Message-ID: <20200917112359.00006e10@intel.com> In-Reply-To: <20200909150818.313699-3-nitesh@redhat.com> References: <20200909150818.313699-1-nitesh@redhat.com> <20200909150818.313699-3-nitesh@redhat.com> X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.28; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Nitesh Narayan Lal wrote: > In a realtime environment, it is essential to isolate unwanted IRQs from > isolated CPUs to prevent latency overheads. Creating MSIX vectors only > based on the online CPUs could lead to a potential issue on an RT setup > that has several isolated CPUs but a very few housekeeping CPUs. This is > because in these kinds of setups an attempt to move the IRQs to the > limited housekeeping CPUs from isolated CPUs might fail due to the per > CPU vector limit. This could eventually result in latency spikes because > of the IRQ threads that we fail to move from isolated CPUs. > > This patch prevents i40e to add vectors only based on available > housekeeping CPUs by using num_housekeeping_cpus(). > > Signed-off-by: Nitesh Narayan Lal The driver changes are straightforward, but this isn't the only driver with this issue, right? I'm sure ixgbe and ice both have this problem too, you should fix them as well, at a minimum, and probably other vendors drivers: $ rg -c --stats num_online_cpus drivers/net/ethernet ... 50 files contained matches for this patch i40e Acked-by: Jesse Brandeburg