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 B5DB5C46467 for ; Tue, 27 Dec 2022 22:32:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229911AbiL0Wc0 (ORCPT ); Tue, 27 Dec 2022 17:32:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229579AbiL0WcX (ORCPT ); Tue, 27 Dec 2022 17:32:23 -0500 Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D1841007; Tue, 27 Dec 2022 14:32:22 -0800 (PST) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1672180340; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8WYNWbXfzoyFwDWcXKbRnpZVfJ9OY/dQehuzw7MIFM4=; b=nxndasFaXm1YuTov9pRzVioMIBfaE7p2g98O66Y8Apj2zP3SDDt8Ue7sfdUHydG/bkA21G Xl84HYUncFAeht0qOPgvRunRqOcm8MZhqimEbX4IBZHaczL/QcJZBTl880QWCKkvDrJPPV hZYJ5GM7yz4wGbCzfq1mJo0IgMz3WVo= Date: Tue, 27 Dec 2022 16:32:17 -0600 MIME-Version: 1.0 Subject: Re: [PATCH] PCI: vmd: Do not disable MSI-X remapping in VMD 28C0 controller Content-Language: en-US To: Xinghui Li , Keith Busch Cc: nirmal.patel@linux.intel.com, lpieralisi@kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Xinghui Li References: <20221222072603.1175248-1-korantwork@gmail.com> <3d1834d9-7905-1225-741a-f298dd5b8a8e@linux.dev> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Jonathan Derrick In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/23/2022 2:02 AM, Xinghui Li wrote: > Keith Busch 于2022年12月23日周五 05:56写道: >> >> With 12 drives and only 6 CPUs, the bypass mode is going to get more irq >> context switching. Sounds like the non-bypass mode is aggregating and >> spreading interrupts across the cores better, but there's probably some >> cpu:drive count tipping point where performance favors the other way. > > We found that tunning the interrupt aggregation can also bring the > drive performance back to normal. > >> The fio jobs could also probably set their cpus_allowed differently to >> get better performance in the bypass mode. > > We used the cpus_allowed in FIO to fix 12 dirves in 6 different CPU. > > By the way, sorry for emailing twice, the last one had the format problem. The bypass mode should help in the cases where drives irqs (eg nproc) exceed VMD I/O irqs. VMD I/O irqs for 28c0 should be min(63, nproc). You have very few cpus for a Skylake system with that many drives, unless you mean you are explicitly restricting the 12 drives to only 6 cpus. Either way, bypass mode is effectively VMD-disabled, which points to other issues. Though I have also seen much smaller interrupt aggregation benefits.