Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1118653ybl; Fri, 13 Dec 2019 09:52:11 -0800 (PST) X-Google-Smtp-Source: APXvYqy03A3D/Q6J6CrT1/headXRB8X8igB+z4MlNQFoOixkuY6NErrWPBAfeB4YHC0nAQ4VWwxV X-Received: by 2002:a9d:7c97:: with SMTP id q23mr15644744otn.253.1576259531045; Fri, 13 Dec 2019 09:52:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576259531; cv=none; d=google.com; s=arc-20160816; b=wHIHqB/JoN2CpeVErQx/TMgY/y/zD3W2irPXNq8UYjnd86wRPWwIi8AzYNImZZniGX CPTMW5VutVs2HfS5xKomnZzX4EaTMI43f1pLSxquV2EGz7Y2sKfUeh3QWHtR1gIgDmkq oH+k/Q7WnTTGJk0sNGzjUeRCboDgQlGuINmbNYefICJ9sw+xLPvt9bNGN7pjqu/h7dnh vMos1M35Ach9SF6kcZ3jlCUNNXC/WDThJ1Wc1Iw5wxl6Qo115lN8gkHhZCIZtaUu4U7B uxIBxmRDoM28mum6/lekCqSKeS5w5JkdQFTgpDU4CMwbj7RFx6Jr6in+WvcVeunrTWUB NAhw== 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; bh=DJkwG3dsy2J+/b0xRS874dL3Oygq8QY40NOdlIlO+GM=; b=bc++bQ81ym3cJ29YyOeD+lsw0ui/mzeH77nWB5svCRVK2H2KRItC2nZc0AvWBOL3oi HywWHE8ur8L1fNja+z/voB2WPiOmVDvA79zvsw5RMwG5qxIJ5nO597mCcZ14He4cggmM aY7qsbgAAEPH6TrqTIPpwu9xilxGGOJwKcWIvdYVUIRwB64QcJ97UkjCUTBCj8rxE6kN qKnaky5mwUFv7SrYO4PWu3jT830ST6oJq2BBX6BkruGX6EvgD5JFPS8ag7/KmoDunO0X WyWf1tfubH8f5k5ObbE8vbfdoXGHOYDKhUTUKjsuREiysmVIQoioSg6AcvnWTgVuZnBe 8zPg== 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 g72si5584972otg.223.2019.12.13.09.51.59; Fri, 13 Dec 2019 09:52:11 -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 S1728602AbfLMRuu (ORCPT + 99 others); Fri, 13 Dec 2019 12:50:50 -0500 Received: from lhrrgout.huawei.com ([185.176.76.210]:2192 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728516AbfLMRuu (ORCPT ); Fri, 13 Dec 2019 12:50:50 -0500 Received: from LHREML712-CAH.china.huawei.com (unknown [172.18.7.107]) by Forcepoint Email with ESMTP id E551F4C557F52EF24B87; Fri, 13 Dec 2019 17:50:48 +0000 (GMT) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by LHREML712-CAH.china.huawei.com (10.201.108.35) with Microsoft SMTP Server (TLS) id 14.3.408.0; Fri, 13 Dec 2019 17:50:48 +0000 Received: from [127.0.0.1] (10.202.226.46) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Fri, 13 Dec 2019 17:50:48 +0000 Subject: Re: [PATCH RFC 1/1] genirq: Make threaded handler use irq affinity for managed interrupt To: Ming Lei CC: "tglx@linutronix.de" , "chenxiang (M)" , "bigeasy@linutronix.de" , "linux-kernel@vger.kernel.org" , "maz@kernel.org" , "hare@suse.com" , "hch@lst.de" , "axboe@kernel.dk" , "bvanassche@acm.org" , "peterz@infradead.org" , "mingo@redhat.com" References: <1575642904-58295-1-git-send-email-john.garry@huawei.com> <1575642904-58295-2-git-send-email-john.garry@huawei.com> <20191207080335.GA6077@ming.t460p> <78a10958-fdc9-0576-0c39-6079b9749d39@huawei.com> <20191210014335.GA25022@ming.t460p> <0ad37515-c22d-6857-65a2-cc28256a8afa@huawei.com> <20191212223805.GA24463@ming.t460p> <20191213131822.GA19876@ming.t460p> <20191213171222.GA17267@ming.t460p> From: John Garry Message-ID: Date: Fri, 13 Dec 2019 17:50:47 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: <20191213171222.GA17267@ming.t460p> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.226.46] X-ClientProxiedBy: lhreml728-chm.china.huawei.com (10.201.108.79) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/12/2019 17:12, Ming Lei wrote: >> pu list 80-83, effective list 81 >> irq 97, cpu list 84-87, effective list 86 >> irq 98, cpu list 88-91, effective list 89 >> irq 99, cpu list 92-95, effective list 93 >> john@ubuntu:~$ >> >> I'm now thinking that we should just attempt this intelligent CPU affinity >> assignment for managed interrupts. > Right, the rule is simple: distribute effective list among CPUs evenly, > meantime select the effective CPU from the irq's affinity mask. > Even if we fix that, there is still a potential to have a CPU handling multiple nvme completion queues due to many factors, like cpu count, probe ordering, other PCI endpoints in the system, etc, so this lockup needs to be remedied. Thanks, John