Skip to content

net: percpufy frequently used vars on struct proto

Ravikiran G Thirumalai lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 26 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4net: percpufy frequently used vars -- add percpu_counter_mod_bhinclude/linux/percpu_counter.h+8 -020 replies
2/4net: percpufy frequently used vars -- struct proto.memory_allocatedinclude/net/sock.h include/net/tcp.h net/core/sock.c +6 more+31 -214 replies
3/4net: percpufy frequently used vars -- proto.sockets_allocatedinclude/net/sock.h include/net/tcp.h net/core/sock.c +5 more+35 -122 replies
4/4net: percpufy frequently used vars -- 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 vars on struct proto

Following patchset converts struct proto.memory_allocated to use batching per-cpu counters, struct proto.sockets_allocated to use per-cpu counters and changes the proto.inuse per-cpu variable to use alloc_percpu instead of the NR_CPUS x cacheline size padding.

We observed 5% improvement in apache bench requests per second with this patchset on a multi NIC 8 way IBM x460 box.

(This was posted earlier
http://marc.theaimsgroup.com/?l=linux-kernel&m=113830220408812&w=2 )

Can this go into -mm please?

Thanks,
Kiran