]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
mm/vmstat.c: cache align vm_stat
authorDimitri Sivanich <sivanich@sgi.com>
Tue, 1 Nov 2011 00:09:46 +0000 (17:09 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 1 Nov 2011 00:30:51 +0000 (17:30 -0700)
commita1cb2c60ddc98ff4e5246f410558805401ceee67
tree49e3e620ff2974dc78fad8df0b343b07b75be407
parent3d470fc385defa60d9af610f05db8e7f8b4f2f5e
mm/vmstat.c: cache align vm_stat

Avoid false sharing of the vm_stat array.

This was found to adversely affect tmpfs I/O performance.

Tests run on a 640 cpu UV system.

With 120 threads doing parallel writes, each to different tmpfs mounts:
No patch: ~300 MB/sec
With vm_stat alignment: ~430 MB/sec

Signed-off-by: Dimitri Sivanich <sivanich@sgi.com>
Acked-by: Christoph Lameter <cl@gentwo.org>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmstat.c