summaryrefslogtreecommitdiffstats
path: root/mm/memory.c
diff options
context:
space:
mode:
authorNathan Zimmer2012-08-01 01:46:17 +0200
committerLinus Torvalds2012-08-01 03:42:50 +0200
commit09c231cb8bfdc35e7d896850d34440b8553b084f (patch)
treef9a9dcc93c875253e0d879329b1f955b1a08638f /mm/memory.c
parentmm: remove redundant initialization (diff)
downloadkernel-qcow2-linux-09c231cb8bfdc35e7d896850d34440b8553b084f.tar.gz
kernel-qcow2-linux-09c231cb8bfdc35e7d896850d34440b8553b084f.tar.xz
kernel-qcow2-linux-09c231cb8bfdc35e7d896850d34440b8553b084f.zip
tmpfs: distribute interleave better across nodes
When tmpfs has the interleave memory policy, it always starts allocating for each file from node 0 at offset 0. When there are many small files, the lower nodes fill up disproportionately. This patch spreads out node usage by starting files at nodes other than 0, by using the inode number to bias the starting node for interleave. Signed-off-by: Nathan Zimmer <nzimmer@sgi.com> Signed-off-by: Hugh Dickins <hughd@google.com> Cc: Christoph Lameter <cl@linux.com> Cc: Nick Piggin <npiggin@gmail.com> Cc: Lee Schermerhorn <lee.schermerhorn@hp.com> Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Cc: Rik van Riel <riel@redhat.com> Cc: Andi Kleen <andi@firstfloor.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory.c')
0 files changed, 0 insertions, 0 deletions