From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753019AbcEMQqk (ORCPT ); Fri, 13 May 2016 12:46:40 -0400 Received: from mail-io0-f176.google.com ([209.85.223.176]:33590 "EHLO mail-io0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752336AbcEMQqi (ORCPT ); Fri, 13 May 2016 12:46:38 -0400 MIME-Version: 1.0 In-Reply-To: <1463118995-31763-1-git-send-email-ethan.zhao@oracle.com> References: <1463118995-31763-1-git-send-email-ethan.zhao@oracle.com> Date: Fri, 13 May 2016 09:46:37 -0700 Message-ID: Subject: Re: [PATCH] ixgbe: take online CPU number as MQ max limit when alloc_etherdev_mq() From: Alexander Duyck To: Ethan Zhao Cc: Jeff Kirsher , "Brandeburg, Jesse" , shannon nelson , Carolyn Wyborny , "Skidmore, Donald C" , Bruce W Allan , John Ronciak , Mitch Williams , intel-wired-lan , Netdev , "linux-kernel@vger.kernel.org" , Ethan Zhao Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 12, 2016 at 10:56 PM, Ethan Zhao wrote: > Allocating 64 Tx/Rx as default doesn't benefit perfomrnace when less > CPUs were assigned. especially when DCB is enabled, so we should take > num_online_cpus() as top limit, and aslo to make sure every TC has > at least one queue, take the MAX_TRAFFIC_CLASS as bottom limit of queues > number. > > Signed-off-by: Ethan Zhao What is the harm in allowing the user to specify up to 64 queues if they want to? Also what is your opinion based on? In the case of RSS traffic the upper limit is only 16 on older NICs, but last I knew the latest X550 can support more queues for RSS. Have you only been testing on older NICs or did you test on the latest hardware as well? If you want to control the number of queues allocated in a given configuration you should look at the code over in the ixgbe_lib.c, not ixgbe_main.c. All you are doing with this patch is denying the user choice with this change as they then are not allowed to set more queues. Even if they find your decision was wrong for their configuration. - Alex