On Tue, Apr 21, 2009 at 09:04:12PM -0700, Stephen Hemminger wrote: > Not sure what the performance impact would be but simply changing tcp_lock > (in nf_conntrack_proto_tcp) to a spin_lock might get a performance boost. > I thought I heard Paul say read_locks are way slower than spin_lock. In -rt, read_locks are really exclusive locks. :-/ And an uncontended read_lock is somewhat slower than a spin_lock, but not overwhelmingly so. > Alternatively, going to some form of bit based hash lock might work. I have to ask the stupid question... Can conntrack entries be hashed or otherwise partitioned, with a lock then assigned to each partition? Thanx, Paul -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html