]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
[IPV4]: fib_trie root node settings
authorRobert Olsson <robert.olsson@its.uu.se>
Mon, 19 Mar 2007 23:29:58 +0000 (16:29 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 05:26:32 +0000 (22:26 -0700)
The threshold for root node can be more aggressive set to get
better tree compression. The new setting mekes the root grow
from 16 to 19 bits and substansial improvemnt in Aver depth
this with the current table of 214393 prefixes

But really the dynamic resize should need more investigation
both in terms convergence and performance and maybe it should
be possible to change...

Maybe just for the brave to start with or we may have to back
this out.

net/ipv4/fib_trie.c

index 5d2b43d9f8fcdc0c1ff3fe14b463656bab0424ff..9be7da7c3a8fa8ed474031e2375aa53586d81f12 100644 (file)
@@ -292,8 +292,8 @@ static inline void check_tnode(const struct tnode *tn)
 
 static int halve_threshold = 25;
 static int inflate_threshold = 50;
-static int halve_threshold_root = 15;
-static int inflate_threshold_root = 25;
+static int halve_threshold_root = 8;
+static int inflate_threshold_root = 15;
 
 
 static void __alias_free_mem(struct rcu_head *head)