Skip to content

net: Percpufy frequently used variables on struct proto

Ravikiran G Thirumalai linux-arch lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 34 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4net: Percpufy frequently used variables -- add percpu_counter_mod_bhinclude/linux/percpu_counter.h+8 -00 replies
2/4net: Percpufy frequently used variables -- struct proto.memory_allocatedinclude/net/sock.h include/net/tcp.h net/core/sock.c +6 more+32 -211 reply
3/4net: Percpufy frequently used variables -- proto.sockets_allocatedinclude/net/sock.h include/net/tcp.h net/core/sock.c +5 more+35 -1233 replies
4/4net: Percpufy frequently used variables -- proto.inuseinclude/net/sock.h net/core/sock.c net/ipv4/proc.c +4 more+22 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 0/4] net: Percpufy frequently used variables on struct proto

The following patches change struct proto.memory_allocated, proto.sockets_allocated to use per-cpu counters. This patchset also switches the proto.inuse percpu varible to use alloc_percpu, instead of NR_CPUS * cacheline size padding.

We saw 5 % improvement in apache bench requests per second with this patchset, on a multi nic 8 way 3.3 GHZ IBM x460 Xeon server.

Patches follow.

Thanks,
Kiran