Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754271AbdC2RQC (ORCPT ); Wed, 29 Mar 2017 13:16:02 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:35855 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753384AbdC2RQA (ORCPT ); Wed, 29 Mar 2017 13:16:00 -0400 Subject: Re: [PATCH] irq/affinity: Assign all CPUs a vector To: Keith Busch , linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, Thomas Gleixner References: <1490743277-14139-1-git-send-email-keith.busch@intel.com> Cc: Christoph Hellwig From: Sagi Grimberg Message-ID: <6e7a93a7-b0bb-8835-6c49-3eaa3203e1d8@grimberg.me> Date: Wed, 29 Mar 2017 20:15:50 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <1490743277-14139-1-git-send-email-keith.busch@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 601 Lines: 11 > The number of vectors to assign needs to be adjusted for each node such > that it doesn't exceed the number of CPUs in that node. This patch > recalculates the vector assignment per-node so that we don't try to > assign more vectors than there are CPUs. When that previously happened, > the cpus_per_vec was calculated to be 0, so many vectors had no CPUs > assigned. This then goes on to fail to allocate descriptors due to > empty masks, leading to an unoptimal spread. Can you give a specific (numeric) example where this happens? I'm having a little trouble following the logical change here.