Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1856945pxj; Wed, 19 May 2021 15:55:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQ+CkTaGZQSRRV7AuFLocHvvrWyvPzlXOLsfuPRy38TjQS1ffr61xhNFlkbIoF5UxY3NGd X-Received: by 2002:a17:906:c7d2:: with SMTP id dc18mr1577354ejb.188.1621464949984; Wed, 19 May 2021 15:55:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621464949; cv=none; d=google.com; s=arc-20160816; b=Vo3+pneS35W1QqQCM721H8DyBA8aONlPc5t2W6C0Sy9jb8Mf4KSCB3RDiqt0T1koYn 5WzOSpqP571UaMm5C8kDm6TNhS2sCV6XnRu21XaTQwlkyCZ0BJ9luVwZPYjABR+XrW+e q4xUGzaVYoD9XKJ/lphb6t3bWrukYaW2KaCgsuiew/A1+lHdwsvfBP8XHxBaqOERuTD7 7QHgnC/5msrb5r6LveJfCbERxQ56aQRJQjqvOzTU4J6vqvAcsi/usTkDB9An29dhezMs PRpv/I5uV835RKVaxghVk1Ck/A0IjrqiJZauA55Bnly+V6YeQ9N7i3zusPp0EfP3DUmO hfZQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=1B6cutxRbq/STmGh0GHGTuDG9IJ0Zy/ypwzES93W1SY=; b=SOpPiPg6B2FRoyiZYHLMXdJ1WM/5MsIXwj8sv6kI74dvG9vGbmxklc1JWD1oBzMUeT 7cEEAsVND0D10bn91aBZVhkWm00VNvnD00Ea9sWvxBYxjgZSlVI9sz3C95nLShlc9NSc 0T2cEpvSdcmyNqD+WG9AnYjKbOJwhUzcvGx46rNBnj9rue8p5stnZy47fylPsWqZLAZz I9F0NyyUzlLV0oHEPQePWmlL8Nt56MQ79q2+Ky1+DW4mTzgJj+fLR2JolHg0aeHaQBm5 QpfH4sO/e3CkisuqruP00VcI/hZP9o6pKnceequZCAHOBzewa0ZfdH/rqrgnDW3maNhk bQfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hQJI7tFZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y2si542133edm.360.2021.05.19.15.55.23; Wed, 19 May 2021 15:55:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hQJI7tFZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229952AbhESWzQ (ORCPT + 99 others); Wed, 19 May 2021 18:55:16 -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.