Received: by 10.223.185.116 with SMTP id b49csp8204926wrg; Thu, 1 Mar 2018 19:55:45 -0800 (PST) X-Google-Smtp-Source: AG47ELuJP/zpw3Kip5BzalHQzQq7ls7Vh7Jf5SwOh0ZK94EVy8RMo8uPvgVL/PFQanwdbiVaReDe X-Received: by 10.98.194.219 with SMTP id w88mr4316624pfk.26.1519962945269; Thu, 01 Mar 2018 19:55:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519962945; cv=none; d=google.com; s=arc-20160816; b=miSety54spd9xZdwB0GBAPu09h4u5aT5CVxYElYpMxCd6a2X+M3/JPtfBvxZv7flGj 5uGGiHHK8VQMCqK6GM7FgZCRztnbIanBqE9ONBrxZeHq/hT+lvrW09LWNPAeeIzDzI4b iiMAV6NL3FC/Ew16LJFyI3E5rqUnsXT1ADioS9fzEprtHhw7oP9CA7v3AjnQ6FqLlg+w maWKAkezoxRzXqo58sr3IfLGM7OnV7qJwK5CQjURDTNeLhDbwBNVasDvjOS/BgW9E5DE EOqTPDthzwwBj8ElXOnEuf6oRyd0WzUM3kR+e98foCHZ+KW+81HEOL5qnIwyFkFcVrt0 fZmg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=MXsx06AT9PQB3l3WYNBxIYlxD9sylheCA6mQpY5Twi8=; b=yyW/SuobmEhFy0ZB/UU2ZwM1KLKp4bchr56ZbFt5fPCU8qhtGXhp33jVN94DoOF020 XP+ip4KTV50H8MU7u1bpurJ/S6OIkUTHeSFSEiNzB+cp3o09G4sqg60wd5pmp4ZTx0p2 MAI6kb7dyP/gNqtW6ubnMA7mBqCMwMnCXdFI+oY/cbmF8+hqR8tJnr/nDd/hNcyX0zpK JDLczpMyqxYqDsBJl2dTMRhdr39n81Qs4+8WXA8kx40Wk84teYgmd8YXbgs3Kc9Vg6au L4rQnm4nTawNjW2H4bjCquZ8a6LIFsldLfydN1N94QxxtwTJmW1a2OKxZ4XPIyYQ3urP N0hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=ZNQhOTQ9; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g7si4160435pfm.0.2018.03.01.19.55.30; Thu, 01 Mar 2018 19:55:45 -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; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=ZNQhOTQ9; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1164542AbeCBDLt (ORCPT + 99 others); Thu, 1 Mar 2018 22:11:49 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:50492 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1163412AbeCBDLr (ORCPT ); Thu, 1 Mar 2018 22:11:47 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w2237R8B078864; Fri, 2 Mar 2018 03:11:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=MXsx06AT9PQB3l3WYNBxIYlxD9sylheCA6mQpY5Twi8=; b=ZNQhOTQ9XNbNvbK/D4iocTH3p7fH0DYDVzYkwY46jMIHfn61PFouEDBfebN6hzE8RfH3 J301U8Zoj3FMoe8LFEox+4iVHm1PHToBxb/2/WWX2UFt5RpRs/GApfWgtNJ125K2zrrs YVRAYncOd4wbBDsO/s/N4vPlbLyDBjoGfdPcJ05HpTZDz/jI4kXQxEjzWHV0H1etxZoX FtW3GOwKyFWaCXLMAIBB5fzMyhPlSZseVbPsKq4UgP4e4btJ4qwKhoGGMkw9WfVvO/dY BxswTQ45LQGCY/yrqSGwvz5VblhEXDb84o04QtAZ28Ku14JT9qoQAD1Fv4kHIK9DD+uu 6Q== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2130.oracle.com with ESMTP id 2gewa6r6ak-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 02 Mar 2018 03:11:27 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w223BQXX006365 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 2 Mar 2018 03:11:26 GMT Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w223BO3x020710; Fri, 2 Mar 2018 03:11:24 GMT Received: from [10.182.69.179] (/10.182.69.179) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 01 Mar 2018 19:11:23 -0800 Subject: Re: [PATCH V2] nvme-pci: assign separate irq vectors for adminq and ioq0 To: Keith Busch Cc: Sagi Grimberg , Christoph Hellwig , axboe@fb.com, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org References: <1519832921-13915-1-git-send-email-jianchao.w.wang@oracle.com> <20180228164726.GB16536@lst.de> <66e4ad3e-4019-13ec-94c0-e168cc1d95b4@oracle.com> <20180301151544.GA17676@localhost.localdomain> From: "jianchao.wang" Message-ID: Date: Fri, 2 Mar 2018 11:11:22 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180301151544.GA17676@localhost.localdomain> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8819 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=982 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803020032 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Keith Thanks for your kindly directive and precious time for this. On 03/01/2018 11:15 PM, Keith Busch wrote: > On Thu, Mar 01, 2018 at 06:05:53PM +0800, jianchao.wang wrote: >> When the adminq is free, ioq0 irq completion path has to invoke nvme_irq twice, one for itself, >> one for adminq completion irq action. > > Let's be a little more careful on the terminology when referring to spec > defined features: there is no such thing as "ioq0". The IO queues start > at 1. The admin queue is the '0' index queue. Yes, indeed, sorry for my bad description. >> We are trying to save every cpu cycle across the nvme host path, why we waste nvme_irq cycles here. >> If we have enough vectors, we could allocate another irq vector for adminq to avoid this. > > Please understand the _overwhelming_ majority of time spent for IRQ > handling is the context switches. There's a reason you're not able to > measure a perf difference between IOQ1 and IOQ2: the number of CPU cycles > to chain a second action is negligible. > Yes, indeed Sincerely Jianchao