netfilter: x_tables: pack percpu counter allocations
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest3 patches 1 replyIn review
- v23 patches 1 replySuperseded
- v13 patches 3 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | netfilter: x_tables: pass xt_counters struct instead of packet counterinclude/ net/ net/ +2 more | +16 | 0 replies | |
| 2/3 | netfilter: x_tables: pass xt_counters struct to counter allocatorinclude/ net/ net/ +2 more | +34 | 0 replies | |
| 3/3 | netfilter: x_tables: pack percpu counter allocationsinclude/ net/ net/ +2 more | +48 | 0 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Eric Dumazet |
|---|---|
| 1/3 | A-b |
| 2/3 | A-b |
| 3/3 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 nf-next 0/3] netfilter: x_tables: pack percpu counter allocations
... to speed up iptables(-restore) calls.
Especially a pattern like
for i in $(seq 1 1000) ; iptables -A FORWARD ;done
is expensive, because adding the rule doubles the percpu counters (allocate
2nd blob, then free old one, including its percpu counters).
This causes frequent expansion and shrinking of percpu memory pool.
This change batches calls to the allocator by packing multiple counters in 4k memory chunks.
Heavily based on suggestions from Eric Dumazet.
The only change in v3 is in patch #2 which assigned garbage on UP (was fixed by next patch, but better to not do it in first place).