[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090312143427.GJ11935@one.firstfloor.org>
Date: Thu, 12 Mar 2009 15:34:27 +0100
From: Andi Kleen <andi@...stfloor.org>
To: "Zhang, Yanmin" <yanmin_zhang@...ux.intel.com>
Cc: Andi Kleen <andi@...stfloor.org>, netdev@...r.kernel.org,
LKML <linux-kernel@...r.kernel.org>, herbert@...dor.apana.org.au,
jesse.brandeburg@...el.com, shemminger@...tta.com,
David Miller <davem@...emloft.net>
Subject: Re: [RFC v2: Patch 1/3] net: hand off skb list to other cpu to submit to upper layer
On Thu, Mar 12, 2009 at 04:16:32PM +0800, Zhang, Yanmin wrote:
>
> > Seems very inconvenient to have to configure this by hand.
> A little, but not too much, especially when we consider there is interrupt binding.
Interrupt binding is something popular for benchmarks, but most users
don't (and shouldn't need to) care. Having it work well out of the box
without special configuration is very important.
>
> > How about
> > auto selecting one that shares the same LLC or somesuch?
> There are 2 kinds of LLC sharing here.
> 1) RX/TX share the LLC;
> 2) All RX share the LLC of some cpus and TX share the LLC of other cpus.
>
> Item 1) is important, but sometimes item 2) is also important when the sending speed is
> very high and huge data is on flight which flushes cpu cache quickly.
> It's hard to distinguish the 2 different scenarioes automatically.
Why is it hard if you know the CPUs?
> > and just use the hash function on the
> > NIC.
> Sorry. I can't understand what the hash function of NIC is. Perhaps NIC hardware has something
> like hash function to decide the RX queue number based on SRC/DST?
There's a Microsoft spec for a standard hash function that does this
on NICs and all the serious ones support it these days. The hash
is normally used to select a MSI-X target based on the input header.
I think if that works your manual target shouldn't be necessary.
> > The trick here would
> > be to try to avoid reordering inside streams as far as possible,
> It's not to solve reorder issue. The start point is 10G NIC is very fast. We need some cpu
Point was that any solution shouldn't add more reordering. But when a RSS
hash is used there is no reordering on stream basis.
-Andi
--
ak@...ux.intel.com -- Speaking for myself only.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists