From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.bufferbloat.net (Postfix) with ESMTPS id D151D3B29D for ; Wed, 19 May 2021 18:53:56 -0400 (EDT) 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" 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 X-Mailman-Approved-At: Thu, 20 May 2021 11:31:23 -0400 Subject: Re: [Bloat] virtio_net: BQL? X-BeenThere: bloat@lists.bufferbloat.net X-Mailman-Version: 2.1.20 Precedence: list List-Id: General list for discussing Bufferbloat List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 May 2021 22:53:56 -0000 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.