Re: arp(8) performance w/ many aliases assigned to an interface

2010-06-17 Thread Nick Rogers
On Thu, Jun 17, 2010 at 3:49 PM, Max Laier wrote: > Hello Nick, > > On Wednesday 09 June 2010 23:56:27 Nick Rogers wrote: > > Can this change make it into 8.1-RELEASE? > > just MFCed it to stable/8. It will, however, not make it to 8.1-Release. > As > it is not a bug fix, just a performance imp

Re: arp(8) performance w/ many aliases assigned to an interface

2010-06-17 Thread Max Laier
Hello Nick, On Wednesday 09 June 2010 23:56:27 Nick Rogers wrote: > Can this change make it into 8.1-RELEASE? just MFCed it to stable/8. It will, however, not make it to 8.1-Release. As it is not a bug fix, just a performance improvement, it is not considered a candidate for the release branc

Re: arp(8) performance w/ many aliases assigned to an interface

2010-06-10 Thread Max Laier
On Thursday 10 June 2010 10:05:24 Adrian Chadd wrote: > On 10 June 2010 05:21, Max Laier 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 ar

Re: arp(8) performance w/ many aliases assigned to an interface

2010-06-10 Thread Adrian Chadd
On 10 June 2010 05:21, Max Laier 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 s

Re: arp(8) performance w/ many aliases assigned to an interface

2010-06-09 Thread Max Laier
On Wednesday 09 June 2010 23:56:27 Nick Rogers wrote: > Thanks a lot, I have been trying to get a meaningful response on this issue > for about a week now. Guess I finally got the right list. Thanks again! I saw your post before on -net etc, just never found the time ... and then I forgot. So it

Re: arp(8) performance w/ many aliases assigned to an interface

2010-06-09 Thread Nick Rogers
That worked great: [root@ /usr/src/usr.sbin/arp]# time /usr/sbin/arp -na | wc -l 4100 real 0m14.850s user 0m3.187s sys 0m11.416s [root@ /usr/src/usr.sbin/arp]# time ./arp -na | wc -l 4100 real 0m0.046s user 0m0.022s sys 0m0.023s Thanks a lot, I have been trying to get a meaningful respo

Re: arp(8) performance w/ many aliases assigned to an interface

2010-06-09 Thread Max Laier
On Wednesday 09 June 2010 23:21:05 Max Laier wrote: > 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

Re: arp(8) performance w/ many aliases assigned to an interface

2010-06-09 Thread Max Laier
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:

arp(8) performance w/ many aliases assigned to an interface

2010-06-09 Thread Nick Rogers
I have an 8.0-RELEASE system with 4000 "permanent" ARP entries due to having a network interface (em(4)) configured with 4000 aliases. The "arp -na" command takes what I consider to be an extremely long time to finish (up to 30s on an otherwise unloaded system). I am able to replicate this in a tes