Re: [ANNOUNCE]: First release of nftables

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Patrick McHardy
Date: Wednesday, March 18, 2009 - 7:39 am

Meelis Roos wrote:

What makes you think your current ruleset is precompiled?


Yes, but its not a 1:1 comparison. By inlining common operations
(small comparisions, small alignned data loads) in the evaluation
function, costs for a "normal" rule become comparable to iptables.
As soon as you start actually using some of the new stuff, the
comparison doesn't hold anymore. A set, even using rbtrees, which
have a huge overhead in this case, is *a lot* faster than using the
equivalent linear classification rules beginning with a quite small
number. Similar, if you replace 200 rules
"-m realm --realm X --CONNMARK --set-mark X" by a single one, it
will obviously be faster.

On top it has far smaller code and less memory usage as soon as
you have more than one CPU, its lockless, no default counters,
no overhead for unused chains, etc etc.

When the time has come, I will of course post benchmarks.

--
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:
Re: [ANNOUNCE]: First release of nftables, Meelis Roos, (Wed Mar 18, 5:00 am)
Re: [ANNOUNCE]: First release of nftables, Patrick McHardy, (Wed Mar 18, 7:39 am)
Re: [ANNOUNCE]: First release of nftables, Denys Fedoryschenko, (Wed Mar 18, 7:52 am)
Re: [ANNOUNCE]: First release of nftables, Patrick McHardy, (Wed Mar 18, 7:58 am)