arp(8) performance w/ many aliases assigned to an interface
Adrian Chadd
adrian at freebsd.org
Thu Jun 10 08:05:28 UTC 2010
On 10 June 2010 05:21, Max Laier <max at love2party.net> wrote:
>> Is there something that can be done to speedup the call to
>> if_indextoname(), or would it be worthwhile for me to submit a patch that
>> adds the ability to skip the interface lookup as an arp(8) option?
>
> how about the attached:
>
This patch only short-circuits the lookup for a specific case - lots
of entries with the same ifname. What about other situations - say,
alternating interfaces in ARP?
I read if_indextoname(). The problem is that each call is sucking down
the ifaddrs table and looking for the index. Is this likely to be a
problem in other situations, rather than just /usr/sbin/arp ?
Adrian
More information about the freebsd-hackers
mailing list