From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 9 22:25:15 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 37DAF106568B for ; Wed, 9 Jun 2010 22:25:15 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by mx1.freebsd.org (Postfix) with ESMTP id BEB978FC1A for ; Wed, 9 Jun 2010 22:25:14 +0000 (UTC) Received: from vampire.homelinux.org (dslb-088-064-181-139.pools.arcor-ip.net [88.64.181.139]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0LosLT-1OuQss1zyd-00gluz; Thu, 10 Jun 2010 00:25:13 +0200 Received: (qmail 98812 invoked from network); 9 Jun 2010 22:25:13 -0000 Received: from f8x64.laiers.local (192.168.4.188) by router.laiers.local with SMTP; 9 Jun 2010 22:25:13 -0000 From: Max Laier Organization: FreeBSD To: Nick Rogers Date: Thu, 10 Jun 2010 00:25:12 +0200 User-Agent: KMail/1.13.3 (FreeBSD/8.0-RELEASE-p2; KDE/4.4.3; amd64; ; ) References: <201006092330.30750.max@love2party.net> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201006100025.12881.max@love2party.net> X-Provags-ID: V01U2FsdGVkX18YHhi2dXdkcGNTWqxgMe4G7QZFwuTbHaHCQGy ITzNpd7vUc/oRLrSrQ6RW0VogVRyqqMBwhl69em6DCuTcALioe ihd3VoKW0HhJtgEKOo3ag== Cc: freebsd-hackers@freebsd.org Subject: Re: arp(8) performance w/ many aliases assigned to an interface X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jun 2010 22:25:15 -0000 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 was more the right timing, than the right list :-) > Can this change make it into 8.1-RELEASE? It looks like it might be too late, I'll ask once the HEAD commit is done, but I wouldn't count on it. > On Wed, Jun 9, 2010 at 5:30 PM, Max Laier wrote: > > 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 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. > > > > ... make that s/long/int64_t/ ... I keep forgetting that long is 32bit > > sometimes. > > !DSPAM:4c100e18981892214220659!