Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2745502ybe; Sat, 7 Sep 2019 23:32:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqzuDRoKwF2cneYQoHENFqwZnT9wkm1mn4hmFpXkzo+3ZbHbUG9l1meJWZs4UtHpbw1i4JCO X-Received: by 2002:a65:528d:: with SMTP id y13mr16232004pgp.120.1567924335644; Sat, 07 Sep 2019 23:32:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567924335; cv=none; d=google.com; s=arc-20160816; b=pKTRtaPbY2ldvH0Tx/qrC7Y8GWVuqeVhSRr2n7GJuX32A1vBUu9l5B6lW7m5vpHvsa 5sadNIN/DHP+gFsT2Vd87bFPGa3XGc+A7GMOagdEias8hTObl2zvUsJSbcFJP0V0GGFu 7E5Jtx5mID21XP49D7Pzr+xQnM6UCj0gU1nFMnaJxG0C4eSL/TC/pjr4VhD6eMqFUHi2 1wtoKtOwJ+SP4tMrOPyj+XqQ4L21j0eznsHnCyVajYfWf0kJerC1NcdVw0Rk7UMGec7G XcKs0Ekh+gAk9Rx6sw57rQHccBa4zs5/WIbRuzp4/KskENTn4dr0drzgJqAmf0uiHTlM Y2Ug== 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=q1vch3rytgldnuoG23vzofi0A7f+xIK2gJeXHK5dUjY=; b=WQkcF9bQxafZxU2bi35/CG5L1aqW2wSNvCugDvaD3V/tPi/jwuvzqaw+PlVdNWSsE/ r7CQShVYXYanZTfZVPJxGbjKAyyGcxD9KKvXE9EkJm1Ciu1LgVABPnZCwYoXmK6AVnnN DJV9gCzGjogfWZE0yG5TaYQzG+5tALDhukl6k9+UH+Sdjmcm2EVEXgu8nohNOL41RRHW f8PPvpzLSE7xfy93svBn2qXXqi2xVGx1a4xkfpe1n3Xsu8VqbFPanm8n3JGyA6vfSeWb Xa1dKciWndcfIO8CnxbpFXtTnaRJ3ZwOdhbCdmqVqyMN7XrjZ2YAlW6Cv1/pDlkVEehm 0jtg== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h23si9723160plr.126.2019.09.07.23.32.00; Sat, 07 Sep 2019 23:32:15 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392427AbfIFWe5 (ORCPT + 99 others); Fri, 6 Sep 2019 18:34:57 -0400 Received: from mga01.intel.com ([192.55.52.88]:20193 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730705AbfIFWe5 (ORCPT ); Fri, 6 Sep 2019 18:34:57 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Sep 2019 15:34:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,474,1559545200"; d="scan'208";a="190955919" Received: from unknown (HELO localhost.localdomain) ([10.232.112.69]) by FMSMGA003.fm.intel.com with ESMTP; 06 Sep 2019 15:34:55 -0700 Date: Fri, 6 Sep 2019 16:25:55 -0600 From: Keith Busch To: Ming Lei Cc: Long Li , Daniel Lezcano , Keith Busch , Hannes Reinecke , Bart Van Assche , "linux-scsi@vger.kernel.org" , Peter Zijlstra , John Garry , LKML , "linux-nvme@lists.infradead.org" , Jens Axboe , Ingo Molnar , Thomas Gleixner , Christoph Hellwig , Sagi Grimberg Subject: Re: [PATCH 1/4] softirq: implement IRQ flood detection mechanism Message-ID: <20190906222555.GB4260@localhost.localdomain> References: <20190903072848.GA22170@ming.t460p> <6f3b6557-1767-8c80-f786-1ea667179b39@acm.org> <2a8bd278-5384-d82f-c09b-4fce236d2d95@linaro.org> <20190905090617.GB4432@ming.t460p> <6a36ccc7-24cd-1d92-fef1-2c5e0f798c36@linaro.org> <20190906014819.GB27116@ming.t460p> <20190906141858.GA3953@localhost.localdomain> <20190906221920.GA12290@ming.t460p> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190906221920.GA12290@ming.t460p> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 07, 2019 at 06:19:21AM +0800, Ming Lei wrote: > On Fri, Sep 06, 2019 at 05:50:49PM +0000, Long Li wrote: > > >Subject: Re: [PATCH 1/4] softirq: implement IRQ flood detection mechanism > > > > > >Why are all 8 nvmes sharing the same CPU for interrupt handling? > > >Shouldn't matrix_find_best_cpu_managed() handle selecting the least used > > >CPU from the cpumask for the effective interrupt handling? > > > > The tests run on 10 NVMe disks on a system of 80 CPUs. Each NVMe disk has 32 hardware queues. > > Then there are total 320 NVMe MSI/X vectors, and 80 CPUs, so irq matrix > can't avoid effective CPUs overlapping at all. Sure, but it's at most half, meanwhile the CPU that's dispatching requests would naturally be throttled by the other half who's completions are interrupting that CPU, no?