Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1400894

Re: [PATCH] ixgbe: take online CPU number as MQ max limit when alloc_etherdev_mq()

From Alexander Duyck <alexander.duyck@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH] ixgbe: take online CPU number as MQ max limit when alloc_etherdev_mq()
Date 2016-05-13 18:50 +0200
Message-ID <ryorM-7kL-17@gated-at.bofh.it> (permalink)
References <rye93-59C-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, May 12, 2016 at 10:56 PM, Ethan Zhao <ethan.zhao@oracle.com> 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 <ethan.zhao@oracle.com>

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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] ixgbe: take online CPU number as MQ max limit when  alloc_etherdev_mq() Ethan Zhao <ethan.zhao@oracle.com> - 2016-05-13 07:50 +0200
  Re: [PATCH] ixgbe: take online CPU number as MQ max limit when  alloc_etherdev_mq() Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2016-05-13 15:00 +0200
    Re: [PATCH] ixgbe: take online CPU number as MQ max limit when  alloc_etherdev_mq() ethan zhao <ethan.zhao@oracle.com> - 2016-05-16 07:40 +0200
  Re: [PATCH] ixgbe: take online CPU number as MQ max limit when alloc_etherdev_mq() Alexander Duyck <alexander.duyck@gmail.com> - 2016-05-13 18:50 +0200
    Re: [PATCH] ixgbe: take online CPU number as MQ max limit when  alloc_etherdev_mq() ethan zhao <ethan.zhao@oracle.com> - 2016-05-16 05:10 +0200
      Re: [PATCH] ixgbe: take online CPU number as MQ max limit when alloc_etherdev_mq() Alexander Duyck <alexander.duyck@gmail.com> - 2016-05-16 18:10 +0200
        Re: [Intel-wired-lan] [PATCH] ixgbe: take online CPU number as MQ max  limit when alloc_etherdev_mq() John Fastabend <john.fastabend@gmail.com> - 2016-05-16 19:20 +0200
        Re: [PATCH] ixgbe: take online CPU number as MQ max limit when  alloc_etherdev_mq() ethan zhao <ethan.zhao@oracle.com> - 2016-05-17 11:10 +0200
          Re: [PATCH] ixgbe: take online CPU number as MQ max limit when alloc_etherdev_mq() Alexander Duyck <alexander.duyck@gmail.com> - 2016-05-17 18:00 +0200
  Re: [PATCH] ixgbe: take online CPU number as MQ max limit when   alloc_etherdev_mq() Jeff Kirsher <jeffrey.t.kirsher@intel.com> - 2016-05-16 23:00 +0200

csiph-web