RE: irq load balancing

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Chris Snook <csnook@...>
Cc: <linux-kernel@...>
Date: Thursday, September 13, 2007 - 4:31 pm

Doing it in a round-robin fashion will be disastrous for performance.
Your cache miss rate will go through the roof and you'll hit the slow
paths in the network stack most of the time.
Right now all this is done in a tasklet within the softirqd and hence
all landing up on the same CPU.
On the receive side it'a packet handler that handles the traffic. On the
tx side it's done within the transmit path of the packet. So would
re-architecting this to move the rx packet handler to a different kernel
thread(with smp affinity to one CPU) and tx to a different kernel
thread(with SMP affinity to a different CPU) be advisable. 
What's the impact on cache miss and slowpath/fastpath in network stack.

Thx,
-Venkat

-----Original Message-----
From: Chris Snook [mailto:csnook@redhat.com] 
Sent: Wednesday, September 12, 2007 2:45 PM
To: Venkat Subbiah
Cc: linux-kernel@vger.kernel.org
Subject: Re: irq load balancing

Venkat Subbiah wrote:
in the
the
So this
overloaded.

A little bit.  It'll keep other IRQs on different CPUs, which will
prevent other 
interrupts from causing cache and TLB evictions that could slow down the

interrupt handler for the NIC.

go to

Doing it in a round-robin fashion will be disastrous for performance.
Your 
cache miss rate will go through the roof and you'll hit the slow paths
in the 
network stack most of the time.

supported in

/proc/irq/$FOO/smp_affinity is a bitmask.  You can mask an irq to
multiple 
processors.  Of course, this will absolutely kill your performance.
That's why 
irqbalance never does this.

	-- Chris
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
irq load balancing , Venkat Subbiah, (Tue Sep 11, 7:18 pm)
Re: irq load balancing, Chris Snook, (Wed Sep 12, 5:44 pm)
RE: irq load balancing, Venkat Subbiah, (Thu Sep 13, 4:31 pm)
Re: irq load balancing, Lennart Sorensen, (Thu Sep 13, 4:44 pm)
RE: irq load balancing, Venkat Subbiah, (Thu Sep 13, 5:02 pm)
Re: irq load balancing, Chris Snook, (Thu Sep 13, 5:30 pm)
Re: irq load balancing, Arjan van de Ven, (Wed Sep 12, 10:47 am)
Re: irq load balancing, kalash nainwal, (Wed Sep 12, 7:55 am)
Re: irq load balancing, Stephen Hemminger, (Wed Sep 12, 7:51 am)