On Thursday 10 March 2005 00:27, Patrick McHardy wrote:
> Michal Vanco wrote:
> > On Wednesday 09 March 2005 22:05, Patrick McHardy wrote:
> >>>Sure. Can (or will) this ever be fixed to any usable state also with
> >>>netstat? Is this problem related only to AMD64?
> >>Maybe. To start dumping entries of an open hashed hash-table at a
> >>specific position we need to skip all entries before that position by
> >>walking over them. This results in quadratic time complexity. It might
> >>be possible to improve this by cacheing the last position in
> >>fib_iter_state even between ->stop() and ->start() calls and using
> >>generation IDs for invalidation.
> And here it is. Could you redo your timing-test with this patch please?
# time ip route show | wc -l; time netstat -rn | wc -l
It seems that netlink is still little bit faster than /proc, but it doesn't
make any sense in case like this.
Will this patch be included in future kernels?
Great job. Thank you for help.
Ing. Michal VanÄo
Description: PGP signature