neigh_table_shrink_tuner: add tuner to shrink neigh_table size#229
neigh_table_shrink_tuner: add tuner to shrink neigh_table size#229alan-maguire merged 1 commit intooracle:mainfrom
Conversation
|
can you try merging the shrink code into the existing neigh_table_tuner? In general the aim is to coalesce all the tuning for a specific domain into a single tuner. I think it should be pretty straightforward to move the event handling into neigh_table_tuner.c and the bpf code into neigh_table_tuner.bpf.c |
|
I merged them but now I'm seeing the following errors while increasing thresholds when the shrinking part is used first: It works fine when a call to neigh_create is made first, even if it doesn't trigger a threshold expansion |
|
Hi @alan-maguire , could you take a look when you get the chance? Thanks! |
yep, looking now, sorry about the delay.. |
alan-maguire
left a comment
There was a problem hiding this comment.
looks great, just would be good to do some code sharing between increase/decrease. also would be good if commit decribed what the tuning does. thanks!
|
Made the code sharing changes |
alan-maguire
left a comment
There was a problem hiding this comment.
two small things, but aside from those this looks great to me!
After neighbor table expansion has been done, as it gets emptied out, shrink the table size in order to prevent excess memory usage. The size is decreased up to the default kernel values. Signed-off-by: Pradyumn Rahar <pradyumn.rahar@oracle.com>
No description provided.