projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea67db4
)
SLUB: Improve hackbench speed
author
Christoph Lameter
<
[email protected]
>
Fri, 21 Dec 2007 22:37:37 +0000
(14:37 -0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 21 Dec 2007 23:51:07 +0000
(15:51 -0800)
Increase the mininum number of partial slabs to keep around and put
partial slabs to the end of the partial queue so that they can add
more objects.
Signed-off-by: Christoph Lameter <
[email protected]
>
Reviewed-by: Pekka Enberg <
[email protected]
>
Acked-by: Ingo Molnar <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/slub.c
patch
|
blob
|
history
diff --git
a/mm/slub.c
b/mm/slub.c
index b9f37cb0f2e6a61d80eeca2b3c9dc3799e863bce..3655ad359f03b7a776b93fc3bc192d683400859b 100644
(file)
--- a/
mm/slub.c
+++ b/
mm/slub.c
@@
-172,7
+172,7
@@
static inline void ClearSlabDebug(struct page *page)
* Mininum number of partial slabs. These will be left on the partial
* lists even if they are empty. kmem_cache_shrink may reclaim them.
*/
-#define MIN_PARTIAL
2
+#define MIN_PARTIAL
5
/*
* Maximum number of desirable partial slabs.
@@
-1613,7
+1613,7
@@
checks_ok:
* then add it.
*/
if (unlikely(!prior))
- add_partial(get_node(s, page_to_nid(page)), page);
+ add_partial
_tail
(get_node(s, page_to_nid(page)), page);
out_unlock:
slab_unlock(page);