Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp200300img; Mon, 18 Mar 2019 00:49:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzoLUP5PWnyzpHQi/wYezhE/UXZJl86BpPk93Ezu1M70jpvajvsbikkJJSaukhnBpjQzB6+ X-Received: by 2002:a62:f54e:: with SMTP id n75mr709626pfh.84.1552895390802; Mon, 18 Mar 2019 00:49:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552895390; cv=none; d=google.com; s=arc-20160816; b=vZSKHslMJ/36qn/uhvK2IaiawcXUVfKIvVdYcr/3T1SOwh/c3PCUINXV+mdCVhIHv8 awEcNybF9FTcYHrh4j9dhnQRMpJL05/kZgVf2lYn34FRxUre+dyTFozKqaAvMpuP5ROa cFGHX564zb7cf87TDesoJDHrdSuazgtyu/G6CnJUtbcm+Rivbbx9v23A/8kCqp4ZtK5Y 0/eqnCFwLH7x81HP7QMFV7Z+lbJ12quMajlOiFFupso2AO8uRNw0zsLhqWsbDkiExCuX +Tyct7aOAyExUw8wm+6Dx6tHGcff5E5qkmxpjuAC8QOLjUzLY0mPBps1/XdpBVNGNHmA kARw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=6ayY3CQSpfhd7ulVYuJ5xO3qkdN9SpqqkHfl6qQugAc=; b=c8T9F+wDeBSm0moZDgoYeUq7P/KK8EA0hwiRt70Gd1rVI5BtO6Lr07TPxLela2s2un kSJJ5sMhAnNOpOFDnOkUAQmuFOLY7DPn5rHsW/K3xVKq6vuPR5zZ9wZb34bW21Xstzjn azefc0v5S6IMnxflzMp3KfXP4o0QhfxMftjPxYmqx35T0y8VFpFWwzOF8GuzPrZQYxxD V6SKtG7lam4Y/mRTZmXKsQQiKkKXVWDio22RHU89mm1PMhvncEjrXjVLN1v0eBpSjkk0 4OSARWV8qQOQiVm0jxobPFuF15ok6vGcAfWHz6akEJ43M1thwg+euYhLfewCYrUqVLGn TZlA== 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 k17si7169863pfa.181.2019.03.18.00.49.35; Mon, 18 Mar 2019 00:49:50 -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 S1727207AbfCRHrd (ORCPT + 99 others); Mon, 18 Mar 2019 03:47:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39890 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726678AbfCRHrd (ORCPT ); Mon, 18 Mar 2019 03:47:33 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 72DE3308FBAF; Mon, 18 Mar 2019 07:47:33 +0000 (UTC) Received: from [10.72.12.98] (ovpn-12-98.pek2.redhat.com [10.72.12.98]) by smtp.corp.redhat.com (Postfix) with ESMTP id DBDD55D705; Mon, 18 Mar 2019 07:47:27 +0000 (UTC) Subject: Re: virtio-blk: should num_vqs be limited by num_possible_cpus()? To: Cornelia Huck Cc: Dongli Zhang , mst@redhat.com, virtualization@lists.linux-foundation.org, linux-block@vger.kernel.org, axboe@kernel.dk, linux-kernel@vger.kernel.org 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> <20190315134112.7d63348c.cohuck@redhat.com> From: Jason Wang Message-ID: <1df52766-88fb-6b23-d160-b891c3017133@redhat.com> Date: Mon, 18 Mar 2019 15:47:26 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190315134112.7d63348c.cohuck@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Mon, 18 Mar 2019 07:47:33 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/3/15 下午8:41, Cornelia Huck wrote: > 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. Exactly and it was what the above series tried to do by providing hints of e.g which queues want to share a notification. Thanks