From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 11B53C05027 for ; Thu, 9 Feb 2023 23:05:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230435AbjBIXFr (ORCPT ); Thu, 9 Feb 2023 18:05:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230449AbjBIXFq (ORCPT ); Thu, 9 Feb 2023 18:05:46 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5646C5FB6E; Thu, 9 Feb 2023 15:05:37 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 45805B82361; Thu, 9 Feb 2023 23:05:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 108BBC433EF; Thu, 9 Feb 2023 23:05:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675983934; bh=bq1jr2TwYgj/HxTIYE1ou9I8l+tmkO0Q6bCaE6mWlo0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bIeOVs20glJZ5THoPEI15S1uA5MHY61/LHQFHc+5D3VYGlaEj2s2t21YcPASoB2zF HNr3xWwx3rYusnVv+9O+gpmo5cRfKRv6RhZqb4k5hVrdzDe+2pstZRGGNvMHvZk2yI /PG7BP7VO+Kti7KcSCRXGSgYHZ5P5DIZxs0cdy+d5koMW5jKGjKc4RcLXPU2PaUNER aE2M2RAoWN+LrxRo+QHVd7uv/x2I2VLr+cWBsYt374Net77tItKISVK7lzov6Aoqdq abzJ/Sv7fNrh/SCyj4+p1Bx2JPIhWKdE9C1aBlCmQQqc0WG3I87SPwQKf42ZWOAZa8 9EYkUFQ+1BViQ== Date: Thu, 9 Feb 2023 16:05:31 -0700 From: Keith Busch To: "Patel, Nirmal" Cc: Xinghui Li , Jonathan Derrick , lpieralisi@kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Xinghui Li Subject: Re: [PATCH] PCI: vmd: Do not disable MSI-X remapping in VMD 28C0 controller Message-ID: References: <9e6cfda1-4309-d1bb-a0cf-404a7fe7d3aa@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org On Tue, Feb 07, 2023 at 01:32:20PM -0700, Patel, Nirmal wrote: > On 2/6/2023 8:18 PM, Xinghui Li wrote: > > Keith Busch 于2023年2月7日周二 02:28写道: > >> I suspect bypass is the better choice if "num_active_cpus() > pci_msix_vec_count(vmd->dev)". > > For this situation, My speculation is that the PCIE nodes are > > over-mounted and not just because of the CPU to Drive ratio. > > We considered designing online nodes, because we were concerned that > > the IO of different chunk sizes would adapt to different MSI-X modes. > > I privately think that it may be logically complicated if programmatic > > judgments are made. > > Also newer CPUs have more MSIx (128) which means we can still have > better performance without bypass. It would be better if user have > can chose module parameter based on their requirements. Thanks. So what? More vectors just pushes the threshold to when bypass becomes relevant, which is exactly why I suggested it. There has to be an empirical answer to when bypass beats muxing. Why do you want a user tunable if there's a verifiable and automated better choice?