Re: multi bpf filter will impact performance?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric Dumazet
Date: Tuesday, November 30, 2010 - 9:03 pm

Le mercredi 01 décembre 2010 à 11:48 +0800, Rui a écrit :


Yes, the filter code wan run in parallel with no particular slowdown,
since code and bpf data is shared by all cpus (no writes)

But its rather important for performance that each cpu store packets
into its own packet socket or ring buffer, to avoid false sharing
slowdowns.

With such a setup (split packets to four cpus, then make sure one cpu
deliver packets to one particular PACKET socket/ring buffer), it should
really be fast enough.



--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
multi bpf filter will impact performance?, Rui, (Tue Nov 30, 2:22 am)
Re: multi bpf filter will impact performance?, Eric Dumazet, (Tue Nov 30, 2:34 am)
Re: multi bpf filter will impact performance?, Eric Dumazet, (Tue Nov 30, 3:01 am)
Re: multi bpf filter will impact performance?, Eric Dumazet, (Tue Nov 30, 4:17 am)
Re: multi bpf filter will impact performance?, Eric Dumazet, (Tue Nov 30, 9:03 pm)
Re: multi bpf filter will impact performance?, Changli Gao, (Wed Dec 1, 12:36 am)
Re: multi bpf filter will impact performance?, Eric Dumazet, (Wed Dec 1, 12:47 am)
Re: multi bpf filter will impact performance?, Changli Gao, (Wed Dec 1, 12:59 am)
Re: multi bpf filter will impact performance?, Eric Dumazet, (Wed Dec 1, 1:09 am)
Re: multi bpf filter will impact performance?, Changli Gao, (Wed Dec 1, 1:15 am)
Re: multi bpf filter will impact performance?, Eric Dumazet, (Wed Dec 1, 1:42 am)
Re: multi bpf filter will impact performance?, Hagen Paul Pfeifer, (Wed Dec 1, 10:22 am)
Re: multi bpf filter will impact performance?, David Miller, (Wed Dec 1, 11:18 am)
Re: multi bpf filter will impact performance?, David Miller, (Wed Dec 1, 11:24 am)
Re: multi bpf filter will impact performance?, Eric Dumazet, (Wed Dec 1, 11:24 am)
Re: multi bpf filter will impact performance?, David Miller, (Wed Dec 1, 11:44 am)
Re: multi bpf filter will impact performance?, Eric Dumazet, (Wed Dec 1, 12:48 pm)
Re: multi bpf filter will impact performance?, David Miller, (Wed Dec 1, 1:23 pm)
Re: multi bpf filter will impact performance?, Eric Dumazet, (Thu Dec 2, 11:32 pm)
Re: multi bpf filter will impact performance?, Junchang Wang, (Fri Dec 3, 2:40 am)
PATCH] filter: fix sk_filter rcu handling, Eric Dumazet, (Sun Dec 5, 1:53 pm)
Re: [stable] PATCH] filter: fix sk_filter rcu handling, Eric Dumazet, (Sun Dec 5, 2:28 pm)
Re: PATCH] filter: fix sk_filter rcu handling, David Miller, (Mon Dec 6, 10:29 am)