Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6815466rwl; Mon, 9 Jan 2023 13:30:13 -0800 (PST) X-Google-Smtp-Source: AMrXdXshFokO7XOaQsfBTiC/h9EDt+kD5TXRUO/5Hq2iyrfqr0LqqjcDXSnx6NcTZkEbtdkZZ2I+ X-Received: by 2002:aa7:d51a:0:b0:479:6c4f:40df with SMTP id y26-20020aa7d51a000000b004796c4f40dfmr59102273edq.18.1673299813288; Mon, 09 Jan 2023 13:30:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673299813; cv=none; d=google.com; s=arc-20160816; b=K/HuRVfQpQDXB2WZvEoStVwWuSnaggi2MaPpevUITZg+eEWRfpyJVgtRfDjPj7IXFv q/5+PrR+PUxuSMn0r/HXaLj3eVOts1pxOba/klh5jT4o4aNmlI/opY15gp4COZdN8c9x ULftjv/F/acku+IIXH/fPizH16fQmfsdbCH2skWPE1IL9WtJgqemIf3A2mFb67BVRiJb TDYyAGVikkcotMqFkri++J9hHcVsq0lStZDHUJ3Q+9nRjf0lcRMbo4HnrbNlcQ2pOlwL KACC/LLtCDQadG3UmZVcGZ5cSAN/XHQ9qne2AI+bL0co8U3KQvUben0nUEFZ77DIklhz i8CA== 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=mpz5QV62fd9Z/8dQCjZswuJCHVa8jPKuhq5d3gUONBY=; b=InN2TrPEj8Q671L+sTo+xxArubvjSdazVgwIhXZFLBSMxzyK2t+meDlLv1NllBHay3 S4eyJYfd3r83luwQvKsRHpcvQn3OapmDj0Jx+Ll9RyQimdSuH6LfZ8Q72Rz0rA5LIORO Zplpe7lvmEEkqzOE8QtxYLlYJ8eUUN8x/3an2h+k9bSD1tFKWajwUI22MOM9HtC5wM6v bOnfH15CEZKf1+a5wbCaPUaMyx1VU0NZ6s/vbmOcb9XfM+7DZfEkxR2pc4L4ehlhDcAA SSnIoTJJGFqnTSGzy7y0tyxEf8N/lseci/zo1mMujQHnWnRFuJve88aJGdLUMkx2FMkh /oCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=kjgDRTMP; 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 m18-20020a056402431200b00489e9939b90si12834098edc.238.2023.01.09.13.29.59; Mon, 09 Jan 2023 13:30:13 -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=kjgDRTMP; 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 S237576AbjAIVJa (ORCPT + 54 others); Mon, 9 Jan 2023 16:09:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238113AbjAIVIz (ORCPT ); Mon, 9 Jan 2023 16:08:55 -0500 Received: from out-97.mta0.migadu.com (out-97.mta0.migadu.com [91.218.175.97]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 883A2A6FC0 for ; Mon, 9 Jan 2023 13:00:37 -0800 (PST) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1673298035; 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=mpz5QV62fd9Z/8dQCjZswuJCHVa8jPKuhq5d3gUONBY=; b=kjgDRTMPn7t5yVbfabYw3U4Bt86OfUO9sPG5HT3E7m0rSa22kXiU1LjNxmbaXzxeG5wCwC CwIoYRtI441fXya0QIcD1Dy5FSM5f3KcRh6qO/eaggEgJc1TrRwP4osowhvZwtMfH3jIO/ 1ui4TstB3NRV8yKFr3NDiPhKTs4WT58= Date: Mon, 9 Jan 2023 14:00:33 -0700 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 Cc: Keith Busch , 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_NONE,SPF_PASS autolearn=unavailable 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 As the bypass mode seems to affect performance greatly depending on the specific configuration, it may make sense to use a moduleparam to control it I'd vote for it being in VMD mode (non-bypass) by default. On 12/27/2022 7:19 PM, Xinghui Li wrote: > Jonathan Derrick 于2022年12月28日周三 06:32写道: >> >> 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. > > Firstly,I am sorry for my words misleading you. We totally tested 12 drives. > And each drive run in 6 CPU cores with 8 jobs. > > Secondly, I try to test the drives with VMD disabled,I found the results to > be largely consistent with bypass mode. I suppose the bypass mode just > "bypass" the VMD controller. > > The last one,we found in bypass mode the CPU idle is 91%. But in remapping mode > the CPU idle is 78%. And the bypass's context-switchs is much fewer > than the remapping > mode's. It seems the system is watiing for something in bypass mode.