Received: by 2002:ac0:a874:0:0:0:0:0 with SMTP id c49csp409699ima; Fri, 15 Mar 2019 05:42:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwEkq4ZI2R9P0on7lYyvuUxCX4F4rM8JOm5zmt6q46qhQ/GBJGBbgE3Nj4r2po+L5ESLokY X-Received: by 2002:a17:902:aa0c:: with SMTP id be12mr4025956plb.63.1552653743924; Fri, 15 Mar 2019 05:42:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552653743; cv=none; d=google.com; s=arc-20160816; b=oEviQgutAWfxGWMAlZUbc5tySn3vLnEwa04GrKPXRqr5kR3pufmtAtsVw5asKHcnyl ALwZMuaBF6Bkxi3OLUq0/UozSfeSsY74KT/ZEGQKZenqDYEWN3hxNPTgig3FVlQb5HFR Is+A+Lh2g5apJesh9zJi5eI6NQOqh24N1/1pOGBwJrqbe8AlJD4u0M9Q9GB3qTj4mkhD h7J3BWyyQ9QdWYgnDHFGTGp919jDT1knwBkqQ79zU+I9Br3+ZhIDgrk2KWVoUOdU/vSO wKwgD7Pxgv8KDllHba+JTZmuAEW9hAtK2IGayGVCkoHsFEct+7AjvH/izWQ9e48nZaYd 5pHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=iVyoZJ32wSLzhtYZffZ9byvO1NLLZrrBshWP0yMPpgc=; b=c5dU18YLuFXJObiNnWQWWt2VypyQ655HctPwjEnwA5880sTZf+qIb0S8uC1Y+BMpbK b0lU5tkP0sCweFyXBVbQVe0lUIWc3hKw8+PArKmK5yuPsXMWzl951SommYYwGho+rYQZ cuxFwHfmcMh3wqI/80bXoYExWBJgCz7CvrPLfW7hEEpVR1K7c42eXTLZVc09CuuiDBfh E/x2m3E+4dXrIPTQwixbUcK8V/Yriqgw5t9obU8TWLh/7HBZN3Wm4Zi5bHiSNGb/KQhx qJGbiAFxahLDKGUm3Av2nUwEV5tgXSkQ3ciY7fNlutfj29iQm2D/mG83NO7Wej0XYuOS Kskw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n5si1772021plp.260.2019.03.15.05.42.08; Fri, 15 Mar 2019 05:42:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729025AbfCOMlS (ORCPT + 99 others); Fri, 15 Mar 2019 08:41:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60112 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726996AbfCOMlR (ORCPT ); Fri, 15 Mar 2019 08:41:17 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9B8993005FCA; Fri, 15 Mar 2019 12:41:17 +0000 (UTC) Received: from gondolin (dhcp-192-222.str.redhat.com [10.33.192.222]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6E0F05C223; Fri, 15 Mar 2019 12:41:14 +0000 (UTC) Date: Fri, 15 Mar 2019 13:41:12 +0100 From: Cornelia Huck To: Jason Wang Cc: Dongli Zhang , mst@redhat.com, virtualization@lists.linux-foundation.org, linux-block@vger.kernel.org, axboe@kernel.dk, linux-kernel@vger.kernel.org Subject: Re: virtio-blk: should num_vqs be limited by num_possible_cpus()? Message-ID: <20190315134112.7d63348c.cohuck@redhat.com> In-Reply-To: <537e6420-8994-43d6-1d4d-ccb6e0fafa0b@redhat.com> References: <20190312183351.74764f4f.cohuck@redhat.com> <173d19c9-24db-35f2-269f-0b9b83bd0ad6@oracle.com> <20190313103900.1ea7f996.cohuck@redhat.com> <537e6420-8994-43d6-1d4d-ccb6e0fafa0b@redhat.com> Organization: Red Hat GmbH MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Fri, 15 Mar 2019 12:41:17 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 15 Mar 2019 12:50:11 +0800 Jason Wang wrote: > Or something like I proposed several years ago? > https://do-db2.lkml.org/lkml/2014/12/25/169 > > Btw, for virtio-net, I think we actually want to go for having a maximum > number of supported queues like what hardware did. This would be useful > for e.g cpu hotplug or XDP (requires per cpu TX queue). But the current > vector allocation doesn't support this which will results all virtqueues > to share a single vector. We may indeed need more flexible policy here. I think it should be possible for the driver to give the transport hints how to set up their queues/interrupt structures. (The driver probably knows best about its requirements.) Perhaps whether a queue is high or low frequency, or whether it should be low latency, or even whether two queues could share a notification mechanism without drawbacks. It's up to the transport to make use of that information, if possible.