Michal Vanco wrote: > On Thursday 10 March 2005 00:27, Patrick McHardy wrote: > >>And here it is. Could you redo your timing-test with this patch please? > > Wonderfull: > > # time ip route show | wc -l; time netstat -rn | wc -l > 155991 > > real 0m1.110s > user 0m0.441s > sys 0m1.100s > 155991 > > real 0m1.435s > user 0m1.026s > sys 0m0.436s > > It seems that netlink is still little bit faster than /proc, but it doesn't > make any sense in case like this. The system time is higher with netlink. It also repeatedly needs to skip over the entries, its just not as bad as with seq_file because more entries are dumped at once. dumping over netlink could be improved in a simlar way, but there is no room in netlink_callback->args for the pointers and the genid. > Will this patch be included in future kernels? I hope so. Dave, are you fine with making /proc more efficient than netlink ? :) Regards Patrick