Re: netfilter performance dependent on arch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

>> Can anyone point me to some performance comparison of netfilter on
>> i686 and x86_64? I have a few linux routers doing a lot of
>> firewalling and QoS. Currently those routers use i686 arch on 64-bit
>> hardware. Would I notice any performance gain after moving to 64-bit
>> kernel?

>Apart from the obvious "Try it on your workload and see." suggestion, 
>you could I suppose make the assumption that a netfilter workload
>looks similar to one or more components of something like 

Thanks for the response. Anyway moments ago I found answer to the first
question on vyatta forum here:

shemminger "The researchers at Uppsla University who are measuring 10G
routing performance found that 64bit kernel is slower than 32bit kernel
for routing. Most likely the increased code size caused a larger number
of CPU cache misses. 64 bit would be an advantage if you are trying to
run lots of services."

DaveRoberts "This result is actually not too surprising. Networking code
is typically very cache sensitive. This gets worse with 64-bit. If
you're running code that uses data structures with lots of pointers
(which networking code often has) and you don't needed the expanded
address space, then you're wasting half your d-cache with 32 upper bits
of zeros. While the additional registers are a benefit, they aren't
enough to make up for the increased cache miss rate.

But as you say, without knowing the compiler, optimizer, and
instrumenting the heck out of the code with all the hardware analysis
counters, it's difficult to say what's really going on. All that is on
our list of things to do over time. The main takeaway is that it's
definitely not a slam dunk one way or another."

Best regards,
Marek Kierdelewicz
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at

[Linux Netfilter Development]     [Linux Kernel Networking Development]     [Linux Networking Development]     [Linux Kernel Development]     [Linux Resources]     [LARTC]     [Bugtraq]     [Consulting]     [Free Internet Dating]     [Yosemite Forum]     [Photo]

Add to Google Powered by Linux