Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp3766766rwl; Tue, 27 Dec 2022 15:01:04 -0800 (PST) X-Google-Smtp-Source: AMrXdXvvFFEoso7FovyOQ1u882Vswx/CuBJY+BrUqxOBj8DedD35Y7x9Ywel/qzW6B5PspKqfhtp X-Received: by 2002:a05:6402:3985:b0:467:9976:2e38 with SMTP id fk5-20020a056402398500b0046799762e38mr21052324edb.18.1672182064520; Tue, 27 Dec 2022 15:01:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672182064; cv=none; d=google.com; s=arc-20160816; b=VupRcxfK5m+tkITIJzIBuuo1Fgx5uSjb3Lnde8urjHniBP4KZKM2mZ29mWaWrn93Qo x5Jc7cBpEM5CcqQQwRYfb+w7cI1lEA1ZwOGhYP+mhFZJQ7d98/IazJyXNMz0wjfpiIBF y4K1lJauqmaZtt5R2LFhkRx3e4dsyQLnaXkWbPaBnghAKGLS3gdDaC/R9L+deh/fkOix LyxO/vxggAGaC1l+3BtTbk+1S22u7fQ6zIcapig3J5Xsx1z16jOSvm4l/9C6mK3MhQ6d sCoXVxcdXXQIaLAXIRNXg4SlX6pQK77geTvPLTBauGx3M7I8tmRgkkAEX5zgQMrbxjwC WbwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:mime-version:date :dkim-signature:message-id; bh=8WYNWbXfzoyFwDWcXKbRnpZVfJ9OY/dQehuzw7MIFM4=; b=DjT06C30t/+nN0f5x3Mk9HhOWuYklUcnyWtkVb8Wh+1HW5ZSBeywnm1tmdayCd5L4X dk77ZEs6zxpRZPNLo0bzUZte3o4fB9oQE7qvbnm/G9phaBgpXpjOqJKKGbkdX12Kq2rV PbLYQ7IvgCn9gefYoALKu957Y0LpnNknNqRtlprAxMX3CDora8l3ctlQSp9dZWzaXaKv zzU1WqX2wYjJU2s1xmDTOOmUhXXdFetAix2o41Xp2YDkTNyYt+Kp27XZlHrTZiEaJtpU m3Z9YgAx7AtF86KTRjT5byeKIJI97uVz9HYzW5fh/S8S5X7Wp51xG0P/x/1ejVvn0v5Q KWxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=nxndasFa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dz15-20020a0564021d4f00b00461e322ec5dsi12893180edb.294.2022.12.27.15.00.43; Tue, 27 Dec 2022 15:01:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=nxndasFa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229907AbiL0WcZ (ORCPT + 67 others); Tue, 27 Dec 2022 17:32:25 -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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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.