Received: by 10.223.185.116 with SMTP id b49csp7535224wrg; Thu, 1 Mar 2018 07:05:28 -0800 (PST) X-Google-Smtp-Source: AG47ELs/ANEgLKNZcrIaWnj61F5SbW3kjZUMppjEsI79yuWc8M7P5eWk7Nzx++jos8xvYm4l8Smh X-Received: by 10.99.64.197 with SMTP id n188mr1794740pga.21.1519916728376; Thu, 01 Mar 2018 07:05:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519916728; cv=none; d=google.com; s=arc-20160816; b=tkadPOQndguOD8h89dh7DD0tvM8Q5UOG55Dqc+1sMcAHzhCKihMkXngnMWCw9CXgd6 6rTvWw4rOYeTQnCZ/WLCiOfzNYD6jp/eTQdJdhTqe2Hb2J+h034N25IrK4oPeOjB95dV PxN9K869vkQCe0fhCA2B3HHBRyUT3RReDqZ3oHxFie0J5wpypWnR2cEA564RjR3J051X 8YwYFap85NYkIcSrihjcSG+olwz/C4NlkH0GEKR9twvrFVXwQxnjHuQGsF2mAZN8z4XM it1pI44MhcKCwsc2bxK29TjAd7c7B8MBzfVebwTZrdVFBREhP7y3IkZJXAh63C6GpbIG M4Hg== 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:arc-authentication-results; bh=dAZpLIMyTwn7H0OyDy00j2PcY0lnwrEWiaa0AnZKHdk=; b=lwRo3OZA0af8+y4HpqPKx/idYlDwnA0AYfY80kjk8t9t4ObWDgpR8jJzMwLkpGqH6r VdzeGvbgDla4cjr1+n5tvxY0D85skE9z0hEL/R3CwB/yCBQsJLLprnlFCxcnnvLpX+js /mxqg8v6awl19avXQb14ft3QPJHVOAnqlaUig06HJokj4FRLC0Pn4ZX/N/i+89DeX1MM rcRMeJT9VEidLk4VUOfXCWm5gLv+N+7diD/yDvkwe7zSDldD308UtyD+MtSCsPh3MAf1 oeXXeOzFlR/PosgYtJGj1iLqDc9KbzkpA2PKeRmL71lTJWAeaDBEU655RLskoqka9nwG NDfQ== 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 i70si2573175pgc.86.2018.03.01.07.04.54; Thu, 01 Mar 2018 07:05:28 -0800 (PST) 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 S1031676AbeCAPDs (ORCPT + 99 others); Thu, 1 Mar 2018 10:03:48 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:37800 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1031664AbeCAPDq (ORCPT ); Thu, 1 Mar 2018 10:03:46 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D3FB54040859; Thu, 1 Mar 2018 15:03:45 +0000 (UTC) Received: from ming.t460p (ovpn-12-68.pek2.redhat.com [10.72.12.68]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 22EF3946AE; Thu, 1 Mar 2018 15:03:34 +0000 (UTC) Date: Thu, 1 Mar 2018 23:03:30 +0800 From: Ming Lei To: Christoph Hellwig Cc: Jianchao Wang , axboe@fb.com, sagi@grimberg.me, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, keith.busch@intel.com Subject: Re: [PATCH V2] nvme-pci: assign separate irq vectors for adminq and ioq0 Message-ID: <20180301150329.GB6795@ming.t460p> References: <1519832921-13915-1-git-send-email-jianchao.w.wang@oracle.com> <20180228164726.GB16536@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180228164726.GB16536@lst.de> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Thu, 01 Mar 2018 15:03:45 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Thu, 01 Mar 2018 15:03:45 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'ming.lei@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 28, 2018 at 05:47:26PM +0100, Christoph Hellwig wrote: > Note that we originally allocates irqs this way, and Keith changed > it a while ago for good reasons. So I'd really like to see good > reasons for moving away from this, and some heuristics to figure > out which way to use. E.g. if the device supports more irqs than > I/O queues your scheme might always be fine. If all CPUs for the 1st IRQ vector of admin queue are offline, then I guess NVMe can't work any more. So looks it is a good idea to make admin queue's IRQ vector assigned as non-managed IRQs. Thanks, Ming