ixgbe: initialize interrupt throttle rate
Subsystems (2)
PATCH 1/1 ixgbe: initialize interrupt throttle rate
This commit dropped the setting of the default interrupt throttle rate.
commit 021230d40ae0e6508d6c717b6e0d6d81cd77ac25
Author: Ayyappan Veeraiyan <[email protected]> Date: Mon Mar 3 15:03:45 2008 -0800
ixgbe: Introduce MSI-X queue vector code
The following patch adds it back. Without this the default value of 0 causes the performance of this card to be awful. Restoring these to the default values yields much better performance.
This regression has been around since 2.6.25.
drivers/net/ixgbe/ixgbe_main.c +6 -0
@@ -2302,6 +2302,12 @@ static int __devinit ixgbe_set_interrupt_capability(struct ixgbe_adapterint vector, v_budget;/* +* Set the default interrupt throttle rate. +*/ + adapter->rx_eitr = (1000000 /IXGBE_DEFAULT_ITR_RX_USECS ); + adapter->tx_eitr = (1000000 /IXGBE_DEFAULT_ITR_TX_USECS ); + +/* * It's easy to be greedy for MSI-X vectors, but it really * doesn't do us much good if we have a lot more vectors * than CPU's. So let's be conservative and only ask for
Quoted 8 lines · Andy Gospodarek
This commit dropped the setting of the default interrupt throttle rate.
commit
021230d40ae0e6508d6c717b6e0d6d81cd77ac25Author: Ayyappan Veeraiyan <[email protected]> Date: Mon Mar 3 15:03:45 2008 -0800ixgbe: Introduce MSI-X queue vector code
Quoted 8 lines
The following patch adds it back. Without this the default value of 0 causes the performance of this card to be awful. Restoring these to the default values yields much better performance.
This regression has been around since 2.6.25.
Signed-off-by Andy Gospodarek <[email protected]>CC [email protected] [2.6.25 and later]
We hadn't heard about this, but more specifically, this bug effects UDP transmit performance because the interrupt rate on the tx vectors was so low. Here is what I got in testing against 2.6.27-rc3, there was no appreciable difference testing with TCP on a back to back setup.
before
======
[root linux-2.6]# netperf -H lh2-10 -t UDP_STREAM -C -c UDP UNIDIRECTIONAL SEND TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to lh2-10 (10.0.0.1) port 0 AF_INET
Socket Message Elapsed Messages CPU
Service
Size Size Time Okay Errors Throughput Util Demand bytes bytes secs # # 10^6bits/sec % SS us/KB
112640 65507 10.00 1964 0 102.9 26.35 90.483 122880 10.00 1821 95.4 1.35 4.643
after patch
===========
[root linux-2.6]# netperf -H lh2-10 -t UDP_STREAM -C -c UDP UNIDIRECTIONAL SEND TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to lh2-10 (10.0.0.1) port 0 AF_INET
Socket Message Elapsed Messages CPU
Service
Size Size Time Okay Errors Throughput Util Demand bytes bytes secs # # 10^6bits/sec % SS us/KB
112640 65507 10.00 51641 0 2706.2 32.63 5.016 122880 10.00 40675 2131.5 30.95 4.758