Received: by 10.213.65.68 with SMTP id h4csp192677imn; Tue, 13 Mar 2018 00:39:53 -0700 (PDT) X-Google-Smtp-Source: AG47ELu3B6XL8F7V9ZukA+/wU8zaFxZ8XjHrMNROU82xhphEsuAJsXxO81aoDCG/3seLy12tT6P/ X-Received: by 10.98.87.212 with SMTP id i81mr10827377pfj.197.1520926793912; Tue, 13 Mar 2018 00:39:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520926793; cv=none; d=google.com; s=arc-20160816; b=gg7oq1Lq7tFkqTtRj+e7M+dtsydJi+g2M8ePVg7LBbh69cZKqpHiKlktMbHNHt84T4 zSATUjkQzP/EBj4zJKSqhx6YRLHR8s94xwgDmvhGliJGsm1HmnFEb7mOSJmiNP5YcC8f esvR89ppWTAfx9JGN/wev2Fj/lK7v+A1TPY3hgR5qE44sqbRwCkr1dUaDMuOzOF+V5ti qv3FRYsariA6Qenbve62bvw+ZgoejYKtQFptx/3t+mRZvdckNkPWdSPrkgOU1YP2VO8b RA3WgjbZMLykB44bOSkKkvbiTh7fv8jT2vBJ12aoGSVpvcmuEdHaNrbaA6rv2dPGWbB6 TtjQ== 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:mime-version :references:in-reply-to:date:cc:to:reply-to:from:subject:message-id :arc-authentication-results; bh=Zm0uewdVSCCJ9RSRvQdjkyjHFDrfEQuTymg8sMLiYdk=; b=R8bh67FgJsPnRvCzGYiuJNzD2r3jtrd8MBOlY56CB54dT6WcY6pDoSFPEAagsOR1fs BAq2/awZDoAihBP4S5tK+rIX84VyPTnOEHrlnmn57ekxNBNhQkPAnXpJh/lE7icuSGkL rF6uFcQ3L4KD1uu96zzps+vzIHdMZFx4s1osz9UsIF2cYzaeS7K6nBO+v/3sy/6mIT+x ckPmqGEsbtaJMoIDM8nAzH2v5GC/vfihMoQSexE6Xo3LYrlk4zjijjL58dw34uUsh1vu K1yveDGhzBhPjUUCzQjFFE0jS+T8d3WJs3nPk3FeZN2ANX1aaQqRqYKnmpq67K0kkBx6 Ztww== 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n14si6207297pgs.335.2018.03.13.00.39.39; Tue, 13 Mar 2018 00:39:53 -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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751946AbeCMHir (ORCPT + 99 others); Tue, 13 Mar 2018 03:38:47 -0400 Received: from mga02.intel.com ([134.134.136.20]:50680 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751525AbeCMHip (ORCPT ); Tue, 13 Mar 2018 03:38:45 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Mar 2018 00:38:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,464,1515484800"; d="scan'208";a="41486922" Received: from linux.intel.com ([10.54.29.200]) by orsmga002.jf.intel.com with ESMTP; 13 Mar 2018 00:38:45 -0700 Received: from abityuts-desk.fi.intel.com (abityuts-desk.fi.intel.com [10.237.68.39]) by linux.intel.com (Postfix) with ESMTP id CDAD55803CA; Tue, 13 Mar 2018 00:38:42 -0700 (PDT) Message-ID: <1520926721.20980.210.camel@gmail.com> Subject: Re: [PATCH V3 0/4] genirq/affinity: irq vector spread among online CPUs as far as possible From: Artem Bityutskiy Reply-To: dedekind1@gmail.com To: Dou Liyang , Thomas Gleixner , Ming Lei Cc: Jens Axboe , Christoph Hellwig , linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Laurence Oberman , "Rafael J. Wysocki" Date: Tue, 13 Mar 2018 09:38:41 +0200 In-Reply-To: <5e5f3852-5314-c479-245e-d0a575e533a5@cn.fujitsu.com> 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> <5e5f3852-5314-c479-245e-d0a575e533a5@cn.fujitsu.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.5 (3.26.5-1.fc27) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2018-03-13 at 11:11 +0800, Dou Liyang wrote: > I also > met the situation that BIOS told to ACPI that it could support > physical > CPUs hotplug, But actually, there was no hardware slots in the > machine. > the ACPI tables like user inputs which should be validated when we > use. This is exactly what happens on Skylake Xeon systems. When I check dmesg or this file: /sys/devices/system/cpu/possible on 2S (two socket) and 4S (four socket) systems, I see the same number 432. This number comes from ACPI MADT. I will speculate (did not see myself) that 8S systems will report the same number as well, because of the Skylake-SP (Scalable Platform) architecture. Number 432 is good for 8S systems, but it is way too large for 2S and 4S systems - 4x or 2x larger than the theoretical maximum. I do not know why BIOSes have to report unrealistically high numbers, I am just sharing my observation. So yes, Linux kernel's possible CPU count knowledge may be too large. If we use that number to evenly spread IRQ vectors among the CPUs, we end up with wasted vectors, and even bugs, as I observe on a 2S Skylake. Artem.