diff options
author | Paul Jackson <pj@sgi.com> | 2006-03-24 03:16:09 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-24 07:33:23 -0800 |
commit | b0196009d8c3ecf6ea6ec080c63d2ccc146e7ad9 (patch) | |
tree | 3fcb06af54faf92fa5d9d82d5659762d2b742e1c /fs/buffer.c | |
parent | c61afb181c649754ea221f104e268cbacfc993e3 (diff) | |
download | linux-b0196009d8c3ecf6ea6ec080c63d2ccc146e7ad9.tar.gz linux-b0196009d8c3ecf6ea6ec080c63d2ccc146e7ad9.tar.bz2 linux-b0196009d8c3ecf6ea6ec080c63d2ccc146e7ad9.zip |
[PATCH] cpuset memory spread slab cache hooks
Change the kmem_cache_create calls for certain slab caches to support cpuset
memory spreading.
See the previous patches, cpuset_mem_spread, for an explanation of cpuset
memory spreading, and cpuset_mem_spread_slab_cache for the slab cache support
for memory spreading.
The slab caches marked for now are: dentry_cache, inode_cache, some xfs slab
caches, and buffer_head. This list may change over time. In particular,
other file system types that are used extensively on large NUMA systems may
want to allow for spreading their directory and inode slab cache entries.
Signed-off-by: Paul Jackson <pj@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/buffer.c')
-rw-r--r-- | fs/buffer.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/buffer.c b/fs/buffer.c index 0d6ca7bac6c8..36c7253bea72 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -3143,8 +3143,11 @@ void __init buffer_init(void) int nrpages; bh_cachep = kmem_cache_create("buffer_head", - sizeof(struct buffer_head), 0, - SLAB_RECLAIM_ACCOUNT|SLAB_PANIC, init_buffer_head, NULL); + sizeof(struct buffer_head), 0, + (SLAB_RECLAIM_ACCOUNT|SLAB_PANIC| + SLAB_MEM_SPREAD), + init_buffer_head, + NULL); /* * Limit the bh occupancy to 10% of ZONE_NORMAL |