netdev
[Top] [All Lists]

Re: gigabit ethernet

To: Nivedita Singhvi <niv@xxxxxxxxxx>
Subject: Re: gigabit ethernet
From: Jeff Garzik <jgarzik@xxxxxxxxx>
Date: Fri, 13 Feb 2004 17:11:09 -0500
Cc: Cheng Jin <chengjin@xxxxxxxxxxxxxx>, satya srikanth <satyasrikanth2001@xxxxxxxxx>, "Xiaoliang (David) Wei" <weixl@xxxxxxxxxxx>, "netdev@xxxxxxxxxxx" <netdev@xxxxxxxxxxx>
In-reply-to: <402D424A.5060901@xxxxxxxxxx>
References: <Pine.LNX.4.44.0402131116590.24993-100000@xxxxxxxxxxxxxxxxxxxx> <402D424A.5060901@xxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.3.28i
On Fri, Feb 13, 2004 at 01:31:54PM -0800, Nivedita Singhvi wrote:
> Cheng Jin wrote:
> >
> >I read somewhere that Intel SMP has cpu0 taking care of 
> >all the hardware interrupts, but I don't know about softirqs.
> >I think all softirqs related to the GbE are handled by the
> >same cpu.
> 
> For incoming network packets, the hw interrupt handler simply
> schedules a local softirq to handle the rest of the input
> processing. So the softirq will execute on the same
> CPU that the hw interrupt came in on.

Many answers ;-)

1) Starting with Pentium4, all interrupts are delivered to cpu0...
unless software directs otherwise.  Thus it is helpful to have a
software irq balancing solution.  Red Hat has a userspace irqbalanced,
and kernel 2.6.x also has kirqd on x86.

2) For networking, receiving all packets on one cpu has many benefits,
and avoids packet reordering problems that occasionally appear on SMP.

3) For NAPI drivers, regardless of interrupt balancing strategy, packets
are usually receiving on one cpu.


<Prev in Thread] Current Thread [Next in Thread>