Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5072097img; Wed, 27 Mar 2019 01:17:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqynoMy0d4zXlXO8fJ7XekPQWNUDFp+CKYNVA5W75v6CUhGNJqYfM+Z+Y6lzzd4VaORXmBgU X-Received: by 2002:a63:c112:: with SMTP id w18mr5344097pgf.200.1553674638993; Wed, 27 Mar 2019 01:17:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553674638; cv=none; d=google.com; s=arc-20160816; b=dQ13lNip1Ysxaky4rGfUW9i5KONGdorXlbgeoPusRKUXixWN7oayZrLcaZvsWnsMn9 6zzBcviu19Dl61j1FwxSz5CyC1fFPA86YdEurPYRL1lfQJtVT43xYbl9gjPUbyt27Zkj jg/IGZ/n5GJQyaN4XUgaDtve0y6paFYCnk7tUiLFSCpnkPB8Bw0I6Muqs+vkFPk3bSl9 p3kOfVChtNeZx9pJcPSWR7diXvlMaRueJ3mDdIPdNsM8MteWBqv+wpfeor6EVGUfFn9J sXSlhMKkIfJBUQ/8Y3mTwZX3nHcRT/ZcF/+YRxp/cdNoLD1AS+mx20k7qyqaCW3a/9QA b2PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=XSmApoxQKyLsUV01Kd1abaxbX4mIM8vJFhLAPkMiDSk=; b=MxRpmJtakp0sHwcJYY+54Vwz6jq0eNELUiVBBP810tx7t6GENm3FooT4trhLI9a7FW v/plqtyMk+IkHqLMBewGmoiJbROnuVPGXy6IB4atwijH35wQ43HwU71vjumpKPDs5+fH SV8nMbPO8MmgZYD7vjqz7RmkXqcB+CLOx4OagWXlv98D2Zx0FrLEr0FTWHZ3/LvM5DjF HzEAA8SPdVk4ivBvHfj9qLvj0yaTRour7zo2w6O3xWuG51EhLRF+eZGupRjCvD473GmD KX9M3FrCHH5y1KJHRKa66m0YiJwTBzJlny5QKNwFP31HxaktSMNyfJQEbiujhY1C1C0y VG/Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r25si17316058pfd.91.2019.03.27.01.17.03; Wed, 27 Mar 2019 01:17:18 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726305AbfC0IQ3 (ORCPT + 99 others); Wed, 27 Mar 2019 04:16:29 -0400 Received: from verein.lst.de ([213.95.11.211]:40421 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725763AbfC0IQ3 (ORCPT ); Wed, 27 Mar 2019 04:16:29 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 48B1568B05; Wed, 27 Mar 2019 09:16:19 +0100 (CET) Date: Wed, 27 Mar 2019 09:16:19 +0100 From: Christoph Hellwig To: luferry Cc: Christoph Hellwig , Jens Axboe , Dongli Zhang , Ming Lei , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] make blk_mq_map_queues more friendly for cpu topology Message-ID: <20190327081619.GG20525@lst.de> References: <20190325152640.48120-1-luferry@163.com> <20190326073954.GD21617@lst.de> <48ca2186.fc76.169b8fef63a.Coremail.luferry@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48ca2186.fc76.169b8fef63a.Coremail.luferry@163.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 26, 2019 at 03:55:10PM +0800, luferry wrote: > > > > At 2019-03-26 15:39:54, "Christoph Hellwig" wrote: > >Why isn't this using the automatic PCI-level affinity assignment to > >start with? > > When enable virtio-blk with multi queues but with only 2 msix-vector. > vp_dev->per_vq_vectors will be false, vp_get_vq_affintity will return NULL directly > so blk_mq_virtio_map_queues will fallback to blk_mq_map_queues. What is the point of the multiqueue mode if you don't have enough (virtual) MSI-X vectors?