]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
s390/mm: have 16 byte aligned struct pages
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 8 Nov 2012 13:18:47 +0000 (14:18 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 13 Nov 2012 10:03:09 +0000 (11:03 +0100)
commit4bffbb3455372a26816e364fb4448810f7014452
treeaf64b28c6bd246a9078edb624fad787e3b4fc1f2
parent516bad44b9f3bdcb0be6be0252b7557bf7a149e4
s390/mm: have 16 byte aligned struct pages

Select HAVE_ALIGNED_STRUCT_PAGE on s390, so that the slub allocator can make
use of compare and swap double for lockless updates. This increases the size
of struct page to 64 bytes (instead of 56 bytes), however the performance gain
justifies the increased size:

- now excactly four struct pages fit into a single cache line; the
  case that accessing a struct page causes two cache line loads
  does not exist anymore.
- calculating the offset of a struct page within the memmap array
  is only a simple shift instead of a more expensive multiplication.

A "hackbench 200 process 200" run on a 32 cpu system did show an 8% runtime
improvement.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/Kconfig