Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp507375rdb; Tue, 19 Sep 2023 01:57:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEAZlyFIwwMewfNpQEbnST4NJIXhmOUv1snyEWc8fKjujpnVI6yRQQ3Omm353QyzGcL03E9 X-Received: by 2002:a05:6358:93a4:b0:13a:bd3:3f85 with SMTP id h36-20020a05635893a400b0013a0bd33f85mr12024837rwb.23.1695113857751; Tue, 19 Sep 2023 01:57:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695113857; cv=none; d=google.com; s=arc-20160816; b=dE0g94sk2GA057ELI+yMioX0VhSZeoqAdTWf1so2ehsO865v+8v4Nepb8EM/sc+5Mk 5x41RsE02xlXIypetBJaNMhv9fpKPnLqGiALr6HVdR4XbBsDRk3mr0erkSYdSbHngmuH aJ9lup+kt3hm+WnPNFLsdlzP6yOSy4zg/5rZvTRAW2ZAEileLYwOHVFEBwuUl48VrSER IGta+jTA9FncdUIictpYfoBovigzFuKdQUh16D/Ry8p2G1ZB2DnqkdTf1wthMXWYYJqL hluHalQJjxO4lJ8yeAyWnR+KExrKPiTmpxEEFF3FlporlY2pzFBqB4VmVAp2+nTLmZrs Is6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:reply-to :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4Y6wt5SzgLMJ3PPOdqn79HesSoUYnREHVbZj8xkzF7U=; fh=XgoSauIUzB33G43Vwqhgv9X75efJo3CFeJpNY1A0Iwk=; b=JVc0FtqyI5EdrFjvM9tP8+vUNJelVflW4IiY7NC9NjYBFYQd3KyGgx/ucWycgzBvQf TJ1C17S7zD1Hpnjgs9iVlp1m5B1IxdYu7t3qhZ4jT6whP7Fy7T2BALowTlzPjJKXcLQp ZyAeSmvhZzAoV4YwjV/csy4PSI0qCszP+iZtEcKy42Vn/G8XgBZY7duBvnXF0ZDK5vyc hVxuvt205npYaoz6wC9sDP6wMbBRG3blv/2BujCsDIz8Z0Uq3WNRlCgak2ObHIXv0PRP WV9pAXkUVBmj9tNKDK0KD7cmF54aXIXCTRkRe0sIbbdiGJ0BBUJHK1DOS6MwLY28JUJj RNJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=nprfgFIv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id bm18-20020a656e92000000b00573efae0ee1si9212624pgb.515.2023.09.19.01.57.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 01:57:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=nprfgFIv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 5EC1F81FD9CD; Mon, 18 Sep 2023 20:28:08 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231303AbjISD2A (ORCPT + 99 others); Mon, 18 Sep 2023 23:28:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231310AbjISD17 (ORCPT ); Mon, 18 Sep 2023 23:27:59 -0400 Received: from m12.mail.163.com (m12.mail.163.com [220.181.12.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CC928116 for ; Mon, 18 Sep 2023 20:27:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:Reply-To:MIME-Version; bh=4Y6wt5SzgLMJ3PPOdqn79HesSoUYnREHVbZj8xkzF7U=; b=nprfgFIvNTj1o VWkPe6q8BH3x4TNASdJVcYGb88WEi546PbzqFdujpfdVZ89mQTh+TbiLURzBvraR re0EjqkUX7/CjqiETRC4CXICfbYUm3+Xaihj5Wj9ms8GNb8qNKJet1FOe/urVnj1 jXNUtndWlb5WKMtfO9JzGDIhn2za7E= Received: from localhost.localdomain (unknown [183.192.130.204]) by zwqz-smtp-mta-g2-1 (Coremail) with SMTP id _____wB3Lij7FAllZePxCQ--.10947S2; Tue, 19 Sep 2023 11:26:52 +0800 (CST) From: Ping Gan To: chaitanyak@nvidia.com Cc: ping_gan@dell.com, kbusch@kernel.org, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, hch@lst.de, sagi@grimberg.me, axboe@kernel.dk, jacky_gam_2001@163.com Subject: Re: [PATCH 0/4] nvmet: support polling queue task for bio Date: Tue, 19 Sep 2023 11:25:38 +0800 Message-Id: <20230919032539.71629-1-jacky_gam_2001@163.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <28949e52-7db7-4227-6bbd-cb8b627b390f@nvidia.com> References: <28949e52-7db7-4227-6bbd-cb8b627b390f@nvidia.com> Reply-To: chaitanyak@nvidia.com MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: _____wB3Lij7FAllZePxCQ--.10947S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7Cw15JF4kAFykWF1rZw1xGrg_yoW8WFW3pa yFq3ZxArWktF4rA3WUAw4vq34vq3WrC3WrXayrJrZ2krZ8KFyxWr15AFy3Xrs5WFykKr12 vwn2v398Xw48trJanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0pR0oG9UUUUU= X-Originating-IP: [183.192.130.204] X-CM-SenderInfo: 5mdfy55bjdzsisqqiqqrwthudrp/xtbBohPuKVaEJhdPpQABs+ X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,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 fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 18 Sep 2023 20:28:08 -0700 (PDT) > On 9/13/2023 1:34 AM, Ping Gan wrote: > > Since nvme target currently does not support to submit bio to a > > polling > > queue, the bio's completion relies on system interrupt. But when > > there > > is high workload in system and the competition is very high, so it > > makes > > sense to add polling queue task to submit bio to disk's polling > > queue > > and poll the completion queue of disk. > > > > > > I did some work in the past for nvmet polling and saw good > performance improvement. > > Can you please share performance numbers for this series ? > > -ck hi, I have verified this patch on two testbeds one for host and the other for target. I used tcp as transport protocol, spdk perf as initiator. I did two group tests. The IO size of first is 4K, and the other is 2M. Both include randrw, randwrite and randrw. Both also have same prerequisites. At the initiator side I used 1 qp, 32 queue depth,and 1 spdk perf application, and for target side I bound tcp queue to 1 target core. And I get below results. iosize_4k polling queue interrupt randrw NIC_rx:338M/s NIC_tx:335M/s NIC_rx:260M/s NIC_tx:258M/s randwrite NIC_rx:587M/s NIC_rx:431M/s randread NIC_tx:873M/s NIC_tx:654M/s iosize_2M polling queue interrupt randrw NIC_rx:738M/s NIC_tx:741M/s NIC_rx:674M/s NIC_tx:674M/s randwrite NIC_rx:1199M/s NIC_rx:1146M/s randread NIC_tx:2226M/s NIC_tx:2119M/s For iosize 4k the NIC's bandwidth of poling queue is more than 30% than bandwidth of interrupt. But for iosize 2M the improvement is not obvious, the randrw of polling queue is about 9% more than interrupt; randwrite and randread of polling queue is about 5% more than interrupt. Thanks, Ping