kernel option "Bridged IP/ARP packets filtering" degrades bridging per
I have tested the bridging performance of Linux.
I used SmartBit equipment.
Linux machine;
Xeon 3.06GHz * 2 CPU
1 G Memory
intel e1000 NIC 2 port LC type * 1 driver version
6.0.60
kernel 2.6.12
When I generated traffic with 64bytes packets both direction without "Bridged IP/ARP packets filtering" kernel option, I got success rate 10%.
(This result disappoints me.)
But when I enabled that option(I recompiled the kernel), I got success rate 5%.
It was a half of prior result.
I did not add any filter rules. I just enabled that option because I wanted to use bridge firewalling.
What is the reason I got this result?
How can I fix this strange thing or enhance bridging performance?
Please let me know.
Thanks in advance
Yimbo
__________________________________________________
두 유 야후!?
스팸때문에 짜증나세요? 야후! 메일의 스팸 차단 기술로 메일을 보호합니다
http://mail.yahoo.co.kr
Hi!
please note that netfilter bridging stuff is probably better discussed at some ebtables and/or bridging related mailinglist.
Quoted 1 line · 초순 임
I have tested the bridging performance of Linux.
please don't try to do performance tests (and be disappointed) without first learning about all the important optimizations/toggles/switches, bells and whistles that you can use to tune the performance in cases like yours.
Quoted 3 lines
Linux machine;
Xeon 3.06GHz * 2 CPU
dual cpu doesn't really help in most packet forwarding cases with only two interfaces. try booting a UP kernel.
Quoted 1 line
1 G Memory
which memory (speed)? which chipset?
Quoted 1 line
intel e1000 NIC 2 port LC type * 1 driver version
which bus-width? which speed? where are they in the bus hierarchy?
Quoted 6 lines
But when I enabled that option(I recompiled the kernel), I got success rate 5%.
It was a half of prior result.
I did not add any filter rules. I just enabled that option because I wanted to use bridge firewalling.
some degradation is not really surprising since you will add a number of netfilter hooks to the network stack, each of which will be consulted for every packet. Also, enabling bridging packet filter will enlarge "struct sk_buff", which might cause it to grow another cacheline and thus introduce more cache misses.
Signature · 5 lines
- Harald Welte <[email protected]> http://netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie