netfilter conntrack tcp lock
A message that is not in the archive (sent off-list or not yet received): 20090421210412.268fc4e7@nehalam
Quoted 3 lines · Stephen Hemminger
Not sure what the performance impact would be but simply changing
tcp_lock(innf_conntrack_proto_tcp) to aspin_lockmight get a performance boost. I thought I heard Paul sayread_locksare way slower thanspin_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.
Quoted 1 line
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
Quoted 7 lines · Stephen Hemminger
Not sure what the performance impact would be but simply changing
tcp_lock(innf_conntrack_proto_tcp) to aspin_lockmight get a performance boost. I thought I heard Paul sayread_locksare way slower thanspin_lock.Alternatively, going to some form of bit based hash lock might work.
I thought Patrick was OK with adding a spinlock into each nf_conn struct ? (We shrunk this struct with the rcu_head removal)
A straight forward locking schem. We have spinlocks everywhere in kernel afterall, and conntracking deserves this.
Just resubmit one of your prior patch perhaps ? I can dig it in a couple of hours eventually.
Thanks
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 9 lines · Eric Dumazet
Quoted 6 lines · Stephen Hemminger
Not sure what the performance impact would be but simply changing
tcp_lock(innf_conntrack_proto_tcp) to aspin_lockmight get a performance boost. I thought I heard Paul sayread_locksare way slower thanspin_lock.Alternatively, going to some form of bit based hash lock might work.
I thought Patrick was OK with adding a spinlock into each
nf_connstruct ? (We shrunk this struct with thercu_headremoval)
Yes, my main concern was the further size increase.
Quoted 4 lines
A straight forward locking schem. We have spinlocks everywhere in kernel afterall, and conntracking deserves this.
Just resubmit one of your prior patch perhaps ? I can dig it in a couple of hours eventually.
Yes, please.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html