]> Git Repo - linux.git/commit
tmpfs: distribute interleave better across nodes
authorNathan Zimmer <[email protected]>
Tue, 31 Jul 2012 23:46:17 +0000 (16:46 -0700)
committerLinus Torvalds <[email protected]>
Wed, 1 Aug 2012 01:42:50 +0000 (18:42 -0700)
commit09c231cb8bfdc35e7d896850d34440b8553b084f
treef9a9dcc93c875253e0d879329b1f955b1a08638f
parent6527af5d1bea219d64095a5e30c1b1e0868aae16
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 <[email protected]>
Signed-off-by: Hugh Dickins <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Nick Piggin <[email protected]>
Cc: Lee Schermerhorn <[email protected]>
Cc: KOSAKI Motohiro <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Andi Kleen <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/shmem.c
This page took 0.051678 seconds and 4 git commands to generate.