Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp245464rwj; Fri, 23 Dec 2022 00:21:20 -0800 (PST) X-Google-Smtp-Source: AMrXdXsnQj9Uoik4lMbM8oyku4pIn6Opr9nSPKoyMKC9DhnZkmNu2kkHob0I5t4sXh14hsO6CyfE X-Received: by 2002:a17:907:1ca5:b0:7c0:edc9:9a6b with SMTP id nb37-20020a1709071ca500b007c0edc99a6bmr9492205ejc.41.1671783680143; Fri, 23 Dec 2022 00:21:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671783680; cv=none; d=google.com; s=arc-20160816; b=aqgTMQmzZOTZn5KYk6s4WMO2/piW3q1eUV3Ml1GcSsXy3nmTTJZ6SfahOqBYPWSZfI NSvMEm1BQR7m+WfDsFA06jsb0lZ06V+hDrQRujVWdNvt+UzpXHyK5MwsCKMZP0jKHFwR JcF+/zRL4rMvpqjjNEcnqSiI9u2yc0lEbeZaQMLaLcpr1/OMzDTbsn3Fb/gdjtlUIhL/ 0Uwu+3owEFVjWdnjxPI+fTJP0UeHDgv9eBkrtTLTofHuKc9fkDMbWJ+/7A4LSqu0Lfcw Q8cEugMwJOp5Ie8NSZGRrfHpsANMpbiN47Twikw5orfsXvjGV8eZuOf0kP/OizYwHv0C X33A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=81VexVpAcjDCmAALpz8wgfQD8TVd/Z+mY8NAO8iTqkc=; b=h5c8R1iJgq2JCpKf9FjXL4XeKxKPsgIRZLFdG6p34p3o2NsnHdNf0Bl/P7/i4ty6bb yuC9b6GVJt+Ow7xyFYtbrrbaSjkK3lcbl+I4xbHze0KtFHVNS3L0OX4q1J+Co9OO/MEy yfp2vAK/A3R9VomIvmPnCrAzv+ud4rep9Z4IkCICG6fCiX0/VirOqV8ER1coHU2JHLYl wzuSH8oL230BO+MRfNjgkJ/i5FGDiXQgxQIjJnzA50v47ZdEPPPoxiFdo5S9BSjUfsxY vCERcpil1tEC0lzHfqsQ9dh6RZUFUMsO/voXKa7aV9j3gT9eU1Qmo7T3KhKYFOBMn8Fd 1QIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Uaqy+bNc; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wz2-20020a170906fe4200b0082b45653622si1988415ejb.333.2022.12.23.00.21.04; Fri, 23 Dec 2022 00:21:20 -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=@gmail.com header.s=20210112 header.b=Uaqy+bNc; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235932AbiLWHx2 (ORCPT + 67 others); Fri, 23 Dec 2022 02:53:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229637AbiLWHxZ (ORCPT ); Fri, 23 Dec 2022 02:53:25 -0500 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF1BE25EA8; Thu, 22 Dec 2022 23:53:23 -0800 (PST) Received: by mail-pj1-x1042.google.com with SMTP id v13-20020a17090a6b0d00b00219c3be9830so4274052pjj.4; Thu, 22 Dec 2022 23:53:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=81VexVpAcjDCmAALpz8wgfQD8TVd/Z+mY8NAO8iTqkc=; b=Uaqy+bNcd5CMmbUBcBEonf0UGpk+EQzQbSF6Lliq7VhoKMU9Cnoi22+vTnhfTa+r+0 StnBWpHJLV0NZVgx2Mm5EjGbPz/ee5p9PJ9dLtvrsmtwesbTifLHI8VkHkmqSOwrqgCf bSuZaGMYIeh/4Uq8iq6sqmgAFYK4uMZZ8U/gTlFDhEM36azjk+mAQBt/BuzCQUMwhumf xIud18l2zBDwyhPEYlu/bgVWxl5aWx94QWNR+Onkv3unstg4boqP5XcMMox1atgbMY1T jz88fBXviwoAp7HQP67zEv8u/1yOoqSVDMxSvdbnjo/wE2jHstjOOx6eebEi9SljF2up 8OfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=81VexVpAcjDCmAALpz8wgfQD8TVd/Z+mY8NAO8iTqkc=; b=dU5bryhZLQAgd7zjNxpCqkLa4ZVx6Waz8PSmF0m9H2UnxJpVM558/UkhFJ/VTYJ/Ho MVq3wO7Iwg1fEnvLZvP+KJKySANMUc8U1/YYS3jfP081dJGzXkiR44jjpkW4QITLVHnP vYJ9hLLeiEax3kwRrGRiUWXsGfD//Ok5C8U5K7msHuounJAn/HAkVxtsDRyj63FCz6i0 k/dAv624q0dVx09M7Zr/O4AbWtieO61epx1p3m8TiN+0sZ5uLaheE5sN8YqS8ADvEGnv rO3aOuOxJK7Wk1GCKwoFcsx5Ky6P9/MzNH8srtErVRFDHUM0QxH7lgLtCaCkVAZQ1f5L 9KqQ== X-Gm-Message-State: AFqh2ko2ysg5HgzcD2xx31EdGKpf5R8RDZAYPKXU6kHYXzfZElrrgjHx ONTyRTHRuxjRzfi8clo2Jn+WHiFLzTEznhvHw+w= X-Received: by 2002:a17:903:2685:b0:182:6c84:7ff4 with SMTP id jf5-20020a170903268500b001826c847ff4mr435464plb.25.1671782003527; Thu, 22 Dec 2022 23:53:23 -0800 (PST) MIME-Version: 1.0 References: <20221222072603.1175248-1-korantwork@gmail.com> <3d1834d9-7905-1225-741a-f298dd5b8a8e@linux.dev> In-Reply-To: <3d1834d9-7905-1225-741a-f298dd5b8a8e@linux.dev> From: Xinghui Li Date: Fri, 23 Dec 2022 15:53:12 +0800 Message-ID: Subject: Re: [PATCH] PCI: vmd: Do not disable MSI-X remapping in VMD 28C0 controller To: Jonathan Derrick Cc: nirmal.patel@linux.intel.com, lpieralisi@kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Xinghui Li Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 Jonathan Derrick =E4=BA=8E2022=E5=B9=B412=E6= =9C=8822=E6=97=A5=E5=91=A8=E5=9B=9B 17:15=E5=86=99=E9=81=93=EF=BC=9A > > > > On 12/22/22 12:26 AM, korantwork@gmail.com wrote: > > From: Xinghui Li > > > > Commit ee81ee84f873("PCI: vmd: Disable MSI-X remapping when possible") > > disable the vmd MSI-X remapping for optimizing pci performance.However, > > this feature severely negatively optimized performance in multi-disk > > situations. > > > > In FIO 4K random test, we test 1 disk in the 1 CPU > > > > when disable MSI-X remapping: > > read: IOPS=3D1183k, BW=3D4622MiB/s (4847MB/s)(1354GiB/300001msec) > > READ: bw=3D4622MiB/s (4847MB/s), 4622MiB/s-4622MiB/s (4847MB/s-4847MB/s= ), > > io=3D1354GiB (1454GB), run=3D300001-300001msec > > > > When not disable MSI-X remapping: > > read: IOPS=3D1171k, BW=3D4572MiB/s (4795MB/s)(1340GiB/300001msec) > > READ: bw=3D4572MiB/s (4795MB/s), 4572MiB/s-4572MiB/s (4795MB/s-4795MB/s= ), > > io=3D1340GiB (1438GB), run=3D300001-300001msec > > > > However, the bypass mode could increase the interrupts costs in CPU. > > We test 12 disks in the 6 CPU, > Well the bypass mode was made to improve performance where you have >4 > drives so this is pretty surprising. With bypass mode disabled, VMD will > intercept and forward interrupts, increasing costs. We also find the more drives we tested, the more severe the performance degradation. When we tested 8 drives in 6 CPU, there is about 30% drop. > I think Nirmal would want to to understand if there's some other factor > going on here. I also agree with this. The tested server is None io-scheduler. We tested the same server. Tested drives are Samsung Gen-4 nvme. Is there anything else you worried effecting test results?