: Improve SA insert/delete performance
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest10 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | : [XFRM]: Pull xfrm_state_bydst hash table knowledge out of afinfo.include/ net/ net/ +1 more | +115 | 0 replies | |
| 2/10 | : [XFRM]: Pull xfrm_state_byspi hash table knowledge out of afinfo.include/ net/ net/ +1 more | +39 | 0 replies | |
| 3/10 | : [XFRM]: Move SPI hashing functions local to xfrm_state.cinclude/ net/ | +32 | 0 replies | |
| 4/10 | : [XFRM]: Convert xfrm_state hash linkage to hlists.include/ net/ | +41 | 0 replies | |
| 5/10 | : [XFRM]: Dynamic xfrm_state hash table sizing.include/ mm/ net/ | +165 | 2 replies | |
| 6/10 | : [XFRM]: Add generation count to xfrm_state and xfrm_dst.include/ net/ net/ +2 more | +10 | 0 replies | |
| 7/10 | : [XFRM]: Put more keys into destination hash function.net/ | +23 | 0 replies | |
| 8/10 | : [XFRM]: Simplify xfrm_spi_hashnet/ | +6 | 0 replies | |
| 9/10 | : [XFRM]: Do not flush all bundles on SA insert.include/ net/ net/ | +20 | 0 replies | |
| 10/10 | : [XFRM]: Purge dst references to deleted SAs passively.include/ net/ net/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/10]: Improve SA insert/delete performance
[ Jamal, you saw the first 5 patches already, the rest is new
stuff. ]
These patches against the net-2.6 GIT tree try to address some serious IPSEC SA insert/delete performance problems noticed by Jamal.
1) Use dynamic hash table sizing for the xfrm_state lookup tables.
2) Do not walk all policies and flush bundles on xfrm_state changes, instead:
a) On delete, just allow pending references to deleted xfrm_state objects to be handled by policy GC and xfrm_dst_check() which runs on every use of a cached xfrm dst route
b) On insert, find xfrm_state objects that might alias with the one we are about to insert. For all such aliases, update their generation cound which will force xfrm_bundle_ok() (and thus xfrm_dst_check) to consider the route stale, forcing a relookup.
Patches forthcoming.