From: Eric Dumazet <eric.dumazet@gmail.com>
To: David Miller <davem@davemloft.net>
Cc: therbert@google.com, netdev@vger.kernel.org, bhutchings@solarflare.com
Subject: Re: [PATCH net-next-2.6] sched: use xps information for qdisc NUMA affinity
Date: Tue, 30 Nov 2010 20:07:27 +0100 [thread overview]
Message-ID: <1291144047.2904.224.camel@edumazet-laptop> (raw)
In-Reply-To: <20101130.104834.112604433.davem@davemloft.net>
Le mardi 30 novembre 2010 à 10:48 -0800, David Miller a écrit :
> Most drivers do, and all drivers ought to, allocate DMA queues and
> whatnot when the interface is brought up.
>
> That solves this particular issue.
>
> For example, drivers/net/niu.c does this by calling
> niu_alloc_channels() via niu_open().
>
> The only thing we really can't handle currently is the netdev
> itself (and the associated driver private). Jesse Brandeburg
> has been reminding me about this over and over :-)
>
> There might be some things we can even do about that part. For
> example, we can put all of the things the driver touches in the
> RX and TX fast paths via indirect pointers and therefore be able
> to allocate and reallocate those portions as we want long after
> device registry.
>
> Doing the core netdev struct itself is too hard because it sits
> in so many tables.
netdev struct itself is shared by all cpus, so there is no real choice,
unless you know one netdev will be used by a restricted set of
cpus/nodes... Probably very unlikely in practice.
This can probably be done right now with
numactl .... modprobe ...
We could change (only on NUMA setups maybe)
struct netdev_queue *_tx;
to a
struct netdev_queue **_tx;
and allocate each "struct netdev_queue" on appropriate node, but adding
one indirection level might be overkill...
For very hot small structures, (one or two cache lines), I am not sure
its worth the pain.
Ben, could you remind us what was your ethtool interface ?
Something to setup a NUMA map for RX queues, TX queues ?
I can probably play with bnx2x and custom module param to test how it
can help raw performance...
next prev parent reply other threads:[~2010-11-30 19:07 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-21 23:17 [PATCH 2/2 v7] xps: Transmit Packet Steering Tom Herbert
2010-11-22 11:42 ` Changli Gao
2010-11-22 13:33 ` Eric Dumazet
2010-11-24 19:45 ` David Miller
2010-11-26 17:13 ` Tom Herbert
2010-11-26 17:17 ` Eric Dumazet
2010-11-28 15:43 ` [PATCH net-next-2.6] xps: NUMA allocations for per cpu data Eric Dumazet
2010-11-29 17:43 ` David Miller
2010-11-25 17:12 ` [PATCH 2/2 v7] xps: Transmit Packet Steering Ben Hutchings
2010-11-29 18:14 ` [PATCH net-next-2.6] sched: use xps information for qdisc NUMA affinity Eric Dumazet
2010-11-30 18:31 ` Tom Herbert
2010-11-30 18:39 ` Eric Dumazet
2010-11-30 18:46 ` Ben Hutchings
2010-11-30 18:52 ` Eric Dumazet
2010-11-30 18:48 ` David Miller
2010-11-30 19:07 ` Eric Dumazet [this message]
2010-11-30 19:19 ` Ben Hutchings
2010-11-30 19:21 ` David Miller
2010-11-30 20:01 ` Brandeburg, Jesse
2010-12-01 20:49 ` David Miller
2010-12-01 20:55 ` Eric Dumazet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1291144047.2904.224.camel@edumazet-laptop \
--to=eric.dumazet@gmail.com \
--cc=bhutchings@solarflare.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=therbert@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox