Received: by 10.223.185.116 with SMTP id b49csp6318522wrg; Thu, 8 Mar 2018 05:36:49 -0800 (PST) X-Google-Smtp-Source: AG47ELuaZUVFQv7B2nWCBkE3w/Cpo9By7bj6gSF9DLemwkdrNk+EKaLAC5VQqi8TCyLNsw3MzST7 X-Received: by 2002:a17:902:7e87:: with SMTP id c7-v6mr24809235plm.138.1520516209062; Thu, 08 Mar 2018 05:36:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520516209; cv=none; d=google.com; s=arc-20160816; b=x6R6bu0FIKUQ1EjPn1i6CrAW11OS0tUxwps75zifCtY8tIxOr6VcfFs/Q+Ij5DNL1l csnm4yN9J6RXdfrX0sI8wCQOx3yLMC/AD8xn4vtSW5PRsJrE04ycH1VNNdXPWJ1ttaSY BwfTN4pDzs4nXQX2tUMhc//sm39Ab3JxO5PuzsXWFwmP2WinPwQVdLv59HsFA+ID7ohG rUC12vQdc1MU29hah7n6SWcbxFotVi0z1byv/0B/XCy1y2EJszuGwzx8uhtjYcs07DMT zHZa8KLMPJG/AHD1IqqjFMRgKJ7FReaeQR5F2B3Rlhi8cnFSN7BxbBVBqXD9wFYBBb/7 02Zw== 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=vDi0W8C/q9pMOpMCy2NmdArwGgk5A5jrovm2MrXKWEE=; b=ewIgiSxYmm85LTFfydTPKPs8Ifz1joIM3d2lub64A8/N8Y9McsM00BgcB/wnUIwhls sczO2UI+tm+cQNPmkbn4hrXLH02rLif/WXlie702qSv9FP85UYJXkjQNMmY3LLKpc9V3 Vc0RckE7eKafEo0C2/hzIRJHdEsn4JzWOV6Os9eP2nLPaW3ugMXxDcIAxonUVRnsJay6 6CulD5IcVvulVscZjsik2DEEz5Z8aBgrwShxOpfI7o2QKCEQPl/J1DgAD3NBFvWTttuO viVEvBwtb2BMn/9ptQEvLAsOHi7GfTRAYeQcHdOuY44onkLr/LP8tlKHmjD5CXEmtlh4 nCtA== 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 f5si13071001pgr.330.2018.03.08.05.36.34; Thu, 08 Mar 2018 05:36:49 -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 S1755974AbeCHNfD (ORCPT + 99 others); Thu, 8 Mar 2018 08:35:03 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:45918 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754987AbeCHNfB (ORCPT ); Thu, 8 Mar 2018 08:35:01 -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 220E04001851; Thu, 8 Mar 2018 13:35:01 +0000 (UTC) Received: from ming.t460p (ovpn-12-72.pek2.redhat.com [10.72.12.72]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 605E31DB22; Thu, 8 Mar 2018 13:34:50 +0000 (UTC) Date: Thu, 8 Mar 2018 21:34:45 +0800 From: Ming Lei To: Artem Bityutskiy Cc: Jens Axboe , Christoph Hellwig , Thomas Gleixner , linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Laurence Oberman Subject: Re: [PATCH V3 0/4] genirq/affinity: irq vector spread among online CPUs as far as possible Message-ID: <20180308133440.GA2713@ming.t460p> References: <20180308105358.1506-1-ming.lei@redhat.com> <1520515113.20980.31.camel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1520515113.20980.31.camel@gmail.com> 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, 08 Mar 2018 13:35:01 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Thu, 08 Mar 2018 13:35:01 +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 Thu, Mar 08, 2018 at 03:18:33PM +0200, Artem Bityutskiy wrote: > On Thu, 2018-03-08 at 18:53 +0800, Ming Lei wrote: > > Hi, > > > > This patchset tries to spread among online CPUs as far as possible, so > > that we can avoid to allocate too less irq vectors with online CPUs > > mapped. > > > > For example, in a 8cores system, 4 cpu cores(4~7) are offline/non present, > > on a device with 4 queues: > > > > 1) before this patchset > > irq 39, cpu list 0-2 > > irq 40, cpu list 3-4,6 > > irq 41, cpu list 5 > > irq 42, cpu list 7 > > > > 2) after this patchset > > irq 39, cpu list 0,4 > > irq 40, cpu list 1,6 > > irq 41, cpu list 2,5 > > irq 42, cpu list 3,7 > > > > Without this patchset, only two vectors(39, 40) can be active, but there > > can be 4 active irq vectors after applying this patchset. > > Tested-by: Artem Bityutskiy > Link: https://lkml.kernel.org/r/1519311270.2535.53.camel@intel.com Hi Artem, Thanks for your test! > > Ming, > > this patchset fixes the v4.16-rcX regression that I reported few weeks > ago. I applied it and verified that Dell R640 server that I mentioned > in the bug report boots up and the disk works. > > So this is not just an improvement, it also includes a bugfix. Actually, it isn't a real fix, the real one is in the following two: 0c20244d458e scsi: megaraid_sas: fix selection of reply queue ed6d043be8cd scsi: hpsa: fix selection of reply queue This patchset can't guarantee that all IRQ vectors are assigned by one online CPU, for example, in a quad-socket system, if only one processor is present, then some of vectors are still assigned by all offline CPUs, and it is a valid case, but still may cause io hang if drivers(hpsa, megaraid_sas) select reply queue in current way. Thanks, Ming