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 X-Spam-Level: X-Spam-Status: No, score=-6.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED1A9C433ED for ; Wed, 19 May 2021 22:53:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CB9DD61353 for ; Wed, 19 May 2021 22:53:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230000AbhESWzR (ORCPT ); Wed, 19 May 2021 18:55:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:39566 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229465AbhESWzQ (ORCPT ); Wed, 19 May 2021 18:55:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7911660FEF; Wed, 19 May 2021 22:53:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621464835; bh=s7sa+JprgdBvQ1TTBk/wVSZdNKM1mjSnAFpxw7k51fc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=hQJI7tFZKxZdg+PDwsMQ5V3Ejq/9/oxtN4PUGdWfUSZQWXpykbTgFLzD5uS99rxzm BWLGObvm1W6T+q+Yoxr0aK3w9Dg0omCvkWD1WK9YTcoNZ2oh8favsVLvUH3PAcjkji NUHbwM1RXm68VGDlDpNLChFxhRweqeuK7lJt32+m/eeYBi8j98o6dvpZGrjiGFMMeL qeulZGeZoYN89tefc50Fd/LMepg8uXPHIWRU8ShbBA0YDD3wLiMriXS1VFX3f6SyBs 7Rd/JnP5iSqUvWisl9WHhiN7ana9mahi3yWlC68Bwj8n2WdPQChNnfeA7lz44+D45n a1QTC+MMC77Vg== Date: Wed, 19 May 2021 15:53:54 -0700 From: Jakub Kicinski To: Eric Dumazet Cc: Stephen Hemminger , Dave Taht , Willem de Bruijn , "Michael S. Tsirkin" , Xianting Tian , Linux Kernel Network Developers , LKML , virtualization , bloat , "David S. Miller" Subject: Re: [Bloat] virtio_net: BQL? Message-ID: <20210519155354.4438565e@kicinski-fedora-PC1C0HJN> In-Reply-To: References: <56270996-33a6-d71b-d935-452dad121df7@linux.alibaba.com> <20210517160036.4093d3f2@hermes.local> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 19 May 2021 16:31:10 +0200 Eric Dumazet wrote: > On 5/18/21 1:00 AM, Stephen Hemminger wrote: > > The Azure network driver (netvsc) also does not have BQL. Several years ago > > I tried adding it but it benchmarked worse and there is the added complexity > > of handling the accelerated networking VF path. > > Note that NIC with many TX queues make BQL almost useless, only adding extra > overhead. > > We should probably make BQL something that can be manually turned on/off. Ah, I've been pondering this. Are you thinking of a bit in dev_queue->state? Not perfect, because with a careful driver design one can avoid most dev_queue accesses from the completion path. It's still much better than recompiling the kernel to set BQL=n, tho.