From owner-freebsd-net@FreeBSD.ORG Thu Dec 13 11:33:36 2012 Return-Path: Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A96659E8 for ; Thu, 13 Dec 2012 11:33:36 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.69.10]) by mx1.freebsd.org (Postfix) with ESMTP id 2989D8FC14 for ; Thu, 13 Dec 2012 11:33:35 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.5/8.14.5) with ESMTP id qBDBXXra009901; Thu, 13 Dec 2012 15:33:33 +0400 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.5/8.14.5/Submit) id qBDBXXDo009900; Thu, 13 Dec 2012 15:33:33 +0400 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Thu, 13 Dec 2012 15:33:33 +0400 From: Gleb Smirnoff To: Karl Pielorz Subject: Re: Arp table size - any adjustments? Message-ID: <20121213113333.GT97487@FreeBSD.org> References: <523DE5571B5BE81B8BA1846F@MightyAtom.tdx.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <523DE5571B5BE81B8BA1846F@MightyAtom.tdx.co.uk> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-net@FreeBSD.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Dec 2012 11:33:36 -0000 On Thu, Dec 13, 2012 at 09:47:12AM +0000, Karl Pielorz wrote: K> I have an FreeBSD amd64 9-STABLE system running as a router for various K> bits and pieces - this has a 'lot' of hosts on it's LAN (literally K> thousands) - most are NAT end points etc. K> K> Looking at the output from 'arp -a -n' it regularly lists 2,000-3,000 K> entries. Is there anything I need to tune for this kind of quantity (or K> more), or is it all 'auto-adjusting' on 9.0-S onwards? Nope, there is no autotuning here yet. The hash table size is hardcoded in sys/net/if_llatbl.h. The name of constant is LLTBL_HASHTBL_SIZE. -- Totus tuus, Glebius.