提交 cfd9b7df 编写于 作者: N Nick Piggin 提交者: Linus Torvalds

[PATCH] radix-tree: small

Reduce radix tree node memory usage by about a factor of 4 for small files
(< 64K).  There are pointer traversal and memory usage costs for large
files with dense pagecache.
Signed-off-by: NNick Piggin <npiggin@suse.de>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 612d6c19
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#ifdef __KERNEL__ #ifdef __KERNEL__
#define RADIX_TREE_MAP_SHIFT 6 #define RADIX_TREE_MAP_SHIFT (CONFIG_BASE_SMALL ? 4 : 6)
#else #else
#define RADIX_TREE_MAP_SHIFT 3 /* For more stressful testing */ #define RADIX_TREE_MAP_SHIFT 3 /* For more stressful testing */
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册