diff options
author | Robert Olsson <robert.olsson@its.uu.se> | 2007-03-19 19:29:58 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:26:32 -0400 |
commit | 965ffea43d4ebe8cd7b9fee78d651268dd7d23c5 (patch) | |
tree | bb12a2a4b6d63b4c74eb4a0efa3eee301d94760e /net | |
parent | 05eee48c5af8213a71bd908ce17f577b2b776f79 (diff) |
[IPV4]: fib_trie root node settings
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.
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/fib_trie.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c index 5d2b43d9f8fc..9be7da7c3a8f 100644 --- a/net/ipv4/fib_trie.c +++ b/net/ipv4/fib_trie.c | |||
@@ -292,8 +292,8 @@ static inline void check_tnode(const struct tnode *tn) | |||
292 | 292 | ||
293 | static int halve_threshold = 25; | 293 | static int halve_threshold = 25; |
294 | static int inflate_threshold = 50; | 294 | static int inflate_threshold = 50; |
295 | static int halve_threshold_root = 15; | 295 | static int halve_threshold_root = 8; |
296 | static int inflate_threshold_root = 25; | 296 | static int inflate_threshold_root = 15; |
297 | 297 | ||
298 | 298 | ||
299 | static void __alias_free_mem(struct rcu_head *head) | 299 | static void __alias_free_mem(struct rcu_head *head) |