Commit 9e3030bf authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] better buffer_head slab packing

Don't align the buffer_head slab on hardware cacheline boundaries.
It's on the wrong side of the speed/space tradeoff, especially for
P4's.
parent 37717bca
...@@ -2580,7 +2580,7 @@ void __init buffer_init(void) ...@@ -2580,7 +2580,7 @@ void __init buffer_init(void)
bh_cachep = kmem_cache_create("buffer_head", bh_cachep = kmem_cache_create("buffer_head",
sizeof(struct buffer_head), 0, sizeof(struct buffer_head), 0,
SLAB_HWCACHE_ALIGN, init_buffer_head, NULL); 0, init_buffer_head, NULL);
bh_mempool = mempool_create(MAX_UNUSED_BUFFERS, bh_mempool_alloc, bh_mempool = mempool_create(MAX_UNUSED_BUFFERS, bh_mempool_alloc,
bh_mempool_free, NULL); bh_mempool_free, NULL);
for (i = 0; i < ARRAY_SIZE(bh_wait_queue_heads); i++) for (i = 0; i < ARRAY_SIZE(bh_wait_queue_heads); i++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment