Skip to contentSkip to conversation

ixgbe: initialize interrupt throttle rate

PATCH In review Andy Gospodarek 2 participants 2 messages Aug 27, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

CC [email protected] [2.6.25 and later]
drivers/net/ixgbe/ixgbe_main.c +6 -0
index 34bca16..85e07b5 100644
@@ -2302,6 +2302,12 @@ static int __devinit ixgbe_set_interrupt_capability(struct ixgbe_adapter
 	int 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
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Andy Gospodarek

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

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.

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