arp(8) performance w/ many aliases assigned to an interface
Max Laier
max at love2party.net
Wed Jun 9 21:21:08 UTC 2010
Hello Nick,
On Wednesday 09 June 2010 20:17:43 Nick Rogers 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:
# time arp -an > /dev/null
0.171u 0.462s 0:00.63 100.0% 21+1538k 0+0io 0pf+0w
# time arp.patched -an > /dev/null
0.005u 0.000s 0:00.00 0.0% 0+0k 0+0io 0pf+0w
# arp -an | wc -l
1095
I'll commit this soon unless somebody objects.
Thanks for your report.
Max
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arp_cache_ifname.diff
Type: text/x-patch
Size: 1086 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20100609/1ce69c1c/arp_cache_ifname.bin
More information about the freebsd-hackers
mailing list