Skip to content

Commit

Permalink
[S390] net: provide architecture specific NET_SKB_PAD
Browse files Browse the repository at this point in the history
NET_SKB_PAD has been increased from 32 to 64 and later to
max(32, L1_CACHE_BYTES). This led to a 25% throughput decrease for
streaming workloads accompanied by a 37% CPU cost increase on s390.
Define a architecture specific NET_SKB_PAD with the old value of 32.

Signed-off-by: Horst Hartmann <horsth@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Horst Hartmann authored and Martin Schwidefsky committed Feb 17, 2011
1 parent 7657e41 commit dd30ac3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/s390/include/asm/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

#define L1_CACHE_BYTES 256
#define L1_CACHE_SHIFT 8
#define NET_SKB_PAD 32

#define __read_mostly __attribute__((__section__(".data..read_mostly")))

Expand Down

0 comments on commit dd30ac3

Please sign in to comment.