[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1432134405.4060.27.camel@edumazet-glaptop2.roam.corp.google.com>
Date: Wed, 20 May 2015 08:06:45 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Deniz Eren <denizlist@...izeren.net>
Cc: netdev@...r.kernel.org
Subject: Re: Packet capturing performance
On Wed, 2015-05-20 at 16:13 +0300, Deniz Eren wrote:
> But after some investigation and some advice from more expert people
> the problem seems to be pf_packet sockets overhead. But I don't know
> exactly where is the bottleneck. Do you have any idea exactly where
> could be the bottleneck?
You use a multi queue NIC.
Make sure you setup proper IRQ affinities to serve IRQ in a sharded way.
The key is to try to have one packet queue to receive a copy of the
sniffed traffic per cpu.
AF_PACKET has PACKET_FANOUT / PACKET_FANOUT_CPU capability.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists