Re: tx queue hashing hot-spots and poor performance (multiq, ixgbe)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Dickinson <andrew@...>, <netdev@...>
Date: Thursday, April 30, 2009 - 5:07 am

2009/4/30, Andrew Dickinson <andrew@whydna.net>:

OK.

We have done quite a bit of 10G testing.
Ill comment based on our experiences.


Setting affinity is a must yes, for high performance.

It is also important that tx affinity matches rx-affinity. So the
TX-completion runs on the same CPU as rx.


RX-side looks good. TX-side looks like what we also got with vanilla linux.

What we do is patch all drivers with a custom select_queue function
that selects the same outgoing queue as the incoming queue. With a one
to one mapping of queues to CPUs you can also use the processor id.

This way we get performance.

Another way we are looking at is to use an abstraction to help with
the queue mapping. (We call it 'flowtrunk'). This is then configurable
from userspace.



Changing the qdisc wont help since all qdiscs but pfifo_fast
serializes all CPUs to one qdisc. pfifo_fast creates a separate qdisc
per tx_queue.

If you dont want to patch the kernel you can try increasing the queue
length of the pfifo_fast qdisc.

Cheers,
Jens

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: tx queue hashing hot-spots and poor performance (multiq,..., Jesper Dangaard Brouer, (Fri May 1, 6:20 am)
Re: tx queue hashing hot-spots and poor performance (multiq,..., Jens Låås, (Thu Apr 30, 5:07 am)
Re: tx queue hashing hot-spots and poor performance (multiq,..., Andrew Dickinson, (Thu Apr 30, 10:04 am)
[PATCH] net: skb_tx_hash() improvements, Eric Dumazet, (Fri May 1, 4:29 am)
Re: [PATCH] net: skb_tx_hash() improvements, Eric Dumazet, (Fri May 1, 4:52 am)
Re: [PATCH] net: skb_tx_hash() improvements, Eric Dumazet, (Fri May 1, 5:29 am)
Re: [PATCH] net: skb_tx_hash() improvements, David Miller, (Fri May 1, 12:17 pm)
Re: [PATCH] net: skb_tx_hash() improvements, David Miller, (Sun May 3, 5:44 pm)
Re: [PATCH] net: skb_tx_hash() improvements, Eric Dumazet, (Mon May 4, 2:12 am)