[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AANLkTimynbhgo2dqFwKOc8NT9TXpkCtCJMvwkySEBORz@mail.gmail.com>
Date: Wed, 1 Dec 2010 15:36:13 +0800
From: Changli Gao <xiaosuo@...il.com>
To: Rui <wirelesser@...il.com>
Cc: Eric Dumazet <eric.dumazet@...il.com>, netdev@...r.kernel.org
Subject: Re: multi bpf filter will impact performance?
On Wed, Dec 1, 2010 at 11:48 AM, Rui <wirelesser@...il.com> wrote:
> one more question is
>
> if RPS can spread the load into 4 separate cpus, how about the
> "packet_rcv(or tpacket_rcv)" ? will they run in parallel?
>
You mentioned RPS. But the current bpf doesn't have an instruction to
get the current CPU number. You can try this patch attached.
Maybe we can leverage the bpf and SO_REUSEPORT to direct the traffic
to the socket instance on the local CPU.
--
Regards,
Changli Gao(xiaosuo@...il.com)
View attachment "bpf_cpu.diff" of type "text/plain" (728 bytes)
Powered by blists - more mailing lists