netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Netfilter and SMP
@ 2006-05-26 15:23 Majid Khan
  2006-05-26 17:52 ` Andi Kleen
  0 siblings, 1 reply; 2+ messages in thread
From: Majid Khan @ 2006-05-26 15:23 UTC (permalink / raw)
  To: netdev

Hi,
  I am developing a netfilter based application on an SMP (AMD 64;dual
core) system (kernel 2.6).
One thing that I noticed over a period of time was that most of the
network traffic was handled by only one of the processor. Only under
high network traffic (roughly 10,000 packet/sec or more) did the
second processor got invloved invloved in traffic handling. Even then
more than 90 percent of the traffic was being handled by one of the
processor.

Can somebody provide me with some information on how to configure my
SMP system so that both processors share the network traffic load.

My second question was that if there is any known method to gracefully
handle failures in a netfilter module. Currently any failure in
netfilter would cause the kernel panic.

Regards,
Majid

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Netfilter and SMP
  2006-05-26 15:23 Netfilter and SMP Majid Khan
@ 2006-05-26 17:52 ` Andi Kleen
  0 siblings, 0 replies; 2+ messages in thread
From: Andi Kleen @ 2006-05-26 17:52 UTC (permalink / raw)
  To: Majid Khan; +Cc: netdev


> Can somebody provide me with some information on how to configure my
> SMP system so that both processors share the network traffic load.

You would need multiple active incoming network interfaces. 
Linux right now doesn't support load balancing from a single interrupt.
Even if it did that would likely require hardware support for MSI-X.

> My second question was that if there is any known method to gracefully
> handle failures in a netfilter module. Currently any failure in
> netfilter would cause the kernel panic.

Write a user space module using nf queue? 

-Andi
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-05-26 17:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-26 15:23 Netfilter and SMP Majid Khan
2006-05-26 17:52 ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).