Skip to content

Commit

Permalink
[IPV4]: fib_trie root node settings
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Robert Olsson authored and David S. Miller committed Apr 26, 2007
1 parent 05eee48 commit 965ffea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/ipv4/fib_trie.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 965ffea

Please sign in to comment.