Received: by 10.223.185.111 with SMTP id b44csp419597wrg; Fri, 9 Mar 2018 07:11:12 -0800 (PST) X-Google-Smtp-Source: AG47ELsT/Efh5k+f/uIeuipPAT9a4L2Zcw6nlsW3X/hi5FfWJHAx5+UrV8l2CRQf6QrKO/Upl4CS X-Received: by 10.101.98.17 with SMTP id d17mr24763775pgv.221.1520608272467; Fri, 09 Mar 2018 07:11:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520608272; cv=none; d=google.com; s=arc-20160816; b=pNZLlBZoRIqo4bHH+3HZDJ3oXz145DEdJOVreo0cyoRGUHyHBqtosjHz1pIcBvDJTu gu4iwYlZdWElvygFkNBnPA6uiE1Z0q8vnAqWxtfgciLEARKgSPO0VJMko79Jr4JJzuxS 583CaeSaA+rJ4+zaJCuG6R5nGLlBUfRCUmKmvJSbS1vudQ8TV1t6GsaodreItfFUEA2s A4kCatrKgcnmVVLpGi/XNYnqJFJW5AI4lIgKRHoHqgR83UA+lqSRntjZ2WKtls1hSA9j EUXfPrQN793USRrsT0PnT4+sdq69HJXAqqyLUTGcMWybzZdoYMoI3F0ZmOwcjXPalJOm FbAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=fV4F8u1OrbmvIIvMeV8mvZKJvoHF7XcmkSnao5ixf8M=; b=ES59BstZki4wTJZ8mhfuFe6qthrqTvYBYXhUHYglFaD/rqJi/gJ2wH6zAExI20KlUM zpXKJ/uLvqShq+nqucn2Zi5OkU3hPO+Og/4BWrZxgtLX5AFLKqSpE0g/eM4AF1Bbhz6f 0VtLizgyUvixGLnOttwVqYQqBPSfLuT1QFQfpW/AqZ3yJMQAsWNnFzJVDQe/IlSerfGa I0jOyl5xR5hrTQxlA4rlDGiqu6peKcMbz/QaUlF6z2JLItfbpHEvBYnwlvpAA3svHu5y OLI3quuWuL8jKUo5YHei4eGW2HVy0FtRt3Ar5un1AmF7jnyAVbVaqVusdX2H5PdcBvOC x4FA== 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 m17si961403pfh.319.2018.03.09.07.10.57; Fri, 09 Mar 2018 07:11:12 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932123AbeCIPIY (ORCPT + 99 others); Fri, 9 Mar 2018 10:08:24 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:41528 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751102AbeCIPIW (ORCPT ); Fri, 9 Mar 2018 10:08:22 -0500 Received: from hsi-kbw-5-158-153-52.hsi19.kabel-badenwuerttemberg.de ([5.158.153.52] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1euJd5-0001es-KV; Fri, 09 Mar 2018 16:08:19 +0100 Date: Fri, 9 Mar 2018 16:08:19 +0100 (CET) From: Thomas Gleixner To: Ming Lei cc: Artem Bityutskiy , Jens Axboe , Christoph Hellwig , 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 In-Reply-To: <20180309120833.GB30257@ming.t460p> Message-ID: References: <20180308105358.1506-1-ming.lei@redhat.com> <1520515113.20980.31.camel@gmail.com> <20180308133440.GA2713@ming.t460p> <20180309012458.GD5228@ming.t460p> <20180309120833.GB30257@ming.t460p> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 9 Mar 2018, Ming Lei wrote: > On Fri, Mar 09, 2018 at 11:08:54AM +0100, Thomas Gleixner wrote: > > > > So my understanding is that these irq patches are enhancements and not bug > > > > fixes. I'll queue them for 4.17 then. > > > > > > Wrt. this IO hang issue, these patches shouldn't be bug fix, but they may > > > fix performance regression[1] for some systems caused by 84676c1f21 ("genirq/affinity: > > > assign vectors to all possible CPUs"). > > > > > > [1] https://marc.info/?l=linux-block&m=152050347831149&w=2 > > > > Hmm. The patches are rather large for urgent and evtl. backporting. Is > > there a simpler way to address that performance issue? > > Not thought of a simpler solution. The problem is that number of active msix vector > is decreased a lot by commit 84676c1f21. It's reduced in cases where the number of possible CPUs is way larger than the number of online CPUs. Now, if you look at the number of present CPUs on such systems it's probably the same as the number of online CPUs. It only differs on machines which support physical hotplug, but that's not the normal case. Those systems are more special and less wide spread. So the obvious simple fix for this regression issue is to spread out the vectors accross present CPUs and not accross possible CPUs. I'm not sure if there is a clear indicator whether physcial hotplug is supported or not, but the ACPI folks (x86) and architecture maintainers should be able to answer that question. I have a machine which says: smpboot: Allowing 128 CPUs, 96 hotplug CPUs There is definitely no way to hotplug anything on that machine and sure the existing spread algorithm will waste vectors to no end. Sure then there is virt, which can pretend to have a gazillion of possible hotpluggable CPUs, but virt is an insanity on its own. Though someone might come up with reasonable heuristics for that as well. Thoughts? Thanks, tglx