From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 9 21:30:32 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 CD43F106566C for ; Wed, 9 Jun 2010 21:30:32 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by mx1.freebsd.org (Postfix) with ESMTP id 5FD9D8FC0A for ; Wed, 9 Jun 2010 21:30:32 +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=mreu0) with ESMTP (Nemesis) id 0MVq96-1Okn7f0sJ6-00XW4W; Wed, 09 Jun 2010 23:30:31 +0200 Received: (qmail 97750 invoked from network); 9 Jun 2010 21:30:31 -0000 Received: from f8x64.laiers.local (192.168.4.188) by ns1.laiers.local with SMTP; 9 Jun 2010 21:30:31 -0000 From: Max Laier Organization: FreeBSD To: freebsd-hackers@freebsd.org Date: Wed, 9 Jun 2010 23:30:30 +0200 User-Agent: KMail/1.13.3 (FreeBSD/8.0-RELEASE-p2; KDE/4.4.3; amd64; ; ) References: <201006092321.05453.max@love2party.net> In-Reply-To: <201006092321.05453.max@love2party.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201006092330.30750.max@love2party.net> X-Provags-ID: V01U2FsdGVkX1+cA2b5ZCfniAOoylcTsVb6NyD4mlMnExNj37F AHJg3AdVOcr9i6L88w+PBivVvKxCWRYumlxGXCl6uhpkb62lY5 X8+1Dn/xEZlegytPBX8iw== Cc: Nick Rogers 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 21:30:32 -0000 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.